OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: your mail
From: Lars Hecking (lheckingnmrc.ucc.ie)
Date: Thu Mar 16 2000 - 08:06:47 CST


Simon Atack (Uni) writes:
> I have the sender-canonical turned on to rewrite
> simon to simon.atack
>
> when i send a message from my mail programme (mutt) the
> >From header and Return-Path: is rewriten
> but the
> From: is not rewriten
>
> Is this because of the mail programme (mutt) or because i have missed a
> configuration option
>
> If there any way of having postfix rewrite the From: header?

 That's what canonical is for, what you describe is done by virtual.

man 5 canonical
[...]
     The canonical mapping affects both message header addresses
     (i.e. addresses that appear inside messages) and message
     envelope addresses (for example, the addresses that are used
     in SMTP protocol commands). Think Sendmail rule set S3, if
     you like.
[...]

man 5 virtual
[...]
     The virtual redirection is applied only to the recipient
     envelope address, and does not affect message headers.
     Think Sendmail rule set S0, if you like. Use canonical(5)
     mapping to rewrite header and envelope addresses in general.
[...]