2
Outbound SMTP Relay per Domain
Question asked by Jeremy Farrance - 10/15/2016 at 10:56 AM
Answered
I have a SmarterMail server (v13 still) with about 500 users across 20+ domains. I have 1 domain on this server that I need to send all its outbound messages through a specific SMTP Relay. I understand how to setup the whole server to have all messages use an outbound SMTP relay, but I only want this one client/domain to have their messages get routed. All the other domains should continue to send out their deliveries direct from SmarterMail. Is there some way to accomplish this? 

6 Replies

Reply to Thread
0
hello sir,
Our domain to Another domain (Gmail,Hotmail) etc . To not send & received mail and get error Delivery Failure. and other Domain to our Domain sent mail to get error
Delivery to the following recipient failed permanently:

it_support@excelcarriers.com

Technical details of permanent failure:
DNS Error: 3669379 DNS type 'mx' lookup of excelcarriers.com responded with code NOERROR
3669379 DNS type 'mx' lookup of excelcarriers.com had no relevant answers.
3669379 DNS type 'aaaa' lookup of excelcarriers.com responded with code NOERROR
3669379 DNS type 'aaaa' lookup of excelcarriers.com had no relevant answers.
3669379 DNS type 'a' lookup of excelcarriers.com responded with code NOERROR
3669379 DNS type 'a' lookup of excelcarriers.com had no relevant answers.
1
Nathan Replied
The easiest way to achieve this would be to setup Exim on CentOS. Then setup a custom transport rule within Exim to deliver all email from the specific domain to the smarthost then all other email by DNS/MX resolution. An outbound route would then be defined within Smartermail to send all outbound email via Exim.
 
It requires some Linux experience but provides ultimate flexibility in mail routing / handling that far outstrips anything Smartermail can do. If you are not familiar with Exim invest the time to learn as it will pay off.
0
Employee Replied
Employee Post Marked As Answer
Hi Jeremy.  This KB Article will explain how to route a single domain through a separate SMTP gateway.
0
Jeremy Farrance Replied
That is really interesting. We had a discussion here about doing it using spool priorities but decided it was too much of a hack and we were convinced there had to be a way to do it properly... which instigated my post. So, a) thank you, will we give that a try and b) please seriously consider this as a future-feature request. It seems very logical (strong, obvious use-case) to be able to specify a Gateway per domain. Hopefully this is on the roadmap for v16 or v17?
0
Api Lion Replied
Great idea jeremy, agree with you.
1
Michael Perdue Replied
I know this is a really old thread, but the link to the KB article seems to be broken and I can't find a similar post in the KB. Could you re-post the link for how to do this? Thanks.

Reply to Thread