Unable to send emails after update to 1.35.16

Previous development branch now released as 1.36
Locked
User avatar
Dr. Evil
Posts: 7
Joined: Tue Nov 03, 2020 11:26 pm

Unable to send emails after update to 1.35.16

Post by Dr. Evil »

Have ZM installed on Ubuntu 20.04 and email was sending fine in previous version but after upgrading to 1.35.16, no email. Upgraded ssmtp to msmtp following https://bkjaya.wordpress.com/2019/10/21 ... ntu-19-04/ and am able to send mail successfully on the command line but email in ZM fails with following error:

Code: Select all

2020-12-15 11:52:48	zmdc		89373	ERR	'zmfilter.pl --filter_id=3 --daemon' exited abnormally, exit status 255	zmdc.pl
2020-12-15 11:52:48	zmfilter_3		89971	INF	Creating notification email	zmfilter.pl
The zm creates the email and then chokes on sending it. Any ideas on how to go about getting my email working again? I think it might be a problem with a perl dependency that got borked in the upgrade process but any ideas gratefully received.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Unable to send emails after update to 1.35.16

Post by knight-of-ni »

The way to troubleshoot this is to test from the command line, as the web account user.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
Dr. Evil
Posts: 7
Joined: Tue Nov 03, 2020 11:26 pm

Re: Unable to send emails after update to 1.35.16

Post by Dr. Evil »

Well

Code: Select all

su - www-data -s /bin/bash -c echo "Hello, World" | mail -s "Hello, World from www-data" rick@xxx.ca
worked. Funny thing was in the earlier software version, mail was sent no problem. Any other clues I could follow?
User avatar
Dr. Evil
Posts: 7
Joined: Tue Nov 03, 2020 11:26 pm

Re: Unable to send emails after update to 1.35.16

Post by Dr. Evil »

Just did an update and it works! Go figure...
Locked