This is a discussion on Re: [AMaViS-user] another x-original-to question... within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Zivago, > I sent this to the postfix-users list, but didn't get any responses so > I'll ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Zivago,
> I sent this to the postfix-users list, but didn't get any responses so > I'll repost it here. I just wanted to know if there was any way around > this issue besides doing address rewriting after the amavisd-new. Is > there even a way for amavisd-new to manually insert an X-Original-To > header since it seems to know the orig_to during the reinjection? I could > then disable the x-original-to header addition by Postfix by setting up a > separate cleanup filter --- amavisd~ Wed Jun 27 12:43:00 2007 +++ amavisd Wed Aug 29 19:51:06 2007 @@ -9701,4 +9701,9 @@ for my $h (@which_headers) { $hdr_edits->delete_header($h) } } + + # BREAKS SENDER'S PRIVACY!!! DO NOT USE!!! + $hdr_edits->add_header('X-Original-To', + join(', ', map { $_->recip_addr_smtp } @{$msginfo->per_recip_data})); + $hdr_edits->add_header('X-Spam-Checker-Version', sprintf("SpamAssassin %s (%s) on %s", Mail::SpamAssassin::Version(), 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-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |