mwolson: Update exim4 from backports
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / transport / 30_exim4-config_remote_smtp_smarthost
index 0dcb19a..b6f1131 100644 (file)
 remote_smtp_smarthost:
   debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
   driver = smtp
-  hosts_try_auth = ${if exists {CONFDIR/passwd.client}\
-                               {${extract{1}{:}{DCsmarthost}}}\
-                              {}\
-                   }
-  tls_tempfail_tryclear = false
+  hosts_try_auth = ${if exists{CONFDIR/passwd.client} \
+        {\
+        ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\
+        }\
+        {} \
+      }
   # to disable TLS on outgoing connections, uncomment this
   # hosts_avoid_tls = *
   DEBCONFheaders_rewriteDEBCONF