[exim] multiple smarthost config problems

Pàgina inicial
Delete this message
Reply to this message
Autor: p cooper
Data:  
A: exim-users
Assumpte: [exim] multiple smarthost config problems
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 auth_name=me@???_pass=xxxxx
@gmail.com: smarthost=smtp.gmail.com::587 auth_name=xxxx@???
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:~#