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

2007-09-03 Thread Mark Martinec
Zivago, recipient_delimiter = + $recipient_delimiter = '+'; Thanks for the suggestion. I think this is a pretty decent workaround and should work for this small setup. What would be even cooler would for amavisd to have an option to read Postfix's virtual table. Not sure if it's a

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

2007-08-31 Thread Mark Martinec
Zivago, Looks like ... is now adding the X-Original-To field correctly with the correct orig_to. Are there any gotcha's I should be aware of? Privacy. It looks like amavisd-new is adding the bcc receiver's as well... eek. Yes, it is adding all envelope recipients, which becomes a

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

2007-08-30 Thread Zivago Lee
Mark, --- amavisd~Fri Sep 29 21:12:49 2006 +++ amavisd Thu Aug 30 11:15:53 2007 @@ -6388,3 +6388,3 @@ debug_oneshot am_id add_entropy generate_mail_id - prolong_timer waiting_for_client + prolong_timer

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

2007-08-29 Thread Mark Martinec
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

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

2007-08-29 Thread Mark Martinec
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

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

2007-08-29 Thread Zivago Lee
--- 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 {

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

2007-08-29 Thread Mark Martinec
Zivago, Hmm.. it's still putting the rewritten address into this field and not the alias that is originally sent to (rcpt to). Just to reiterate, I am doing address rewriting in Postfix before the content-filter (amavisd-new)... I didn't read your initial posting carefully, sorry. So it

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

2007-08-29 Thread Zivago Lee
Mark, I didn't read your initial posting carefully, sorry. So it seems you need to fetch ORCPT information (rfc3461) from the SMTP protocol, assuming your version of Postfix already supports DSN. The following patch (against amavisd-new-2.4.2) achieves that (but I think you are trying to

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

2007-08-28 Thread Zivago Lee
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