Modify From Address in Linux
Bruno Wolff III
bruno at wolff.to
Sun Jul 15 12:31:08 UTC 2007
On Sat, Jul 14, 2007 at 09:05:46 -0500,
Matthew Benjamin <msbenjamin12 at gmail.com> wrote:
>
> I am just using it from command line in linux "mail some at somewhere.com" it
> tells me it's from root
> I want it to tell me it's from nobody. It is a shell script I am writing to
> set up as a cronjob.
If you aren't relying on "mail" to set up attachments in the body of the
mail message, this might be a time where using sendmail to inject the
message is better than using a normal user agent. You can set up the whole
message including headers and pipe it to sendmail. Use the -f option to
set the envelope sender address for bounces and -i to ignore singleton dots.
More information about the fedora-list
mailing list