[snapshot]
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Fri, 09 May 2014 16:55:18 +0200
changeset 9 947cbd7e455c
parent 8 327049f04783
child 10 d62e15c7bccf
[snapshot]
exim4.conf
smarthosts.example
--- 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 = <your file name for the smarthosts file here>
+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 = *
--- 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: