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.
Configure email settings
Re: Configure email settings
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.
Re: Configure email settings
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)?
edit: Do I really need to install ssmtp to get the email notifications working (https://wiki.zoneminder.com/How_to_get_ ... Zoneminder)?
Re: Configure email settings
I was trying to configure ssmtp and got an error when trying to send an email:
Here is the ssmtp.conf config file:
The email should be sent using the mailrelay which is a remote server. Is anything missing else in the config file?
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)
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
Re: Configure email settings
I managed to fix it with Postfix.