1
Setting up smarthost / external domain in SM v15 (for example)
Question asked by Paul Blank - 9/9/2018 at 9:30 PM
Answered
I know how to set up a "smarthost" as an outgoing gateway:
 
But this only works for all domains on the server. I want to set up different outgoing gateways for different domains on the same SM server.
 
I tried this instead of the Outgoing Gateway setting for outgoing email from users on the SM server for one domain (disabled the Outgoing Gateway), but it does not work:
 
 
The email goes out, but it is not directed through the specified external host.
 
Can someone explain the difference between the two settings for my purposes? I also know that "external host" needs to be setup to use a split domain, with "deliver locally" box checked, but it doesn't explain why the setting doesn't work for outgoing email.
 
And yes, I stopped / restarted the Windows SM service between changes to settings.
 
Also, what is the order of precedence if both External Host and Outgoing Gateway are enabled?  Thanks!

13 Replies

Reply to Thread
0
Andrea Free Replied
Employee Post
Hi Paul,
 
The Domain Location setting is actually used for routing incoming messages. (In SmarterMail 16.x, the setting name was changed to 'Inbound Message Delivery' to accurately reflect this.) We don't recommend using that setting as a workaround to creating a gateway.
 
In SmarterMail 16.x, we added the ability to specify an outgoing gateway per domain. To accomplish something similar in 15.x, you'll need to utilize message and gateway prioritization. In the domain's configuration settings on the Priority tab, you can change the priority for the various types of messages. Then set the gateway's Priority Range to match that domain's values. Here's more information about utilizing Outgoing Gateway Prioritization in SmarterMail 15.x. Please let me know if you have any follow up questions or concerns.
Andrea Free SmarterTools Inc. 877-357-6278 www.smartertools.com
0
Paul Blank Replied
Thanks! Yes, the instructions in Help are not at all clear, nor is the terminology used in v15. I will take a look at that shortly.
 
0
Paul Blank Replied
OK took a look - but I'm using more than one 3rd party (Non-SM) cloud-based gateway host. How would one do that with SM v15?
0
Paul Blank Replied
I am confused. For what purpose, then, is the External Host Address? If this is an incoming setting, and it is set, will the domain ONLY receive email from this host?
 
And I'm confused because you allow split domains, per domain, yet there is no way to set a specific outgoing host for that domain.
0
Andrea Free Replied
Employee Post
Hi Paul,

The Domain Location setting allows you to specify the domain location for incoming email delivery. You can specify whether the domain is hosted locally or partially/entirely on an external server. If you select External (Use host address), messages will be delivered to the specified host address rather than the SmarterMail server. The host address can either be entered as an IP address or the Fully Qualified Domain Name (FQDN), such as mail.yourdomain.com.  
Andrea Free SmarterTools Inc. 877-357-6278 www.smartertools.com
0
Andrea Free Replied
Employee Post Marked As Answer
"I'm using more than one 3rd party (Non-SM) cloud-based gateway host. How would one do that with SM v15?" 

Regarding this question... Unlike SmarterMail 16.x, version 15.x does not have an option to specify the outgoing gateway per domain. You would need to utilize gateway and message priorities in order to force domain traffic through a specific gateway: https://portal.smartertools.com/kb/a3199/outgoing-gateway-prioritization.aspx

If you have more than one gateway that should be used for the same domain, you'll set each of those gateways to use the same priority range. As long as the domain's priority options match the gateway's priority range, the domain's traffic will round robin through the matching gateways. 

I hope this helps to clarify. 
Andrea Free SmarterTools Inc. 877-357-6278 www.smartertools.com
0
Paul Blank Replied
"The Domain Location setting allows you to specify the domain location for incoming email delivery. You can specify whether the domain is hosted locally or partially/entirely on an external server. If you select External (Use host address), messages will be delivered to the specified host address rather than the SmarterMail server." 

Are you saying that, if an external host address is specified, SmarterMail acts as the authoritative server for the entire domain, and delivers mail to that host? And if the "deliver locally..." box is checked, then email is delivered locally to users on that domain that exist on the SmarterMail server? And in that case, all email destined for addresses NOT on the domain is sent "normally" or through an outgoing gateway, if one is specified?

The wording in the menus makes it seem as if the external server is the authoritative server for the domain, and SM is downstream of that.

Please try and set me straight. I'm trying to understand the mail flow here. 

Thanks!
0
Paul Blank Replied
Another comment:  

I have set up a split domain configuration between SM v15 and Office 365. I set the external host to the same thing as the outbound gateway, checked "delivery locally..." and, after getting the settings right in Office 365, it seems to be working fine. Still not really sure if the external host setting actually does anything; but the outbound gateway setting is absolutely required for this to work - in other words, it seems to be the outbound gateway setting that does the work of sending email through to Office 365.

Office 365 (IP addresses at Microsoft EOP) is the authoritative server for the domain; using DNS records set up at my registrar (enom).
0
Andrea Free Replied
Employee Post
Hi Paul,

"Are you saying that, if an external host address is specified, SmarterMail acts as the authoritative server for the entire domain, and delivers mail to that host? And if the "deliver locally..." box is checked, then email is delivered locally to users on that domain that exist on the SmarterMail server? And in that case, all email destined for addresses NOT on the domain is sent "normally" or through an outgoing gateway, if one is specified?"

As far as I understand, that is correct.
Andrea Free SmarterTools Inc. 877-357-6278 www.smartertools.com
0
Paul Blank Replied
OK, thanks!

I have it setup with O365 as the authoritative server; this works fine. 

BUT as I stated elsewhere, the outgoing IP (IPv4) address used is the lowest IP address configured on my Windows 2012 R2 server, ignoring all other IP addresses for outgoing purposes. And the O365 address [domain-com].mail.protection.outlook.com is set as the Outgoing Gateway in SM. I used this same address as the External Host Address, but I'm not sure if that does anything in this configuration. Not setting the Outgoing Gateway causes things not to work.

And "Deliver locally if user exists" is enabled.

0
Andrea Free Replied
Employee Post
Hi Paul,

I apologize for the confusion... I was wrong. "Are you saying that, if an external host address is specified, SmarterMail acts as the authoritative server for the entire domain, and delivers mail to that host?"  SmarterMail does NOT act as the authoritative server when the domain is marked as external. If a domain is marked as external and "Deliver locally is user exists" is enabled, any email coming into the SmarterMail server will try to deliver locally.  If that user does not exist, it will forward onto the MX record or the host IP address.


Andrea Free SmarterTools Inc. 877-357-6278 www.smartertools.com
0
Andrea Free Replied
Employee Post
Hi Paul,

I apologize for the confusion... I was wrong. "Are you saying that, if an external host address is specified, SmarterMail acts as the authoritative server for the entire domain, and delivers mail to that host?"  SmarterMail does NOT act as the authoritative server when the domain is marked as external. If a domain is marked as external and "Deliver locally is user exists" is enabled, any email coming into the SmarterMail server will try to deliver locally.  If that user does not exist, it will forward onto the MX record or the host IP address. 
Andrea Free SmarterTools Inc. 877-357-6278 www.smartertools.com
0
Paul Blank Replied
That's all fine, and it's working as I want it to. However, the External Host Address setting doesn't appear to do anything; email does not seem to flow out from SmarterMail to the external host - in this case Microsoft EOP - if that external host is not set as an Outgoing Gateway. 

Reply to Thread