[KLUG Members] using mail to set From address

bill members@kalamazoolinux.org
Fri, 16 Jan 2004 15:04:47 -0500


Using the mail command in a script works fine for sending mail except 
when the ISP requires a legitimate sender.  That is, if the "From" 
header is "user@localhost.localdomain," some ISPs block it.

What is the best way to get around that?  Can the mail command be used 
to set the From header?  Is there another setting outside mail that can 
be changed?  Can another program be used from within a BASH script to 
send email?

FWIW, the box sending the e-mail is on a fixed IP and no, it's not 
sending spam.

kind regards,

bill hollett