<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi’<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>(amavisd-new-2.6.4 (20090625))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I’m having problems with releasing e-mails from quarantine using the commandline tool amavisd-release.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The e-mail is put into sql-quarantine because spam assassin has marked it as spam.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But when I run ‘amavisd-release 36lGky1ET9nU' I get this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>250 2.5.0 No recipients, nothing to do<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Amavis-log produces this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>May 2 11:22:48 amavis amavis[20106]: (rel-36lGky1ET9nU) Quarantined message release (miscategorized): 36lGky1ET9nU <> -><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>May 2 11:22:48 amavis amavis[20106]: (rel-36lGky1ET9nU) Quarantine release 36lGky1ET9nU: missing X-Quarantine-ID; missing X-Envelope-From or Return-Path; missing X-Envelope-To<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>May 2 11:22:48 amavis amavis[20106]: (rel-36lGky1ET9nU) WARN: dispatch_from_quarantine failed: Stored quarantine ID '' does not match requested ID '36lGky1ET9nU' at /usr/sbin/amavisd-new line 8345, <GEN50> line 4.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Amavis detecting email as spam:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>May 2 11:19:08 amavis amavis[20107]: (20107-03) Blocked SPAM, amavis [192.168.0.10] [192.168.0.10] <REMOVED1> -> <REMOVED2>, quarantine: 36lGky1ET9nU[201218], Message-ID: <16E0EADFC77B452CAD2E0A1EAC440061@JADAPC>, mail_id: 36lGky1ET9nU, Hits: 7.466, size: 1232, pt: 201218, 6482 ms<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>May 2 11:19:08 amavis postfix-local/smtp[20144]: 03292869: to=<REMOVED>, relay=localhost[127.0.0.1]:10024, delay=6.6, delays=0.09/0/0.01/6.5, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=20107-03 - SPAM)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>May 2 11:19:08 amavis postfix-local/qmgr[1629]: 03292869: removed<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Records in the database to this e-mail containts this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>mysql> select * from msgrcpt where mail_id = '36lGky1ET9nU';<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+--------------+-----+----+----+------+------+-------------+---------------------------------------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| partition_tag | mail_id | rid | ds | rs | bl | wl | bspam_level | smtp_resp |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+--------------+-----+----+----+------+------+-------------+---------------------------------------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| 201218 | 36lGky1ET9nU | 125 | D | | N | N | 7.466 | 250 2.7.0 Ok, discarded, id=20107-03 - SPAM |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+--------------+-----+----+----+------+------+-------------+---------------------------------------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>1 row in set (0.00 sec)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>mysql> select * from msgs where mail_id = '36lGky1ET9nU';<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+--------------+--------------+----------+------------+------------------+-----+--------+-------------+------+---------+-----------+----------------------+----------+------------+-------------------------------------------+-----------------------------+----------------+-------------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| partition_tag | mail_id | secret_id | am_id | time_num | time_iso | sid | policy | client_addr | size | content | quar_type | quar_loc | dsn_sent | spam_level | message_id | from_addr | subject | host |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+--------------+--------------+----------+------------+------------------+-----+--------+-------------+------+---------+-----------+----------------------+----------+------------+-------------------------------------------+-----------------------------+----------------+-------------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| 201218 | 36lGky1ET9nU | enbexgpvgjlQ | 20107-03 | 1335950342 | 20120502T091902Z | 124 | amavis | 192.168.0.10 | 1232 | S | Q | 36lGky1ET9nU[201218] | N | 7.466 | <16E0EADFC77B452CAD2E0A1EAC440061@PC> | "Jacob" <REMOVED1> | buy viagra now | amavis |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+--------------+--------------+----------+------------+------------------+-----+--------+-------------+------+---------+-----------+----------------------+----------+------------+-------------------------------------------+-----------------------------+----------------+-------------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>1 row in set (0.00 sec)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>mysql> select * from maddr;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+-----+-------------------+--------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| partition_tag | id | email | domain |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+-----+-------------------+--------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| 201218 | 124 | REMOVED1 | XX.XXXXXX |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| 201218 | 125 | REMOVED2 | XX.XXXXXX |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+---------------+-----+-------------------+--------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>4 rows in set (0.00 sec)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I really can’t figure out, whats wrong here.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have a amavisd-custom.pl-file with some changes, but I’ve also tried without these changes, that doesn’t change anything, I still get this error.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I hope, someone can give some input to this </span><span lang=EN-US style='font-family:Wingdings'>J</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Kind regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Jacob<o:p></o:p></span></p></div></body></html>