OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: How can I set "Return-Path" header parameter when I use "mail" command line ?

From: Bill Cole (postfixlists-070913billmail.scconsult.com)
Date: Thu Oct 18 2007 - 10:04:31 CDT


At 10:39 AM +0200 10/18/07, Ralf Hildebrandt wrote:
>* KLEIN Stéphane <klein.stephanegmail.com>:
>> Hello,
>>
>> How can I set "Return-Path" header parameter when I use "mail" command
>> line ? I tried "mail -a "Return-Path: foobarexample.com" but it
>> doesn't work. Are you a tips.
>
>man mail

On the two systems (MacOS and Solaris) I happen
to have terminal sessions open to, `man mail`
does not describe any way to set the SMTP sender
address and hence the Return-Path header.

Of course, this CAN be done using sendmail instead of mail.

>mail -s subject recipientdomain -- -f foobarexample.com

MacOS /usr/bin/mail (which seems to be close to
the BSD version, as the binary is riddled with
FreeBSD version control strings) does not do
that. Is it reasonable to deduce that you can
terminate the mail options with a '--' and then
add any sendmail args? What implementation of
mail is that?
--
Bill Cole
billscconsult.com