I cannot get ZM to send email.
the log says it does, but nothing is sent.
10/19/10 21:26:48.224732 zmfilter[24274].INF [Creating notification email]
10/19/10 21:26:48.225411 zmfilter[24274].INF [Sending notification email 'ZoneMinder: Alarm - Front-left-524 (8 - 6 29)']
10/19/10 21:26:48.229235 zmfilter[24274].INF [Notification email sent]
I can send email fine at command line using SSMTP as command, what mail command should I use to test ZM from command line?
This is on ubuntu 10.04 with ZM 1.24.2
Email problems using SSMTP
Re: Email problems using SSMTP
Well, no replies and no progress lots of googling.
I did get an email from the ZM box this morning,
/etc/cron.daily/logrotate:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Odd that it came from the email address that it is sending from. But hey, at least the OS knows how to send email.
I did get an email from the ZM box this morning,
/etc/cron.daily/logrotate:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Odd that it came from the email address that it is sending from. But hey, at least the OS knows how to send email.
I managed to get it to work with ssmtp and my gmail account with some editing of zmfilter.pl. There are two places that look essentially the same.
old code:
MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
$mail->send();
new code:
#MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
#$mail->send();
$mail->send('sendmail','/usr/sbin/ssmtp',emailaddress);
old code:
MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
$mail->send();
new code:
#MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
#$mail->send();
$mail->send('sendmail','/usr/sbin/ssmtp',emailaddress);