OK, can someone supply an easy to follow howto (assuming livecd - no gentoo from scratch stuff) on getting email notification to work. I have:
1. Set and saved my event (using 1 event total score >5)
2. set the options for email (tried smtp and send mail)
3. added the 3 mystical lines to zmfilter.pl (made no difference - but at least there wasn't any crash)
Getting ready to pull my hair out - not much left - so please help.
Thanks in advance.
Oh by the way, the livecd upgrades nicely to version 1.19.5 using the same procedure outlined in the "many thanks to rdmelin" post...
Email Howto
Did you get it working?
I can't get it to work.... tried _every_ solution posted in the different forums but...
Running livecd 1.19.5 upgraded with rpm to 1.21.0
zmfilter.log reports:
Scanning for events
Creating notification email
Sending notification email 'ZoneMinder: Alarm - Kamera2-733 (255 - 255 14)'
Attaching '2/733/011-capture.jpg
Attaching '2/733/Event-733.mpg
Archiving event 733
I can't get it to work.... tried _every_ solution posted in the different forums but...
Running livecd 1.19.5 upgraded with rpm to 1.21.0
zmfilter.log reports:
Scanning for events
Creating notification email
Sending notification email 'ZoneMinder: Alarm - Kamera2-733 (255 - 255 14)'
Attaching '2/733/011-capture.jpg
Attaching '2/733/Event-733.mpg
Archiving event 733
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
As I said; I'm running livecd. Basically in an as-is installation. I have not tinkered with sendmail settings.
In the /var/log/mail/errors file I get this entry:
"Mar 29 22:25:01 videoserver postfix/postfix-script: fatal: the Postfix mail system is not running"
In the /var/log/mail/warnings file I get these entries:
"Mar 29 21:02:43 videoserver postfix/postdrop[4189]: warning: unable to look up public/pickup: No such file or directory"
What might be wrong?
Is ther really any reason why the livecd distribution can't be fully configured to send e-mail without "customization"?
In the /var/log/mail/errors file I get this entry:
"Mar 29 22:25:01 videoserver postfix/postfix-script: fatal: the Postfix mail system is not running"
In the /var/log/mail/warnings file I get these entries:
"Mar 29 21:02:43 videoserver postfix/postdrop[4189]: warning: unable to look up public/pickup: No such file or directory"
What might be wrong?
Is ther really any reason why the livecd distribution can't be fully configured to send e-mail without "customization"?
Ok, I'm stupid .
"/etc/init.d/postfix start" did it!
"chkconfig postfix on" makes it start automagicaly on reboot.
I also replaced "$mail->smtpsend();" in "/usr/bin/zmfilter.pl" with the folowing 3 lines:
open MAIL, "| /usr/lib/sendmail -t -oi -oem -f ".M_FROM_EMAIL or die "open: $!";
$mail->print(\*MAIL);
close MAIL;
There are 2 places in "/usr/bin/zmfilter.pl" you have to do this. In line 746 and line 800 (line numbers may vary a bit depending on versions)
"/etc/init.d/postfix start" did it!
"chkconfig postfix on" makes it start automagicaly on reboot.
I also replaced "$mail->smtpsend();" in "/usr/bin/zmfilter.pl" with the folowing 3 lines:
open MAIL, "| /usr/lib/sendmail -t -oi -oem -f ".M_FROM_EMAIL or die "open: $!";
$mail->print(\*MAIL);
close MAIL;
There are 2 places in "/usr/bin/zmfilter.pl" you have to do this. In line 746 and line 800 (line numbers may vary a bit depending on versions)