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, > Thanks a lot for the patch. Unfortunately, I'm using the debian packaged > version which is still ...


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,

> Thanks a lot for the patch. Unfortunately, I'm using the debian packaged
> version which is still on 2.4.2 and it looks like your patch is for the
> latest version. :( Any ideas on getting this patched into that version?


Try this:

--- amavisd~ Fri Sep 29 21:12:49 2006
+++ amavisd Wed Aug 29 23:43:37 2007
@@ -8363,4 +8363,10 @@
# $Mail::SpamAssassin::SUB_VERSION, c('myhostname')));
}
+
+ # BREAKS SENDER'S PRIVACY!!! DO NOT USE!!!
+ $hdr_edits->add_header('X-Original-To',
+ join(', ', map { scalar(qquote_rfc2821_local($_->recip_addr)) }
+ @{$msginfo->per_recip_data}));
+
if ($mail_defanged ne '') {
# prepend Resent-* header fields, they must precede corresponding Received


> I tried putting this part of the code in the
> add_forwarding_header_edits_common function (looks like thats what the
> patch is doing) and then adding a declaration for recip_addr_smtp above,
> but the X-Original-To is empty. Looks like I need to find the place of
> where recip_addr_smtp can get a value... ?


The recip_addr_smtp is a later invention.
You will have to do with recip_addr, re-encoded into a rfc2822 form.
There shouldn't be any difference with normal addresses, there may
be a difference with weird and incorrectly encoded addresses
by the original sender (like containing special characters
in the local part of the address).

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

vB 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 02:46 PM.


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