[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re:Specify "mail from:" in postfix + relayhost



On Apr 12, 2012 12:53 PM, "Mathieu Malaterre" <mathieu.malaterre@gmail.com> wrote:
>  This works great. However using the `mail` command line interface I
> can only send email from my main gmail adress. I did a small test
> using `telnet localhost 25`, I can then specify any of my
> pre-configured gmail adress (eg @free.fr).
>  However using telnet is pretty tedious. Does anyone knows what is the
> command line option to specify the 'mail from:' information ?

You can specify any headers with -a, e.g.

$ mail -a 'From: "My Name" <me@example.org>' da

Daniel Landau


Reply to: