Filter and ssmtp

Forum for questions and support relating to the 1.27.x releases only.
Locked
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Filter and ssmtp

Post by BiloxiGeek »

Anyone have a good config for getting email notifications working with ssmtp?

I have ssmtp working, a filter set up, but when the filter gets triggered I see zmfilter log entries that say it's sending notification email, but nothing shows up in maillog and no email is sent.

I've tested ssmtp using:

Code: Select all

ssmtp <my email address>
Type some nonsense
<Ctrl-D>
That works just fine, as does using sendmail instead of ssmtp. What needs to be done to get zm to send out emails using ssmtp?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Filter and ssmtp

Post by PacoLM »

Hi,

I use postix, there are several guides about the configuration on the web, if you can't find it, I could send you my notes.

Hope it helps,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: Filter and ssmtp

Post by BiloxiGeek »

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