Today I set up a new XYMon monitor VM. The old one used PostFix, but I set up SSMTP.
I can e-mail myself fine from the CLI like such.
echo "Hello, World" | mail -s "My email check" firstname.lastname@example.org
But I can't seem to get XYMon to notify me via E-Mail.
I have done a few tests, I'm suspecting this is related to SSMTP more the XYMon as its fairly simple to set up.
/usr/lib/xymon/server/bin/xymond_alert --test testsite.com http
Results in this line : (Among many others, but this is the important one)
Mail alert with command '/var/mail/root "Xymon  testsite.com:http CRITICAL (RED)" email@example.com'
There are a few things wrong with this, first there is no /var/mail/root that I can find, also, firstname.lastname@example.org is the username I authenticate with and configure SSMTP with, but not the e-mail I actually want this notification sent to.
My SSMTP Configs :
mailhub=smtp.comcast.net:587 UseSTARTTLS=YES UseTLS=YES FromLineOverride=YES hostname=businessdomain.com AuthUseremail@example.com AuthPass=PASSWORD
My Alerts in XYMon :
HOST=testsite.com MAIL firstname.lastname@example.org REPEAT=1h COLOR=red DURATION>15 RECOVERED
# For the xymond_alert module MAILC="mail" # Command used to send an e-mail with no subject MAIL="$MAILC -s" # Command used to send an e-mail with a subject root@monitor:/etc/xymon# echo $MAIL /var/mail/root