Page 1 of 1

[SOLVED] Bad recipient with filter email

Posted: Fri Mar 20, 2015 3:08 pm
by sime
Hi,
I don't know why but zoneminder doesn't use configured recipien for emails??

Code: Select all

root@debian:/home/sime# mysql -D zm -u****** -p******* -s -N -e "SELECT Value FROM Config WHERE ID in (105,110) ;"
sime@blaireau.com
sime@blaireau.com

Code: Select all

root@debian:/home/sime# tail /var/log/mail.log
Mar 20 11:01:54 Debian postfix/qmgr[32369]: 69D291C4348: from=<root@blaireau.com>, size=1867, nrcpt=1 (queue active)
Mar 20 11:01:54 Debian postfix/smtp[32473]: 69D291C4348: to=<root@blaireau.com>, orig_to=<root>, relay=relais.videotron.ca[24.201.245.36]:25, delay=996, delays=995/0.01/0.06/0.13, dsn=2.5.0, status=sent (250 2.5.0 Ok, envelope id 0NLI009V5N3670C0@VL-VM-MR003.ip.videotron.ca)
Mar 20 11:01:54 Debian postfix/qmgr[32369]: 69D291C4348: removed
Any clues?

Re: Bad recipient with filter email (resolved)

Posted: Mon Mar 23, 2015 8:20 pm
by sime
i was fooled by cron sending emails...

in fact, no email were sent at all by ZM because of ZM_EMAIL_BODY was empty

it should have sent an email empty with subject a least to help debug


Simon

Re: Bad recipient with filter email (resolved)

Posted: Mon Mar 23, 2015 8:23 pm
by asker
sime wrote:i was fooled by cron sending emails...

in fact, no email were sent at all by ZM because of ZM_EMAIL_BODY was empty

it should have sent an email empty with subject a least to help debug


Simon
Out of curiosity, does your email work after putting in ZM_EMAIL_BODY? I use ssmtp (not postfix/sendmail) and there is no mail daemon running, so I had to use another strategy to get ssmtp working

Re: Bad recipient with filter email (RESOLVED)

Posted: Tue Mar 24, 2015 12:50 pm
by sime
yes it works now... I have successfully received email with postifix (localhost) and using my ISP smtp..

it is cool having the alarm frame attache to the email using the %EI1% token