On Mon, Mar 22, 2010 at 06:05:37PM +0100, Didier Wiroth wrote:
> Hello,
> (I'm using current with smtpd.)
> I'm sending mail reports to a mail address which is defined in the
> alias file like this:
> didier: dwir...@company.com
> 
> My smtpd.conf is:
> listen on lo0
> map "aliases" { source db "/etc/mail/aliases.db" }
> accept for local deliver to mbox
> accept for all relay via mail.company.com
> 
> When I get the mail, the return-path header field is:
> did...@originating.mail.host
> 
> Is it possible to "AUTOMATICALLY" change the default behavior of the
> mail command or from smtpd, so that the "return-path" is an
> existing/other mail address ?
> for example:
> return-path: <dwir...@company.com>

This is task for the MUA, not MTA.

$ mail didier -f dwir...@company.com < report.txt

Reply via email to