<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Mark,</span></div><div><span> Version of Amavis: 2.6.4</span></div><div>Here is an example mail (from mailbox spam user):</div><div><br></div><div>////////////////////////////////////////////////////////////////////////////////////////////////////////////<br></div>From <a href="mailto:shylaangeles@input.com" target="_blank" rel="nofollow"><span id="lw_1330543875_0" class="yshortcuts">shylaangeles@input.com</span></a>  Wed Feb 29 14:19:22 2012<br>Return-Path: <shylaangeles@input.com><br>X-Original-To: spam@mtaXX<br>Delivered-To: spam@mtaXX<br>Received: from localhost (localhost [127.0.0.1])<br>        by mtaXX (Postfix) with ESMTP id 08EAB80AI3<br>        for <spam@mtaXX>; Wed, 29 Feb 2012 <br>X-Envelope-From:
 <shylaangeles@input.com><br>X-Envelope-To: <joe@XXXXX><br>X-Envelope-To-Blocked: <joe@XXX><br>X-Quarantine-ID:
 <BNXmyCre+d9B><br>X-Spam-Flag: YES<br>X-Spam-Score: 19.461<br>X-Spam-Level: *******************<br>X-Spam-Status: Yes, score=19.461 tag=2 tag2=5.31 kill=6.31<br>        tests=[ALL_TRUSTED=-1, DRUGS_ERECTILE=2.221, DRUG_ED_CAPS=1.023,<br>        FB_CIALIS_LEO3=3.055, MISSING_SUBJECT=1.767, NO_PRESCRIPTION=1.102,<br>        ONLINE_PHARMACY=2.371, TVD_VISIT_PHARMA=1.196, URIBL_BLACK=1.775,<br>        URIBL_DBL_SPAM=1.7, URIBL_JP_SURBL=1.948, URIBL_SBL=0.644,<br>        URIBL_WS_SURBL=1.659] autolearn=spam<br>Received: from mtaXX ([127.0.0.1])<br>        by localhost (mtaXX [127.0.0.1]) (amavisd-new, port 10024)<br>        with ESMTP id BNXmyCre+d9B for
 <joe@XXX>;<br>        Wed, 29 Feb 2012<br>Received: from pp (localhost [127.0.0.1])<br>        by mtaXX (Postfix) with SMTP id 6BF6480A48<br>        for <joe@XXX>; Wed, 29 Feb 2012<br>Message-Id: <20120229171911.6BF6480A48@mtaXX><br>Date: Wed, 29 Feb 2012<br>From: shylaangeles@input.com<br>To: undisclosed-recipients:;<div>.</div><div>.</div><div>.</div><div>////////////////////////////////////////////////////////////////////////////////////////////////////////////<br></div><br><div>Note the content of  "To:"not match with X-Envelope-To: (original final recipient)<br></div><div><br></div><div>Thanks in advance.<br></div><div><br></div>N.<div><br></div><div><br></div><div><br></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new
 york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Mark Martinec <Mark.Martinec+amavis@ijs.si><br> <b><span style="font-weight: bold;">To:</span></b> amavis-users@amavis.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, February 29, 2012 4:12 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: spam_quarantine_to problem<br> </font> </div> <br>
Nicolas,<br><br>> I installed Amavis on Debian 6.0 .<br>> I configure $spam_quarantine_to = "spam\@$myhostname"; and the system work<br>> ok (forward mail) . But, when I view the mailbox of spam, the header "To:"<br>> is undisclosed-recipients:; not the original. This dificult forwad false<br>> positive from the spam account mailbox. How set Amavis to preserve<br>> original header "To:"<br><br>This shouldn't be the case. Messages sent to a quarantine keep their orginal<br>header field "To:" regardless of whether a quarantine is file-based, or sent<br>with SMTP to some mailbox. I just tried it with versions 2.7.0 and 2.6.6,<br>both behave as expected.<br><br>The "To:" is also preserved when releasing from a quarantine.<br><br>Which version of amavisd is that?<br><br>Are you sure the "To:" header field existed in the original message?<br>Just guessing, perhaps you are looking at some other notification message<br>and not a quarantined
 message.<br><br>  Mark<br><br><br> </div> </div>  </div></body></html>