Switch to MSMTP from SSMTP

Previous development branch now released as 1.36
Locked
fish2222
Posts: 34
Joined: Sun Apr 07, 2019 6:20 pm

Switch to MSMTP from SSMTP

Post by fish2222 »

So, I was having issues with SSMTP no longer wanting to send mail alerts, so I went through the steps to change over to MSMTP instead. I can send test emails just fine, but Zoneminder was getting an error along the lines of can't close zmfilter.pl file when trying to create emails (or send, not sure). So, I turned off emails for a couple of days till I could get back around to looking at this, and now after turning it on, I get a bunch of "creating notification email" logs but nothing ever sends and nothing shows as an error or warning. Any ideas?
fish2222
Posts: 34
Joined: Sun Apr 07, 2019 6:20 pm

Re: Switch to MSMTP from SSMTP

Post by fish2222 »

The log indicator at the top is red by the way, but no red in the logs.
User avatar
burger
Posts: 472
Joined: Mon May 11, 2020 4:32 pm

Re: Switch to MSMTP from SSMTP

Post by burger »

I haven't tested MSMTP on 1.35, but I assume it works. It works on 1.34. Make sure the email works from the terminal and then test it via ZM. There are two mail methods, and you must use the right one for MSMTP. See the links below which explain all this and more:

Docs on email are here: https://wiki.zoneminder.com/Email
Tips on MSMTP are here: https://wiki.zoneminder.com/SMS_Notifications

1.35 is a development release so expect things to break. You might want 1.34 (even number).
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Switch to MSMTP from SSMTP

Post by bkjaya1952 »

Please refer the following link
https://bkjaya.wordpress.com/2019/10/21 ... ntu-19-04/

I am using the MSMTP with zoneminder master 1.35.9 successfully
fish2222
Posts: 34
Joined: Sun Apr 07, 2019 6:20 pm

Re: Switch to MSMTP from SSMTP

Post by fish2222 »

Yeah, I have tried all of those links and still have the same issue.
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Switch to MSMTP from SSMTP

Post by bkjaya1952 »

fish2222 wrote: Sat Oct 10, 2020 9:10 pm Yeah, I have tried all of those links and still have the same issue.
The problem may be due to security setup in email service
fish2222
Posts: 34
Joined: Sun Apr 07, 2019 6:20 pm

Re: Switch to MSMTP from SSMTP

Post by fish2222 »

But the test email sends fine...
Locked