How to set envelope sender (MAIL FROM) using exim

Marcus Williams marcus at quintic.co.uk
Thu Sep 25 15:36:59 CEST 2008


On 25.9.2008, Longman wrote:
> I can use -a "From: foo at bar" as an option to /usr/bin/mail but the
> return-path (envelope sender) on outbound emails is of the form
> user at mailname.  For some reason a system I mail ignores the From address
> and wants to reply to the return-path address despite there being no
> Sender header present and the From being valid and deliverable.
> 
> What solutions are there?

I think mail supports passing on args to sendmail using:

mail -s "subject" recipient at domain -a "From: myname at domain" -- -f returnpath at domain

Not sure if it will work in your case.

Marcus




More information about the CLUG mailing list