When is the "received for" Header inserted

2008-09-30 Thread ram
I would like to hide the recipient (alias) address in the header of the
mail. Unfortunately the header on the mail contains "received from 
for ...  "

How can I configure postfix not to insert this header 


Thanks
Ram





Re: When is the "received for" Header inserted

2008-09-30 Thread mouss

ram wrote:

I would like to hide the recipient (alias) address in the header of the
mail. Unfortunately the header on the mail contains "received from 
for ...  "



why?


How can I configure postfix not to insert this header 


you can rewrite the header with header_checks and REPLACE.


Re: When is the "received for" Header inserted

2008-09-30 Thread ram

On Tue, 2008-09-30 at 16:48 +0200, mouss wrote:
> ram wrote:
> > I would like to hide the recipient (alias) address in the header of the
> > mail. Unfortunately the header on the mail contains "received from 
> > for ...  "
> > 
> 
> why?

Because our client does not want his end users to see which alias they
belong to


> 
> 
> > How can I configure postfix not to insert this header 
> 
> you can rewrite the header with header_checks and REPLACE.

I had thought header_checks get evaluated when the mail is coming in. I
will try this anyway 









Re: When is the "received for" Header inserted

2008-09-30 Thread mouss

ram wrote:

On Tue, 2008-09-30 at 16:48 +0200, mouss wrote:

ram wrote:

I would like to hide the recipient (alias) address in the header of the
mail. Unfortunately the header on the mail contains "received from 
for ...  "


why?


Because our client does not want his end users to see which alias they
belong to




How can I configure postfix not to insert this header 

you can rewrite the header with header_checks and REPLACE.


I had thought header_checks get evaluated when the mail is coming in.


The Received header is also added when "mail is coming in".


I
will try this anyway 












Re: When is the "received for" Header inserted

2008-09-30 Thread Eddy Beliveau

Hi!

You can add the following single line to your header_check_file:
/^(Received:.*for.<).*(@netcore.co.in>.*)$/ REPLACE {1}hidden${2}

/etc/postfix/main.cf must contains:
header_checks = regexp:/etc/postfix/header_checks

Check that /etc/postfix/master.cf does not contains, for your services:
 -o receive_override_options=no_header_body_checks

Restart postfix, it should works
Eddy
 Message original 
Sujet : When is the "received for" Header inserted
De : ram <[EMAIL PROTECTED]>
Pour : postfix-users@postfix.org
Date : 2008-09-30 06:53


I would like to hide the recipient (alias) address in the header of the
mail. Unfortunately the header on the mail contains "received from 
for ...  "

How can I configure postfix not to insert this header 



Thanks
Ram






--
Eddy Beliveau
HEC Montreal
Montreal (Quebec)
Canada