My OS is Linux Mandrake 10 and I had problems getting Email filter to send messages.
All previous versions of ZoneMinder did the same thing, did not send mail

so here is what I did:
1.) "Options / Email" menu of zoneminder and made sure that it has important settings:
ZM_NEW_MAIL_MODULES: checked
ZM_EMAIL_HOST: localhost (for some of you it could be different may have to use your ISP's SMTP host, contact them and ask)
ZM_FROM_EMAIL: me@myhost.com
ZM_URL: http://www.myhost.com/zminstallfolder/
2.) E-mail is still not working, what's next ?
I went to ZM forums and found out that filter has to be created in order to send emails!
Ok, that makes sense! ZM needs to know when and which alerts to send.
3.) creating new filter
clicked on the number of events (the total) then in the new window the one that has all the events listed "ShowFilterWindow"
in the FilterWindow i have configures the following rule:
"Alarm Frames" "greater than" "20"
click Save
the filter could be saved with a new name, ok let it be "Email"
checked the following boxes:
Automatically archive all matches:
Automatically email details of all matches:
Automatically message details of all matches:
Hit Save !
4.)
The email is still not working! what is wrong?
for Linux junkies the following command will make sense:
tail -f /var/log/messages
Output:
Sep 22 13:15:22 bludov zmc_dvideo[20768]: INF [New: 127000 - Capturing at 30.30 fps]
Sep 22 13:15:23 bludov zma_m1[20772]: INF [New: 127000 - Processing at 29.41 fps]
Sep 22 13:15:27 bludov zmdc[20745]: INF [Starting pending process, zmfilter.pl]
Sep 22 13:15:27 bludov zmdc[21179]: INF ['zmfilter.pl' started at 06/09/22 13:15:27]
Sep 22 13:15:27 bludov zmdc[20745]: INF ['zmfilter.pl' starting at 06/09/22 13:15:27, pid = 21179]
Sep 22 13:15:27 bludov zmdc[20745]: ERR ['zmfilter.pl ' exited abnormally, exit status 2]
"exited abnormally" F ^@%! that is not good, now I need to see what makes zmfilter.pl (perl) script to freak out.
now it is probably not a bad idea to check if zmfilter can run and the Perl has all required modules installed.
cd /usr/local/bin/zmfilter.pl
./zmfilter.pl
Can't locate MIME/Lite.pm in @INC (@INC contains: /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl) at ./zmfilter.pl line 80.
OOH SNAP! my perl is missing "MIME::Lite" package,
it's time to install the package!
perl -MCPAN -e shell
install MIME::Lite
5.)
tail -f /var/log/messages
Output:
Sep 22 13:26:20 bludov zmfilter[21371]: INF [Scanning for events]
Sep 22 13:26:25 bludov zmfilter[21371]: INF [Archiving event 106]
Sep 22 13:26:25 bludov zmfilter[21371]: INF [Creating notification email]
Sep 22 13:26:25 bludov zmfilter[21371]: INF [Sending notification email 'ZoneMinder: Alarm - New-106 (39 - 13 158)']
Sep 22 13:26:26 bludov zmfilter[21371]: INF [Notification email sent]
It works now!
P.S.
Thank you for developing ZoneMinder, excellent work !