Need help with mail event triggers
Posted: Thu May 28, 2020 1:01 pm
Hi,
I just installed zm (v1.34.9) where I hooked up a Reolink RLC-410-5MP bullet camera.
Got it to work to the point of not being able to receive emails on triggered events.
This is driving me nuts atm - would have been nice if the web gui had a feature that could verify the email without being forced to trigger an event.
Similar to for instance Nextcloud have it setup - quicker and less mucking around.
Anyways, I setup a mockup trigger event and configured the email sendout under the Options -> Email settings.
Installed postfix and have no issues sending a command line test email, but whatever I do I dont seem to be able to get the email sent out as part of triggered event.
This is basically how I set up postfix within my FreeNAS jail *freenas v 11.3*
<code>
#############################################################
# 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
#############################################################
18. postfix -c /usr/local/etc/postfix set-permissions
19. $ newaliases
$ postalias /etc/aliases
20. edit /usr/local/etc/postfix/sasl_passwd
[smtp.iinet.net.au]:587 #####@iinet.net.au:mailPsw
21. postmap /usr/local/etc/postfix/sasl_passwd
22. chmod 0600 /usr/local/etc/postfix/sasl_passwd
23. chown root:wheel /usr/local/etc/postfix/sasl_passwd
24. echo "Test Email Contents" | mail -s "Postfix Test Email" myTESTemail@iinet.net.au
25. check log: edit /var/log/maillog
</code>
On the zm web interface I opted for
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 zm (v1.34.9) where I hooked up a Reolink RLC-410-5MP bullet camera.
Got it to work to the point of not being able to receive emails on triggered events.
This is driving me nuts atm - would have been nice if the web gui had a feature that could verify the email without being forced to trigger an event.
Similar to for instance Nextcloud have it setup - quicker and less mucking around.
Anyways, I setup a mockup trigger event and configured the email sendout under the Options -> Email settings.
Installed postfix and have no issues sending a command line test email, but whatever I do I dont seem to be able to get the email sent out as part of triggered event.
This is basically how I set up postfix within my FreeNAS jail *freenas v 11.3*
<code>
#############################################################
# 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
#############################################################
18. postfix -c /usr/local/etc/postfix set-permissions
19. $ newaliases
$ postalias /etc/aliases
20. edit /usr/local/etc/postfix/sasl_passwd
[smtp.iinet.net.au]:587 #####@iinet.net.au:mailPsw
21. postmap /usr/local/etc/postfix/sasl_passwd
22. chmod 0600 /usr/local/etc/postfix/sasl_passwd
23. chown root:wheel /usr/local/etc/postfix/sasl_passwd
24. echo "Test Email Contents" | mail -s "Postfix Test Email" myTESTemail@iinet.net.au
25. check log: edit /var/log/maillog
</code>
On the zm web interface I opted for
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....