Help with smarthost setup for using smarthost only for certain domain recipients
I managed to setup smarthost in my WHM/Cpanel server using the EXIM basic editor
however now I would like to allow the use of the smarthost only for certain
destination emails (i.e. hotmail.com) so I was wondering if there is any tutorial that you can recommend me for this purpose.
I checked the EXIM advanced editor and noticed that my initial setup created the following lines
#
dkim_lookuphost:
driver = manualroute
route_list = * SERVER-IP:587
domains = ! +local_domains
condition = "${perl{sender_domain_can_dkim_sign}}"
#ignore verisign to prevent waste of bandwidth
ignore_target_hosts = +loopback : 64.94.110.0/24
headers_add = "${perl{mailtrapheaders}}"
transport = dkim_remote_smtp
#
autoreply_lookuphost:
driver = manualroute
route_list = * SERVER-IP:587
domains = ! +local_domains
condition = "${if or {{match{$h_Precedence:}{auto}}{match{$h_X-Precedence:}{auto}}}{1}{0}}"
#ignore verisign to prevent waste of bandwidth
ignore_target_hosts = +loopback : 64.94.110.0/24
headers_add = "${perl{mailtrapheaders}}"
transport = remote_smtp
#
lookuphost:
driver = manualroute
route_list = * SERVER-IP:587
domains = ! +local_domains
#ignore verisign to prevent waste of bandwidth
ignore_target_hosts = +loopback : 64.94.110.0/24
headers_add = "${perl{mailtrapheaders}}"
transport = remote_smtp
#
literal:
driver = manualroute
route_list = * SERVER-IP:587
domains = ! +local_domains
ignore_target_hosts = +loopback : 64.94.110.0/24
headers_add = "${perl{mailtrapheaders}}"
transport = remote_smtp
-
I also tried these lines with no success send_via_mySmartHost: driver = manualroute domains = gmail.com transport = remote_smtp route_list = domains smtp-Server-IP::5870
Please sign in to leave a comment.
Comments
4 comments