|
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: Thierry B (postfix
thierry.eu.org)
Date: Tue Jul 04 2006 - 08:27:58 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Wietse Venema wrote:
> Thierry B:
>
>>Wietse Venema a ?crit :
>>
>>>Thierry B:
>>>
>>>>Hello,
>>>>
>>>>I'd like that if postfix receipts a mail with an adress in the header
>>>>"to" and another mail with the header "cc" for example, that he adds a
>>>>header 'rcpt to", to know for who is the mail exactly so after, I'll
>>>>only have to filter with maildrop for example with this header.
>>>>
>>>>Is it possible?
>>>
>>>Postfix prepends X-Original-To:, when you specify in master.cf;
>>>
>>> /etc/postfix/master.cf:
>>> maildrop unix - n n - - pipe
>>> flags=ODRhu .....
>>>
>>> Wietse
>>
>>Hello,
>>
>>this header is not good for me.
>
>
> X-Original-To contains the RCPT TO address that you asked for.
>
> Wietse
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=<xxx
xxx.org>,
orig_to=<yyy
xxx.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)
Jul 4 14:57:20 debian postfix/qmgr[6236]: 25F8B58648: removed
Jul 4 14:57:25 debian postfix/pipe[6257]: 703195869B:
to=<xxx
lxxx.eu.org>, relay=maildrop, delay=5, status=sent (xxx.eu.org)
Jul 4 14:57:25 debian postfix/qmgr[6236]: 703195869B: removed
so orig_to contains the alias of my account and ot the mail of my
account and it's that that I want.
Is it possible to add a header in the mail with the content of the value
of orig_to of logs?
I'd like to pass this value to maildrop to filter with this value...it
will be better I think :-)
Thanks :-)
Bye
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]