ZM is not calling up ssmtp when sending email
Posted: Tue Sep 04, 2018 9:11 pm
I've got ZM 1.30.4 on Ubuntu 16.04.5 and I've got ssmtp all properly configured and working to send emails. I've got the /etc/ssmtp.conf file set with proper permissions for www-data- to access it. When I do this...
The email sends through just fine, and I see a record of it in /var/log/mail.log
Zoneminder's filter log also claims to be sending emails without error...
But despite zmfilter.pl claiming it sends the email, there are no corresponding attempts in /var/log/mail.log or /var/log/mail.err and so it seems that Zoneminder is not calling ssmtp at all.
What makes this even more puzzling is that I have the exact same configuration working on another server.
Code: Select all
sudo -u www-data ssmtp -v myemail < mail.txt
Code: Select all
Sep 4 13:59:35 serverbox sSMTP[10661]: Sent mail for myemail (221 See you later) uid=33 username=www-data outbytes=343
Code: Select all
2018-09-04 14:06:14.724810 zmfilter 7951 INF Notification email sent zmfilter.pl
2018-09-04 14:06:14.682380 zmfilter 7951 INF Attaching '/usr/share/zoneminder/www/events/10/18/09/04/14/03/50/Event-112879-r1-s1.avi zmfilter.pl
2018-09-04 14:06:14.641270 zmfilter 7951 INF Attaching '/usr/share/zoneminder/www/events/10/18/09/04/14/03/50/00132-capture.jpg zmfilter.pl
2018-09-04 14:06:14.599230 zmfilter 7951 INF Attaching '/usr/share/zoneminder/www/events/10/18/09/04/14/03/50/00026-capture.jpg zmfilter.pl
2018-09-04 14:06:14.556350 zmfilter 7951 INF Sending notification email 'ZoneMinder: Alarm' zmfilter.pl
2018-09-04 14:06:13.786140 zmfilter 7951 INF Creating notification email
What makes this even more puzzling is that I have the exact same configuration working on another server.