I was hoping to avoid sendmail and postfix. ssmtp seems to be much more lightweight, and I only need to send email notifications from zoneminder. I have the ssmtp working just fine so far. I can email from the command line on the zoneminder box using either sendmail or ssmtp as the command.
Near as I can tell the filter I've set up gets triggered. I know because part of the filter is to automatically generate an mpg video of the event. But the email notification fails. In the log I see:
Code: Select all
zmfilter[469]: ERR [Can't send email: SMTP Failed to connect to mail server: Connection timed out#012 at /usr/bin/zmfilter.pl line 1009]
I tried setting the EMAIL_HOST to localhost, that didn't work. Changed it to my smtp server, but it uses port 2525 to avoid my ISP's block out outgoing port 25 traffic. My ISP is CableOne and they use gmail, so I've never used that setup, I have my email hosted where my smtp server is on the port 2525. It does require a username/password to send email and I think that might be what is messing things up. That's why I was hoping that ssmtp would be able to act as a relay of sorts.