exim4.conf
changeset 9 947cbd7e455c
parent 6 e56ccc2667f9
--- 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 = *