Steve Snyder
2006-Jan-23 17:07 UTC
[CentOS] Specify sending machine from mailx command line?
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 at myisp.com 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.
Reasonably Related Threads
- 6271998 gcc and cmd/mailx don''t get along
- security hole in mailx
- [RHSA-2000:048-02] Updated mailx and perl packages are now available.
- Conversion from Centos 5 to Centos 7 & mailx changes
- [RHSA-2000:048-06] Updated mailx and perl packages are now available.