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....
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....