Problem with Zoneminder (v1.34.9) email notification on events

ghostwolf59

Contributor
Joined
Mar 2, 2013
Messages
165
Hi,
I just installed Zoneminder (v1.34.9) where I hooked up a Reolink RLC-410-5MP bullet camera.
Got the camera to work, recoding events etc, BUT I am struggling getting the email notification to work as part of triggered events??
This is driving me nuts atm!

Anyways, I setup a mockup trigger event within zm and configured the email sendout under the Options -> Email settings.
Installed postfix and have no issues sending a command line test email i.e $echo "Test Email Contents" | mail -s "Postfix Test Email" myTESTemail@iinet.net.au
However, I dont seem to be able to get the email sent out as part of zm triggering an event.

This is basically how I set up postfix within my FreeNAS zm jail *freenas v 11.3*

#############################################################
# postfix Manual configuration for email

## SASL Options
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/usr/local/etc/postfix/sasl_passwd

## TLS Options
smtp_use_tls = yes
smtp_tls_security_level = encrypt
tls_random_source = dev:/dev/urandom

## Relay host
relayhost = [smtp.iinet.net.au]:587
#
disable_vrfy_command = yes
inet_interfaces = loopback-only
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
smtpd_helo_required = yes

#############################################################

$postfix -c /usr/local/etc/postfix set-permissions

$newaliases
$postalias /etc/aliases


$edit /usr/local/etc/postfix/sasl_passwd
[smtp.iinet.net.au]:587 #####@iinet.net.au:mailPsw


$postmap /usr/local/etc/postfix/sasl_passwd
$chmod 0600 /usr/local/etc/postfix/sasl_passwd
$chown root:wheel /usr/local/etc/postfix/sasl_passwd
$echo "Test Email Contents" | mail -s "Postfix Test Email" myTESTemail@iinet.net.au
### If no email is received, check mail log: /var/log/maillog
#####################################################################################

### This is how I configured zm event triggers email (Options -> Email settings)
OPT_EMAIL (checked)
EMAIL_ADDRESS (valid email recipient address)
OPT_MESSAGE (checked)
MESSAGE_ADDRESS (valid email recipient address)
NEW_MAIL_MODULES *checked and unchecked - tried both option but nothing sent)
EMAIL_HOST (set to localhost)
FROM_EMAIL (set to dummy zm@iinet.net.au address)
#####################################################################################

What am I doing wrong????

This is driving me insane
:(


Anyone that can assist me with this - please....
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I don't run my ZM with the FreeNAS plugin, but I did notice that a previously working email alert was broken when I upgraded it to the latest version.

Maybe it's not you. Check the ZM forums.
 

ghostwolf59

Contributor
Joined
Mar 2, 2013
Messages
165
I don't run my ZM with the FreeNAS plugin, but I did notice that a previously working email alert was broken when I upgraded it to the latest version.

Maybe it's not you. Check the ZM forums.

I started with zm forum - but 26 reads later *by members* not a single suggestion or comment - no idea what that suggests, but does not change the fact that Im stuck at this point and its annoying since everything else seem to work pretty well

Another point is that Im not running zm plugin - its configured in its own jail and appears sound *apart from this email notification that I dont seem to be able to get to work from within the app.
Command line test email from within the jail works just fine once I configured postfix though.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Another point is that Im not running zm plugin
Maybe I should have been clearer, I don't run ZM on FreeNAS at all. I think it's a problem with ZM in general, not the FreeNAS implementation, hence the recommendation to try their forums.

Perhaps somebody around here has figured it out, but I was putting the facts together to assume it's not something fixable here.
 

ghostwolf59

Contributor
Joined
Mar 2, 2013
Messages
165
Maybe I should have been clearer, I don't run ZM on FreeNAS at all. I think it's a problem with ZM in general, not the FreeNAS implementation, hence the recommendation to try their forums.

Perhaps somebody around here has figured it out, but I was putting the facts together to assume it's not something fixable here.

mate! I never suggested this being a freenas issue - I simply tried to reach out to the community in the hope someone had a suggestion on this trivial issue.

cheers
 
Top