How to use SSMTP + dropbox to send email alerts of Zoneminder motion detection events on Ubuntu 18.10 & 19.04

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=

Screenshot from 2019-05-23 20-08-11



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

Screenshot from 2019-05-25 12-47-25


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

Screenshot from 2019-05-23 20-11-07

Figure:-3 Enlarge view of the EMAIL_BODY cage shown in the figure 2

Screenshot from 2019-05-25 12-58-41


Creating a filter to make alarm events to enable to send emails is shown in the figure below

Screenshot from 2019-05-25 13-06-02


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






Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s