X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Ftemplates%2Feximconf.erb;h=05d79fb0fc014e3763a53920922372f5b868049e;hb=cb406afb7d640308d5fc9b25fef6f8512d8e24b6;hp=0d8698969058fad0054b4d2c62b2006e3311ed13;hpb=497692f795639a2835c3f7c6807d45b9c021afce;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 0d8698969..05d79fb0f 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -220,7 +220,7 @@ ports = [] out = "daemon_smtp_ports = " ports << 25 -if @is_bugsmaster or @is_bugsmx +if @is_bugsmx ports << 587 end @@ -317,7 +317,7 @@ acl_getprofile: accept condition = ${if eq {$acl_m_rprf}{}{no}{yes}} <%- end -%> -<%- if @is_bugsmaster or @is_bugsmx -%> +<%- if @is_bugsmx -%> warn domains = bugs.debian.org set acl_m_rprf = BugsMail @@ -782,7 +782,11 @@ check_recipient: protocol_name=${uc:$received_protocol}\n\ instance=${acl_m_grey}\n\ helo_name=${sender_helo_name}\n\ +<%- if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) <= 0 -%> client_address=${substr_-3:${mask:$sender_host_address/24}}\n\ +<%- else -%> + client_address=${sender_host_address}\n\ +<%- end -%> client_name=${sender_host_name}\n\ sender=${sender_address}\n\ recipient=$local_part@$domain\n\n @@ -958,18 +962,24 @@ check_message: <%- if has_variable?("clamd") && @clamd -%> discard condition = ${if eq {$acl_m_prf}{blackhole}} + <%- if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) <= 0 -%> demime = * + <%- end -%> malware = */defer_ok log_message = discarded malware message for $recipients deny condition = ${if eq {$acl_m_prf}{markup}{no}{yes}} condition = ${if eq {$acl_m_prf}{PopconMail}{no}{yes}} + <%- if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) <= 0 -%> demime = * + <%- end -%> malware = */defer_ok message = malware detected: $malware_name: message rejected warn condition = ${if eq {$acl_m_prf}{markup}} + <%- if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) <= 0 -%> demime = * + <%- end -%> malware = */defer_ok message = X-malware detected: $malware_name @@ -1458,11 +1468,8 @@ virt_users: <%= out = "" -if @is_bugsmaster or @is_bugsmx +if @is_bugsmx domain = 'bugs.debian.org' - if @is_bugsmaster - domain = 'bugs-master.debian.org' - end out = ' # This router delivers for bugs.d.o bugs: @@ -1612,7 +1619,7 @@ bsmtp: {$value}fail}\ }} -<%- if @is_bugsmaster or @is_bugsmx -%> +<%- if @is_bugsmx -%> bugs_pipe: driver = pipe command = /srv/bugs.debian.org/mail/run-procmail