Boolean $is_rtmaster = false,
Boolean $is_packagesmaster = false,
Boolean $is_packagesqamaster = false,
+ Integer $smarthost_port = 587,
) {
include exim::vdomain::setup
include debian_org::mail_incoming_port
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
results['mail_port'] = ''
results['smarthost'] = ''
results['heavy_exim'] = ''
- results['smarthost_port'] = 587
if yaml['host_settings'].kind_of?(Hash)
yaml['host_settings'].each_pair do |property, values|