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

sudo apt  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

Figure:1

 

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

Figure:-2

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

Figure:-4

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

Figure:-5

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

Screenshot_2019-05-23-20-28-55

Figure:-6

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

 

 

 

 

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

  1. Hi!

    When I tested your “How-to” on Ubunto, there was no bigger issues but on Debian when I try to download and install ssmtp I get the following notice; “This package has been orphaned since 2019-03-19. msmtp can be used as an alternative.”. Do you know if the msmtp will work in the same way?

    (The installation will be on a Zoneminder server using Debian 10)

    I also want to thank you for the perfect guide !!

    BR//Erkki, Sweden

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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