]> git.openstreetmap.org Git - chef.git/commitdiff
Tweak spam block
authorTom Hughes <tom@compton.nu>
Mon, 17 Apr 2017 09:36:23 +0000 (10:36 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 17 Apr 2017 09:36:23 +0000 (10:36 +0100)
cookbooks/exim/templates/default/exim4.conf.erb

index e9cb2b9c1fb7f045f304bd57383b5d377b8417be..2430e17becf7a21473c6f7201cda3db2b380567a 100644 (file)
@@ -498,9 +498,11 @@ acl_check_data:
 
 <% end -%>
   # Deny spammy messages with headers of the form:
+  #   X-PHP-Originating-Script: <digits>:SendMail.php
   #   X-PHP-Originating-Script: <digits>:SendMail.class.php
+  #   X-PHP-Originating-Script: <digits>:ExtendedMail.php
   #   X-PHP-Originating-Script: <digits>:ExtendedMail.class.php
-  deny    condition  = ${if match {$h_X-PHP-Originating-Script:}{^[0-9]+:(Send|Extended)Mail\\.class\\.php\$}}
+  deny    condition  = ${if match {$h_X-PHP-Originating-Script:}{^[0-9]+:(Send|Extended)Mail(\\.class)?\\.php\$}}
           message    = This message failed local spam checks.
 
   # Accept the message.