sensu-plugins / sensu-plugins-mailer

This plugin is an email handler for Sensu.
http://sensu-plugins.io
MIT License
17 stars 37 forks source link

Send mail with google SMTP #46

Closed stefanocog closed 7 years ago

stefanocog commented 7 years ago

How can configure mailer to send mail trought gmail smtp? I use this but not work:

   "mailer": {
    "mail_from": "alert-sensu@example.org",
    "mail_to": [
                 "email1@example.org",
                 "email2@example.org"
    ],                                    
    "smtp_address": "smtp.googlemail.com",
    "smtp_domain": "googlemail.com",                  
    "smtp_username": "sender@example.org",
    "smtp_password":"xxxxxxxxxxxxx", 
    "smtp_enable_starttls_auto": "true",
    "smtp_port":"465"
    }
stefanocog commented 7 years ago

I resolved using "smtp_use_tls":"true" and removing "smtp_enable_starttls_auto": "true"