Changing Notification "from" address
Posted: Tue Aug 30, 2016 2:54 pm
Howdy,
Just glancing over this article I found online:
http://serverfault.com/questions/73004/ ... mails-from
Has anyone had any success doing this? I have a requirement to change the "From" address for notifications for certain sites to get them into a CRM properly.
I've tried a few things so far by trying to run the commands manually from CLI:
Pretty much everything in the link above I have tried, and the 'mail' command just seems to hang. I don't see anything in /var/log/maillog.
Any ideas?
Just glancing over this article I found online:
http://serverfault.com/questions/73004/ ... mails-from
Has anyone had any success doing this? I have a requirement to change the "From" address for notifications for certain sites to get them into a CRM properly.
I've tried a few things so far by trying to run the commands manually from CLI:
Code: Select all
/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTNAME$ is $HOSTSTATE$ **" [email protected] -- -r "[email protected]"
/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTNAME$ is $HOSTSTATE$ **" [email protected] -- -r [email protected]
/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTNAME$ is $HOSTSTATE$ **" [email protected] -- [email protected]
Any ideas?