On 1/9/2013 2:02 AM, Bernhard Schmidt wrote:
Hello,
I have multiple systems running Debian Squeeze with backports, which
results in amavisd-new 2.7.1. I looked at the changelog of 2.7.2 and
2.8.0 and did not find anything suspicious in this area, but maybe I
missed it.
When releasing miscategorized spam using amavisd-release the envelope
sender of the released mail is empty.
# amavisd-release d/spam-dX5mX6avxljW.gz
amavis[5857]: (rel-dX5mX6avxljW) Quarantined message release
(miscategorized): dX5mX6avxljW <> -> <recipient1>,<recipient2>
amavis[5857]: (rel-dX5mX6avxljW) Quarantine release dX5mX6avxljW:
missing X-Envelope-From or Return-Path
We're using file-based quarantine, and differently from another thread a
few weeks ago the quarantine files do contain a Return-Path (actually
several ones in that particular case I was looking at, it's a forwarded
spam complaint with two nested message/rfc822 parts, but that does not
seem to be the problem as I have the same issue with plain spam).
Return-Path: <[email protected]>
Delivered-To: spam-quarantine
X-Envelope-To: <recipient1>,<recipient2>
X-Envelope-To-Blocked: <recipient1>,<recipient2>
X-Quarantine-ID: <dX5mX6avxljW>
X-Spam-Flag: YES
X-Spam-Score: 10.32
X-Spam-Level: **********
X-Spam-Status: Yes, score=10.32 tag=-999 tag2=5 kill=10
tests=[BAYES_95=3,
DEAR_BENEFICIARY=3.699, HTML_MESSAGE=0.001, LOTS_OF_MONEY=0.001,
MONEY_ATM_CARD=3.599, T_FILL_THIS_FORM_SHORT=0.01,
T_FRT_FUCK1=0.01]
autolearn=disabled
Any ideas where to look? I looked at the msg_from_quarantine function
but I am not entirely convinced I get it correctly.
Thanks,
Bernhard
Hello,
I have similar problem (actually I created similar thread several weeks
ago). My workaround was a small-ugly-patch in amavisd script, so the
quarantined mail always contains X-Envelope-From header. After the
pacth, the maillog looks happy when I release an email
# grep rel-Ju4V81aWl1eu /var/log/maillog
Jan 10 16:07:44 server amavis[92626]: (rel-Ju4V81aWl1eu) Quarantined
message release (miscategorized): Ju4V81aWl1eu <[email protected]> ->
<[email protected]>
If you interested in it, my unofficial small-ugly-patch for version
2.8.0 was attached below.
I hope there is an official workaround for this problem.
Thanks
Masegaloeh
*** amavisd-orig Thu Dec 27 06:06:05 2012
--- amavisd Thu Jan 10 15:50:22 2013
***************
*** 15274,15280 ****
$hdr_edits->prepend_header('X-Envelope-To',
join(",\n ", map($_->recip_addr_smtp,
@{$msginfo->per_recip_data})),1);
}
! if (!$orig_env_sender_retained) { # unless X-Envelope-* would be redundant
$hdr_edits->prepend_header('X-Envelope-From', $msginfo->sender_smtp);
}
$hdr_edits->add_header('Received',
--- 15274,15280 ----
$hdr_edits->prepend_header('X-Envelope-To',
join(",\n ", map($_->recip_addr_smtp,
@{$msginfo->per_recip_data})),1);
}
! if (1) {
$hdr_edits->prepend_header('X-Envelope-From', $msginfo->sender_smtp);
}
$hdr_edits->add_header('Received',