List Info

Thread: Quarantined header clean message




Quarantined header clean message
country flaguser name
United States
2007-08-29 11:53:16
We quarantine all messages for a few days with the following
setup in
our amavisd.conf file. However, 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?

$clean_quarantine_method = 'local:clean-%m.gz';
$clean_quarantine_to = 'clean-quarantine';

-- 
Robert


------------------------------------------------------------
-------------
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
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Quarantined header clean message
country flaguser name
Slovenia
2007-08-29 12:11:31
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
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )