end
if @is_mailrelay
- ports << scope.lookupvar('deprecated::nodeinfo')['smarthost_port']
+ ports << @smarthost_port
end
out += ports.uniq.sort.join(" : ")
tls_certificate = /etc/exim4/ssl/thishost.crt
tls_privatekey = /etc/exim4/ssl/thishost.key
-<%=
-out = ""
-if not scope.lookupvar('deprecated::nodeinfo')['smarthost'].empty?
-out = '
+<%- if not scope.lookupvar('deprecated::nodeinfo')['smarthost'].empty? -%>
remote_smtp_smarthost:
debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
driver = smtp
delay_after_cutoff = false
- port = '
- out += scope.lookupvar('deprecated::nodeinfo')['smarthost_port'].to_s + "\n"
- out += ' tls_tempfail_tryclear = false
+ port = <%= @marthost_port -%>
+ tls_tempfail_tryclear = false
hosts_require_tls = ' + scope.lookupvar('deprecated::nodeinfo')['smarthost'] + '
tls_certificate = /etc/exim4/ssl/thishost.crt
tls_privatekey = /etc/exim4/ssl/thishost.key
-'
-end
-out
-%>
+<%- end -%>
# Send the message to procmail
procmail_pipe:
driver = pipe