I it is assumed that the Zoneminder is installed .
Installation of SSMTP
sudo apt update
sudo apt install ssmtp
apt sudo install mailutils
Note: ssmtp has to be installed before installing mailutils . If you install mailutils first , installation of postfix also will be taken place ,which may hinder installing some dependent software needed for ssmpt.
Configuration of SSMTP
To open ssmtp.conf
sudo gedit /etc/ssmtp/ssmtp.conf.
Then edit to include following lines as shown in the figure:-1 below and save the file
In line number 23 your gmail password has to be entered in front of AuthPass=
Checking to see mail works
On the terminal enter
sudo echo “This is the body of the email” | mail -s “This is the subject line” receiver’s email address
Note : The receiver’s email address has to be replaced with your receiver’s actual email address in above command
Making changes in ZM options
Open Sub menu ZM/Options/Email
Make changes as shown in the figures and save the settings
I have included dropbox sync link of zoneminder events in the email body. This link is shown in the email message so that you can view all video clips of the events.
To get more details in dropbox syncing please refer this link
Figure:-3 Enlarge view of the EMAIL_BODY cage shown in the figure 2
Creating a filter to make alarm events to enable to send emails is shown in the figure below
When you run Zoneminder on “Modect” mode with the above filter the email messages will be sent to the email address entered in ZM-Options panel.
Some email messages sent are shown below
Figure:-7 Details of the zoneminder alarm of the email message, under the dropbox sync link
Aol mail App in mobile phone can be configured to get special notification sound or playing a recorded sound clip when an email is received. Please see the figure below