OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: add a header like "rcpt to" to know for who is the mail

From: Devdas Bhagat (devdasdvb.homelinux.org)
Date: Tue Jul 04 2006 - 15:32:42 CDT


On 04/07/06 15:27 +0200, Thierry B wrote:
<snip>
> I think I made a mistake, because if I send a mail to yyy which is an
> alias to xxx, X-Original-To contains xxx and not yyy.
>
> I have an idea, but I don't know if it'f possible.
>
> I see that in postfix logs:
>
> Jul 4 14:57:20 debian postfix/lmtp[6251]: 25F8B58648: to=<xxxxxx.org>,
> orig_to=<yyyxxx.eu.org>, relay=127.0.0.1[127.0.0.1], delay=2,
> status=sent (250 2.6.0 Ok, id=05581-04-2, from MTA: 250 Ok: queued as
> 703195869B)
>
Turn off amavisd-new and test. Your second injection into Postfix with
with the rewritten envelope, so that is what maildrop sees.

Nothing stops you from running a check_recipient_access and a PREPEND
action to add your own header.

Devdas Bhagat