Specify sending machine from mailx command line?

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



When using "mail" (from the mailx package) to send mail from the command 
line, can I specify the sending system name?

I want to mail the occasional status message to my personal e-mail account 
from a server machine.  Something like this:

  echo "New IP address: $new_ip_address" | \
        mail -s "DHCP - $interface addr change" myname@xxxxxxxxx

When I attempt to send mail from machine server.mydomain.lan my ISP sees 
incoming mail from "localhost.mydomain.lan [127.0.0.1]" and bounces it as 
being blacklisted.

Is there a way to submit an acceptable name to my ISP's mail server from 
command line e-mail?

Thanks.

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux