Monday, November 23, 2020

Unix/Linux mailx send email via relay

 

192.168.1.1 is the ip of mail relay (example)

$ mailx -v -s "testing" -S smtp=smtp://192.168.1.1 -S from="test@yourdomain.com" 

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...