SSMTP connection refused
Posted: Fri Oct 06, 2017 10:52 pm
Hi,
I'm using ZoneMinder 1.30.4 on Ubuntu Desktop 16.04 LTS
I have followed SSMTP instruction (https://wiki.zoneminder.com/How_to_get_ ... Zoneminder) to setup email that use gmail SMTP. I also didn't make any changes on the /usr/bin/zmfilter.pl file, as my version is 1.30.4 and I have ticked the NEW_MAIL_MODULES option.
The following are my email settings: When I do a manual testing
It works and I have received the email (which indicated that the ssmtp.conf and revaliases configurations are correct).
Unfortunately, when I forced alarm and send the event by email (as instructed by the page), it throws this error inside /var/log/syslog
I have checked another thread (viewtopic.php?t=25346), someone says that I need to check the SSMTP config files permission; I did mine and the following is the original one:
and the following after the change ownership:
Unfortunately, still no email is received.
Can someone please let me know what else should I check now?
Also, another thing, when I tried to change the logging of LOG_LEVEL_SYSLOG to DEBUG, the /var/log/syslog still shows the info information only (even after zoneminder restart)
I'm using ZoneMinder 1.30.4 on Ubuntu Desktop 16.04 LTS
I have followed SSMTP instruction (https://wiki.zoneminder.com/How_to_get_ ... Zoneminder) to setup email that use gmail SMTP. I also didn't make any changes on the /usr/bin/zmfilter.pl file, as my version is 1.30.4 and I have ticked the NEW_MAIL_MODULES option.
The following are my email settings: When I do a manual testing
Code: Select all
echo "Hello, World" | mail -s "My email check" email@gmail.com
Unfortunately, when I forced alarm and send the event by email (as instructed by the page), it throws this error inside /var/log/syslog
Code: Select all
ERR [Can't send email: SMTP Failed to connect to mail server: Connection refused#012 at /usr/bin/zmfilter.pl line 817.]
Can someone please let me know what else should I check now?
Also, another thing, when I tried to change the logging of LOG_LEVEL_SYSLOG to DEBUG, the /var/log/syslog still shows the info information only (even after zoneminder restart)