Re: [AMaViS-user] another x-original-to question...

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 ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-29-2007
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] another x-original-to question...

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/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0