Error "missing X-Envelope-From or Return-Path"
Masegaloeh
masegaloeh at gmail.com
Thu Dec 27 02:14:27 CET 2012
Hello
Currently, I am deploying amavisd with MySQL quarantine. When I try to
release the email, I get error "missing X-Envelope-From or Return-Path".
Oddly, when I inspect the database, the Return-Path header wasn't not found
in quarantine.mail_text column.
*PS: My script to release the email was modified version of MailZu
*Here the version of perl and amavisd
$myversion_id = '2.8.0'; $myversion_date = '20120630';
This is perl 5, version 16, subversion 2 (v5.16.2) built for
amd64-freebsd-thread-multi
a) Here log when i receive the message, The return-path should be "
dummy at example.org"
Dec 27 07:08:40 av1 amavis[68566]: (68566-03) Checking: eNGJpO_Wvslk
[103.28.23.16] <dummy at example.org> -> <root at example.com>
Dec 27 07:08:43 av1 amavis[68566]: (68566-03) delivering to sql:, SEND via
SQL (DBI:mysql:amavis:167.205.1.68): <dummy at example.org> -> <
root at example.com>, mail_id eNGJpO_Wvslk
Dec 27 07:08:43 av1 amavis[68566]: (68566-03) Blocked SPAM
{DiscardedInbound,Quarantined}, [103.28.23.16]:34121 [103.28.23.16] <
dummy at example.org> -> <root at example.com>, quarantine: eNGJpO_Wvslk,
Queue-ID: 3YWrx16bgJzDFqT, Message-ID: <
20121226234503.453525642A at ophrek.co.cc>, mail_id: eNGJpO_Wvslk, Hits:
8.002, size: 399, 3523 ms
b) The output from query "select mail_text from quarantine WHERE
mail_id='eNGJpO_Wvslk';"
====================================================================================
X-Envelope-To: <root at example.com>
X-Envelope-To-Blocked: <root at example.com>
X-Quarantine-ID: <eNGJpO_Wvslk>
X-Spam-Flag: YES
X-Spam-Score: 8.002
X-Spam-Level: ********
X-Spam-Status: Yes, score=8.002 tag=4 tag2=4.5 kill=5 tests=[BAYES_99=3.5,
DRUG_ED_CAPS=0.936, RDNS_NONE=0.793, SERGIO_SUBJECT_VIAGRA01=2.773]
autolearn=disabled
Received: from mx.example.com ([aaa.bbb.ccc.ddd])
by av1.example.com (av1.example.com [aaa.bbb.ccc.ddd])
(amavisd-new, port 9419)
with ESMTP id eNGJpO_Wvslk for <root at example.com>;
Thu, 27 Dec 2012 07:08:40 +0700 (WIT)
Received: from example.org (unknown [aaa.bbb.ccc.ddd])
by mx.example.com (Postfix) with SMTP id 3YWrx16bgJzDFqT
for <root at example.com>; Thu, 27 Dec 2012 07:08:07 +0700 (WIT)
To: root at example.com
Subject: VIAGRAM NOT SPAM :P (test sp
Message-Id: <20121226234503.453525642A at ophrek.co.cc>
Date: Thu, 27 Dec 2012 06:45:03 +0700 (WIT)
From: root at example.org (Charlie Root)
test
=======================================================
c) When i release the message
Dec 27 07:10:31 av1 amavis[68559]: (rel-eNGJpO_Wvslk) Request: release
eNGJpO_Wvslk /var/amavis/tmp/amavis-20121227T071031-68559-_H784jPO: -> <
root at example.com>
Dec 27 07:10:31 av1 amavis[68559]: (rel-eNGJpO_Wvslk) Quarantined message
release (miscategorized): eNGJpO_Wvslk <> -> <root at example.com>
Dec 27 07:10:31 av1 amavis[68559]: (rel-eNGJpO_Wvslk) Quarantine release
eNGJpO_Wvslk: missing X-Envelope-From or Return-Path
Dec 27 07:10:32 av1 amavis[68559]: (rel-eNGJpO_Wvslk) FWD from <> -> <
root at example.com>, 250 2.0.0 from MTA(smtp:[167.205.1.69]:10025): 250 2.0.0
Ok: queued as 204FD62
Dec 27 07:10:32 av1 amavis[68559]: (rel-eNGJpO_Wvslk) size: 0, TIMING
[total 281 ms] - got data: 0 (0%)0, mkdir tempdir: 2 (1%)1, fwd-connect: 15
(5%)6, fwd-mail-pip: 169 (60%)66, fwd-rcpt-pip: 0 (0%)66, fwd-data-chkpnt:
0 (0%)66, write-header: 2 (1%)67, fwd-data-contents: 0 (0%)67,
fwd-end-chkpnt: 92 (33%)100, rmdir: 1 (0%)100, rundown: 0 (0%)100
I tried to google this problem and found similar problem in [1] and [2] but
I couldn't find the useful information. Any suggestions?
Thanks :)
[1] http://lists.amavis.org/pipermail/amavis-users/2012-February/001188.html
[2] http://lists.amavis.org/pipermail/amavis-users/2012-May/001454.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20121227/2bc6106a/attachment.html>
More information about the amavis-users
mailing list