You will have to refer iconnor for adding Adding Zoneminder PPA to your system.
Open the Ubuntu terminal
sudo add-apt-repository ppa:iconnor/zoneminder sudo apt-get update sudo apt-get upgrade sudo apt-get
Then open the Synaptic Package Manager and see whether the Zoneminder is upgraded to version 1.3 properly .If not upgrade using the Synaptic Package Manager.
Now open the ZM Console to find Zoneminder is running.
How to email using SSMTP
Please refer Zoneminder Wiki
Installation of SSMTP
sudo apt-get update
apt-get install ssmtp
apt-get install mailutils
Configuration of SSMTP
To open ssmtp.conf
sudo gedit /etc/ssmtp/ssmtp.conf.
Then edit to include following lines and save the file
root="your gmail" mailhub=smtp.gmail.com:587 hostname=localhost RewriteDomain=gmail.com UseSTARTTLS=YES UseTLS=YES AuthUser="your gmail"
AuthPass=" password of your gmail"
Configure the revaliases with the correct “From” addresses while sending email
sudo gedit /etc/ssmtp/revaliases
Add following lines and save the file
root:"your gmail":smtp.gmail.com:587 www-data:"your gmail":smtp.gmail.com:587
Checking to see mail works
Go to root sudo su enter the root password cd ..
echo "Hello, World" | mail -s "My email check" "your gmail" Note:- All the places where "your gmail" mentioned in above commands have to be replaced with your e mail address Making changes in ZM Options Open sub menu ZM/Options/Email Make changes as follows To attach alarm videos to email body you will have to include %EV% as follows in the ZM/Options/Email/EMAIL_BODY To create alarm videos you will have to tick the box against OPT_FFMPEG in ZM as follows Creating a filter to send alarm email you will have to create , save and run on the background to be enable to email alarms as follows.