[TriLUG] Command line mail
Greg Brown
gregbrown at mindspring.com
Mon Jun 9 16:30:31 EDT 2003
Using /bin/mail I don' t think this is possible.
I used to use mailx in the Solaris world to do just this type of thing
but, in the RH world anyway, mailx doesn't seem to have been ported to
Linux. If memory serves, and for what it's worth, the mailx command
used to be 'mailx -s 'my subject' -r opennms at myhost.mydomain.com
sendingto at address.com <imported.mail.file'.
I've been tinkering with ELM and I have been able send mail using a
different reply to address by setting the REPLYTO variable to the
address I want but the from line still shows the mail as coming from my
user account even though I've set the variables USER and LOGNAME.
I'll keep tinkering..
Greg
On Monday, June 9, 2003, at 03:50 PM, Tarus Balog wrote:
> Gang:
>
> OpenNMS uses /bin/mail to send mail notifications. Since the actiond
> process runs as root, the mail appears sent from
> "root at myserver.mydomain".
>
> They would like it to be something like "opennms at myserver.mydomain".
> So I have two questions:
>
> 1) I don't think this is possible with /bin/mail. I am right?
>
> 2) Is there another command line mail program that *would* allow one
> to set the "From" field? It would need to function similarly to
> /bin/mail to be a drop in replacement.
>
> -T
>
>
> ----------
> Tarus Balog
> Consultant
> Sortova Consulting Group, Inc. (www.sortova.com)
> tarus at sortova.com - 919-696-7625
>
> _______________________________________________
> TriLUG mailing list
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
> http://www.trilug.org/faq/TriLUG-faq.html
>
More information about the TriLUG
mailing list