Icinga email notifications

Icinga can be configured to send email notifications when certain events occur. However, to be able to use this feature we need to first setup email transmission from our arch linux box.

# pacman -S ssmtp

The configuration file for ssmtp is /etc/ssmtp/ssmtp.conf.

# The user that gets all the mails (UID < 1000, usually the admin)
root=username@gmail.com
# The mail server (where the mail is sent to), both port 465 or 587 should be acceptable
# See also http://mail.google.com/support/bin/answer.py?answer=78799
mailhub=smtp.gmail.com:587
# The address where the mail appears to come from for user authentication.
rewriteDomain=gmail.com

# The full hostname
hostname=localhost

# Use SSL/TLS before starting negotiation
UseTLS=Yes
UseSTARTTLS=Yes

# Username/Password
AuthUser=username
AuthPass=password

# Email 'From header's can override the default domain?
FromLineOverride=yes

 

Leave a Reply

Your email address will not be published. Required fields are marked *