Saturday, February 14, 2015

monit - mailserver for google apps email

Leave a Comment

Monit - mailserver for google apps email

# vi /etc/monit.conf
Add following bellow:
set mail-format {
      from: monit@$HOST
   subject: monit alert --  $EVENT $SERVICE
   message: $EVENT Service $SERVICE
                 Date:        $DATE
                 Action:      $ACTION
                 Host:        $HOST
                 Description: $DESCRIPTION
            Your faithful employee,
            Monit
}
set alert useraccount@gmail.com not on { instance, action } #Set mail receive
set mailserver smtp.gmail.com port 587
    username "useraccount@gmail.com" password "password-gmail"
    using tlsv1
    with timeout 10 seconds
Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4

0 comments:

Post a Comment