Questions concerning email notifications

Support and queries relating to all previous versions of ZoneMinder
Locked
danielareas
Posts: 33
Joined: Thu Oct 26, 2006 6:00 pm

Questions concerning email notifications

Post by danielareas »

I've been trying for a month to configure ZM to send email notifications with no success.
I have SENDMAIL installed and working when I test it in the terminal window. But I can´t make ZM trigger any events to send mails. I´ve already configured the email TAB in the Options window and nothing.
Can anyone help me with instructions to configure email notifications?
Is it better to use SMTP? If yes, how?
Is it easier do send SMS? If yes, how?
Having SENDMAIL installed isn´t enough to make it work? Do I have to configure anything else?
Do email notifications depend on filters?

Daniel Areas
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if your sendmail can send email then its probably a config in zm issue, ie people tend to delete the info in the boxes but it is needed. But id bet yuour send mail is misconfigured and cannot actually send mail, whats in your logs
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
danielareas
Posts: 33
Joined: Thu Oct 26, 2006 6:00 pm

My logs and configurations

Post by danielareas »

James,

A piece of may messages log:

May 30 22:38:42 desktop zmfilter[7955]: INF [Archiving event 89]
May 30 22:38:42 desktop zmfilter[7955]: INF [Creating notification email]
May 30 22:38:42 desktop zmfilter[7955]: INF [Sending notification email 'Kokoon: Alarm - webcam-89 (17 - 13 11)']
May 30 22:38:42 desktop zmfilter[7955]: INF [Creating notification message]
May 30 22:38:42 desktop zmfilter[7955]: INF [Sending notification message 'Kokoon: Alarm - webcam-89']
May 30 22:38:42 desktop zmfilter[7955]: INF [Archiving event 96]
May 30 22:38:42 desktop zmfilter[7955]: INF [Creating notification email]
May 30 22:38:42 desktop zmfilter[7955]: INF [Sending notification email 'Kokoon: Alarm - webcam-96 (17 - 12 13)']


A piece of my mail.log :

May 30 22:11:11 desktop sendmail[4498]: gethostbyaddr(189.6.100.82) failed: 1
May 30 22:11:27 desktop sm-mta[5126]: gethostbyaddr(189.6.100.82) failed: 1
May 30 22:11:27 desktop sm-mta[5128]: starting daemon (8.13.8): SMTP+queueing@00:10:00
May 30 22:21:05 desktop sendmail[6375]: l4V1L1dZ006375: from=daniel, size=8, class=0, nrcpts=1, msgid=<200705310121.l4V1L1dZ006375@desktop>, relay=daniel@localhost
May 30 22:21:05 desktop sm-mta[6379]: l4V1L5dB006379: from=<daniel@desktop>, size=301, class=0, nrcpts=1, msgid=<200705310121.l4V1L1dZ006375@desktop>, proto=ESMTP, daemon=MSP-v4, relay=www.localhost.com.br [127.0.0.1]

And my configuration at the email tab in options:

ZM_NEW_MAIL_MODULES: checked
ZM_EMAIL_HOST: localhost
ZM_FROM_EMAIL: daniel@desktop.com
ZM_URL: www.danielzm.com.br

Any ideas?

thanks!!

P.S - When I write at the terminal: sendmail mymail@gmail.com and period after the message, I get the email instantly.
john.a.sutherland
Posts: 15
Joined: Fri Jun 01, 2007 6:47 pm

Me too! Not working....yet

Post by john.a.sutherland »

I get this from my messages:

Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Creating notification message]
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Sending notification message 'ZoneMinder: Alarm - Front_Door-111']
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Archiving event 112]
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Creating notification email]
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Sending notification email 'ZoneMinder: Alarm - Front_Door-112 (32 - 10 25)']

Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Creating notification message]
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Sending notification message 'ZoneMinder: Alarm - Front_Door-112']
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Archiving event 117]
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Creating notification email]
Jun 1 08:00:28 linux2 zmfilter[12906]: INF [Sending notification email 'ZoneMinder: Alarm - Front_Door-117 (70 - 27 291)']


Looks like it never sends. Not sure if I got the ZM URL right, my machine is not accessible from outside the internal network if that matters. I just put http://localhost/zm/zm.php, is that right? I do get the ZM main screen when I use that, but is that what the e-mail settings needs/wants?

Any ideas on how to troubleshoot?

Thanks,

John
Locked