ZM is not calling up ssmtp when sending email

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
kennbr34
Posts: 36
Joined: Sat Jan 14, 2017 6:43 pm

ZM is not calling up ssmtp when sending email

Post by kennbr34 » 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...

Code: Select all

sudo -u www-data ssmtp -v myemail < mail.txt
The email sends through just fine, and I see a record of it in /var/log/mail.log

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
Zoneminder's filter log also claims to be sending emails without error...

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
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.

snake
Posts: 87
Joined: Sat May 21, 2016 2:20 am

Re: ZM is not calling up ssmtp when sending email

Post by snake » Wed Sep 05, 2018 12:38 am

I've documented troubleshooting email (ubuntu 14.04), and there is the original guide respectively here and here:
https://wiki.zoneminder.com/SMS_Notifications
https://wiki.zoneminder.com/How_to_get_ ... Zoneminder

Beyond that, it's hard to say. Compare the syslog from the working server to the non-working server. Where do they differ? Where does the trail end.

kennbr34
Posts: 36
Joined: Sat Jan 14, 2017 6:43 pm

Re: ZM is not calling up ssmtp when sending email

Post by kennbr34 » Thu Sep 13, 2018 10:42 pm

snake wrote:
Wed Sep 05, 2018 12:38 am
I've documented troubleshooting email (ubuntu 14.04), and there is the original guide respectively here and here:
https://wiki.zoneminder.com/SMS_Notifications
https://wiki.zoneminder.com/How_to_get_ ... Zoneminder

Beyond that, it's hard to say. Compare the syslog from the working server to the non-working server. Where do they differ? Where does the trail end.
Thanks snake. Somehow I managed not to even check the "use new mail method." I thought I had cloned the DB over, so I'm not sure how that happened, but it's working fine now.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests