Difference between revisions of "How to get ssmtp working with Zoneminder"

From ZoneMinder Wiki
Jump to navigationJump to search
(Created page with "===Why do you need this If you want Zoneminder to send you emails about alarms, you need to configure a way for ZM to send emails. SSMTP is one of several ways, and a lightwe...")
 
Line 1: Line 1:
===Why do you need this
===Why do you need this===


If you want Zoneminder to send you emails about alarms, you need to configure a way for ZM to send emails. SSMTP is one of several ways, and a lightweight and efficient one.
If you want Zoneminder to send you emails about alarms, you need to configure a way for ZM to send emails. SSMTP is one of several ways, and a lightweight and efficient one.




=== Background
=== Background===
SSMTP is a really light mail transfer agent (MTA) that a lot of people use in Linux. It is much more lightweight that sendmail for sure and I am told postfix too.
SSMTP is a really light mail transfer agent (MTA) that a lot of people use in Linux. It is much more lightweight that sendmail for sure and I am told postfix too.
Note that SSMTP does not really run a daemon process in your box, so trying "telnet localhost 25" is going to fail (and also why a traditional Zoneminder configuration of using local host fails)
Note that SSMTP does not really run a daemon process in your box, so trying "telnet localhost 25" is going to fail (and also why a traditional Zoneminder configuration of using local host fails)
Line 14: Line 14:




=== Installation of SSMTP
=== Installation of SSMTP===
Installation is very simple
Installation is very simple
```
```
sudo apt-get update
sudo apt-get update

Revision as of 06:22, 22 March 2015

Why do you need this

If you want Zoneminder to send you emails about alarms, you need to configure a way for ZM to send emails. SSMTP is one of several ways, and a lightweight and efficient one.


Background

SSMTP is a really light mail transfer agent (MTA) that a lot of people use in Linux. It is much more lightweight that sendmail for sure and I am told postfix too. Note that SSMTP does not really run a daemon process in your box, so trying "telnet localhost 25" is going to fail (and also why a traditional Zoneminder configuration of using local host fails) Instead what is does is this:

  • It installs a program called ssmtp that you can use to send emails
  • Creates a soft link to point sendmail to ssmtp, so you can use the sendmail command too

If you are running ZM on a "not to high end" machine and are monitoring more than 3-4 HD cameras, you will want to be prudent on what you want to install. SSMTP is a great choice.


Installation of SSMTP

Installation is very simple

``` sudo apt-get update apt-get install ssmtp apt-get installutils ```