Exim: Remote relay except specific domains

JacobHansen

Member
Mar 20, 2013
13
0
1
cPanel Access Level
Root Administrator
Hi,

I have setup a remote relay to send emails due to several problems with emails in junk folders etc. As such I wish to use an remote SMTP service which specialise in these things.

I've set it up and it seems to be working correctly, see setting below.

Is there anyway to setup e-mails to specific domains and/or local email accounts to NOT use the remote smtp server and just use "inbuilt" one so to speak? Should the code be in the "MIDDLE" sections instead of "START" sections or how does it work?

Any help is much appreciated.

Exim Settings:

ROUTERSTART:

mandrill_route:
driver = manualroute
transport = domain_relay
route_list = * smtp.domain.com

TRANSPORTSTART
mandrill_relay:
driver = smtp
port = 587
hosts_require_auth = $host_address
hosts_require_tls = $host_address

And there's also on for AUTH but no need to put that in here.
 

JacobHansen

Member
Mar 20, 2013
13
0
1
cPanel Access Level
Root Administrator
Hi Michael,

Thanks. Do you know if there is any way to do say: if MX server is pointing to a local IP then use local routing otherwise use the SMTP relay?

Secondly, we seem to have a problem with emails going into a bounce loop when receiving e-mails. Sending works just fine however when receiving mails it goes all crazy. Example: Droplr • Screen Shot 2013-10-19 at 12.24.41.png where [email protected] is a local mailbox on the server with the rules in the original thread. So it seems like when it receives an email it also tries to relay it using the setup SMTP relay, but it really shouldn't do that. Any ideas on a fix?