# HG changeset patch # User Heiko Schlittermann (JUMPER) # Date 1399647318 -7200 # Node ID 947cbd7e455c104678e33af49ada30e3f9fb47a3 # Parent 327049f04783e46ded8c8cc5ad62fd6927aba594 [snapshot] diff -r 327049f04783 -r 947cbd7e455c exim4.conf --- a/exim4.conf Fri May 09 13:07:51 2014 +0200 +++ b/exim4.conf Fri May 09 16:55:18 2014 +0200 @@ -21,10 +21,10 @@ # - you can use indirect lists by appending /mx # - you can specifiy a port number numerically (per default we use 587) -SMARTHOSTS = +SMARTHOSTS = /home/heiko/l/exim/smart-config/smarthosts.example # some macros to ease the understanding -ADDRESS_DATA = ${sg{${lookup{$sender_address}lsearch*@{SMARTHOSTS}}}{\\s+}{\t}} +ADDRESS_DATA = ${lookup{$sender_address}lsearch*@{SMARTHOSTS}{${sg{$value}{\\s+}{\t}}}} SMARTHOST = ${extract{1}{\t}{$address_data}} USER = ${extract{2}{\t}{$address_data}} PASS = ${extract{3}{\t}{$address_data}} @@ -38,7 +38,7 @@ driver = manualroute address_data = ADDRESS_DATA route_data = SMARTHOST - transport = smtp_auth + transport = smtpa # in case you don't have a '*' line in your smarthosts file @@ -50,7 +50,7 @@ begin transport -smtp_auth: +smtpa: driver = smtp port = submission hosts_require_auth = * diff -r 327049f04783 -r 947cbd7e455c smarthosts.example --- a/smarthosts.example Fri May 09 13:07:51 2014 +0200 +++ b/smarthosts.example Fri May 09 16:55:18 2014 +0200 @@ -1,7 +1,7 @@ # sender address |submission-server[::port]|user-name |password # or *@domain, or * | default 587 | | #----------------------+-------------------------+-----------------------+---------- -hans@example.de smtp.example.de::25 hans@example.com xxx +hans@example.com mx.freenet.de::25 hans@example.com xxx *@example.com ssl.schlittermann.de heiko@schlittermann.de Gheim * smtp.km21.com km433221 zecrit # vim:tw=0 et: