Email Howto

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
itsthemedication
Posts: 33
Joined: Mon Jul 12, 2004 3:11 pm

Email Howto

Post by itsthemedication »

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...
jfm
Posts: 46
Joined: Tue Mar 29, 2005 9:30 pm

Post by jfm »

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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you checked you /var/log/maillog file to see whether the mails are actually leaving your system? I assume you are able to successfully send mail from other applications?

Phil
jfm
Posts: 46
Joined: Tue Mar 29, 2005 9:30 pm

Post by jfm »

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"?
jfm
Posts: 46
Joined: Tue Mar 29, 2005 9:30 pm

Post by jfm »

Ok, I'm stupid :oops: .

"/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)
Post Reply