Make spam-checking in Exim really work
[hcoop/zz_old/config/exim4-hopper.git] / conf.d / transport / 30_exim4-config_remote_smtp_smarthost
index d7e1273..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}{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
   DEBCONFreturn_pathDEBCONF