Exim version: 4.94-2.cp1194
WHM 94.05, Centos 7
Hi, I've setup Exim to send some emails (those which include a special header) via a smarthost. This is the router setup:
===========================================
send_via_smarthost:
driver = manualroute
domains = ! +local_domains
condition = ${if def:header_X-xsMailingId:{true}{}}
transport = smarthost_smtp
route_list = "* smtp.smarthost.com::587 byname"
host_find_failed = defer
no_more
===========================================
This all works fine, but Exim is still doing a DNS lookup for each recipient domain. I assumed that in this case, Exim would just route the email to the smarthost and it would be the smarthost which would do the MX lookups. Is my assumption correct? If this is Exim's intended behaviour, is there a setting to tell Exim to skip DNS lookups for the recipient in this case?
I know that it's doing a lookup on the recipient because I see lines like this in the log:
====
temporarily rejected RCPT <[email protected]>: host lookup did not complete
====
The reason I want to skip DNS lookups when routing via a smarthost is to speed up my scripts. With thousands of recipients, many of them with custom domains, even with a local caching name server, lookups to these domains can take tens, or sometimes hundreds, of miliseconds.
Many thanks for any help or advice anyone can give me.
WHM 94.05, Centos 7
Hi, I've setup Exim to send some emails (those which include a special header) via a smarthost. This is the router setup:
===========================================
send_via_smarthost:
driver = manualroute
domains = ! +local_domains
condition = ${if def:header_X-xsMailingId:{true}{}}
transport = smarthost_smtp
route_list = "* smtp.smarthost.com::587 byname"
host_find_failed = defer
no_more
===========================================
This all works fine, but Exim is still doing a DNS lookup for each recipient domain. I assumed that in this case, Exim would just route the email to the smarthost and it would be the smarthost which would do the MX lookups. Is my assumption correct? If this is Exim's intended behaviour, is there a setting to tell Exim to skip DNS lookups for the recipient in this case?
I know that it's doing a lookup on the recipient because I see lines like this in the log:
====
temporarily rejected RCPT <[email protected]>: host lookup did not complete
====
The reason I want to skip DNS lookups when routing via a smarthost is to speed up my scripts. With thousands of recipients, many of them with custom domains, even with a local caching name server, lookups to these domains can take tens, or sometimes hundreds, of miliseconds.
Many thanks for any help or advice anyone can give me.