Robert,

> ... the X-Quarantine-ID header seems to get the message blocked
> at the final destination sometimes if the receiving mail server
> chooses. And we're finding some that do block due to this. 

> Is there a way to make the header something different for clean
> messages?

Not really, but you have two choices:

- disable inserting of X-Quarantine-ID altogether to passed mail:

    $allowed_added_header_fields{lc('X-Quarantine-ID')} = 0;

- or apply the following patch (to 2.5.2), which only allows
  inserting X-Quarantine-ID for local recipients, much like other
  X-Spam-* header fields - which seems a sensible thing to do anyway,
  so it will find its way to the next version:



--- amavisd.orig        Wed Jun 27 12:43:00 2007
+++ amavisd     Wed Aug 29 19:09:57 2007
@@ -9673,7 +9673,4 @@
      $virus_presence_checked, $spam_presence_checked) = @_;
   my($allowed_hdrs) = cr('allowed_added_header_fields');
-  $hdr_edits->add_header('X-Quarantine-ID', '<'.$msginfo->mail_id.'>')
-    if defined($msginfo->quarantined_to) &&
-       $allowed_hdrs && $allowed_hdrs->{lc('X-Quarantine-ID')};
   # discard existing X-Amavis-Hold header field, only allow our own
   $hdr_edits->delete_header('X-Amavis-Hold');
@@ -9847,4 +9844,8 @@
 
     if ($first) {  # insert headers required for the new cluster
+      if ($is_local && defined($msginfo->quarantined_to)) {
+        $hdr_edits->add_header('X-Quarantine-ID', '<'.$msginfo->mail_id.'>')
+          if $allowed_hdrs && $allowed_hdrs->{lc('X-Quarantine-ID')};
+      }
       if ($mail_mangle) {  # mail body modified, invalidates DKIM signature
         if ($allowed_hdrs && $allowed_hdrs->{lc('X-Amavis-Modified')}) {



Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to