Configure email settings

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
pinguin
Posts: 6
Joined: Mon Aug 23, 2021 1:59 pm

Configure email settings

Post by pinguin »

Hello,

I am new at ZoneMinder and using the version 1.34.23 of ZoneMinder. I would like to configure the email settings. Is it possible to add a mailrelay or does ZoneMinder need an own SMTP server?

Thanks for your answers in advance.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Configure email settings

Post by rockedge »

I'm pretty sure you can use a mail relay as well. I've used gmail and other SMTP servers and have tested with my own successfully.
pinguin
Posts: 6
Joined: Mon Aug 23, 2021 1:59 pm

Re: Configure email settings

Post by pinguin »

How did you test sending an email? Is there a feature in ZoneMinder to test it or did you just test on the system where it is installed?

edit: Do I really need to install ssmtp to get the email notifications working (https://wiki.zoneminder.com/How_to_get_ ... Zoneminder)?
pinguin
Posts: 6
Joined: Mon Aug 23, 2021 1:59 pm

Re: Configure email settings

Post by pinguin »

I was trying to configure ssmtp and got an error when trying to send an email:

Code: Select all

[<-] 220 xxx.xxx.com ESMTP Postfix (Debian/GNU)
[->] EHLO xxx.xxx.com
[<-] 250 CHUNKING
[->] STARTTLS
[<-] 220 2.0.0 Ready to start TLS
[->] HELO xxx.xxx.com
[<-] 250 xxx.xxx.com
[->] MAIL FROM:<xxx@xxx.com>
[<-] 250 2.1.0 Ok
[->] RCPT TO:<xxx@xxx.com>
[<-] 451 4.3.0 <xxx@xxx.com>: Temporary lookup failure
sendmail: RCPT TO:<xxx@xxx.com> (451 4.3.0 <xxx@xxx.com>: Temporary lookup failure)
Here is the ssmtp.conf config file:

Code: Select all

root=xxx.xxx.com # hostname of ZoneMinder server
mailhub:xxx.xxx.com:587 # hostname of mailrelay server
hostname=xxx.xxx.com # hostname of ZoneMinder server
rewriteDomain=xxx.com
UseSTARTTLS=YES
The email should be sent using the mailrelay which is a remote server. Is anything missing else in the config file?
pinguin
Posts: 6
Joined: Mon Aug 23, 2021 1:59 pm

Re: Configure email settings

Post by pinguin »

I managed to fix it with Postfix.
Post Reply