Make clients only use tls with smarthost
authorStephen Gran <steve@lobefin.net>
Thu, 21 May 2009 22:02:27 +0000 (23:02 +0100)
committerStephen Gran <steve@lobefin.net>
Thu, 21 May 2009 22:02:27 +0000 (23:02 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/exim/templates/eximconf.erb

index e0ac658..8038d0e 100644 (file)
@@ -1303,6 +1303,7 @@ remote_smtp_smarthost:
   out += nodeinfo['smarthost_port'].to_s + "\n"
   if has_variable?("exim_ssl_certs") && exim_ssl_certs == "true"
     out += '  tls_tempfail_tryclear = false
+  hosts_require_tls = ' + nodeinfo['smarthost'] + '
   tls_certificate = /etc/exim4/ssl/thishost.crt
   tls_privatekey = /etc/exim4/ssl/thishost.key
 '