Im trying to get this configured, based on http://www.tgunkel.de/docs/exim_smarthosts.en

:~# grep -A 7 'smarthost_auto'  /etc/exim4/exim4.conf
smarthost_auto:
debug_print ="T. auto_route remote_smtp for $local_part@$domain from $sender_address "
self = send
condition = ${extract{smarthost}{${lookup{$sender_address}wildlsearch{/etc/exim4/smarthosts}{$value}fail}}}
   driver = manualroute
route_list = "* ${extract{smarthost}{${lookup{$sender_address}wildlsearch{/etc/exim4/smarthosts}{$value}fail}}}"
   transport = remote_smtp

:~# cat /etc/exim4/smarthosts
@isp.org: smarthost=mail.isp.org::465  [email protected]_pass=xxxxx
@gmail.com: smarthost=smtp.gmail.com::587 [email protected] auth_pass=xxxx

root@server2:~#
but emails sent from the remote client isp.org are routed through my default smarthost ( defined separately )

I dont think the lookup is working

~# exim -be '${extract{smarthost}{${lookup{isp.org}wildlsearch{/etc/exim4/smarthosts}{$value}fail}}}'
Failed: "lookup" failed and "fail" requested
root@server2:~#


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to