AWS SES plugin - not able to send emails (no errors seen)

Hi There,

I am trying to use the AWS SES plugin for sending out emails and need help to get it working.

Plugin installed: sensu-plugins-aws

Config file (mailer.json):

{

“mailer”: {

“type”: “pipe”,

“mail_from”: "xxx@yyy.com",

“mail_to”: "abc@xyz.com",

“smtp_address”: “email-smtp.us-east-1.amazonaws.com”,

“smtp_port”: “587”,

“smtp_username”: “XXXXXXXXXXX”,

“smtp_password”: “YYYYYYYYYYYYYYYYYYYYY” ,

“smtp_domain”: “yyy.com

}

}

I dont see any errors in the logs after I restarted the sensu server.

(This file works when I use the default SMTP config)

Please let me know about any ideas which would help me debug this issue and fix it.

Cheers!

KL

I am really surprised that no one responded to your question.

···

On Tuesday, September 27, 2016 at 7:21:56 PM UTC+5:30, Keep Learning wrote:

Hi There,

I am trying to use the AWS SES plugin for sending out emails and need help to get it working.

Plugin installed: sensu-plugins-aws

Config file (mailer.json):

{

“mailer”: {

“type”: “pipe”,

“mail_from”: “x...@yyy.com”,

“mail_to”: “a...@xyz.com”,

“smtp_address”: “email-smtp.us-east-1.amazonaws.com”,

“smtp_port”: “587”,

“smtp_username”: “XXXXXXXXXXX”,

“smtp_password”: “YYYYYYYYYYYYYYYYYYYYY” ,

“smtp_domain”: “yyy.com

}

}

I dont see any errors in the logs after I restarted the sensu server.

(This file works when I use the default SMTP config)

Please let me know about any ideas which would help me debug this issue and fix it.

Cheers!

KL

These SES hanlder requires that the configuration for it be in an “ses” dictionary. You can put the configuration in the mailer.json file if you want, but it must be under ‘ses’ not 'mailer.
https://github.com/sensu-plugins/sensu-plugins-aws/blob/ed4ea0586c9053a387411c416b292813a2c31e97/bin/handler-ses.rb#L43-L44

···

On Tue, Sep 27, 2016 at 6:51 AM, Keep Learning 1quickquery@gmail.com wrote:

Hi There,

I am trying to use the AWS SES plugin for sending out emails and need help to get it working.

Plugin installed: sensu-plugins-aws

Config file (mailer.json):

{

“mailer”: {

“type”: “pipe”,

“mail_from”: “xxx@yyy.com”,

“mail_to”: “abc@xyz.com”,

“smtp_address”: “email-smtp.us-east-1.amazonaws.com”,

“smtp_port”: “587”,

“smtp_username”: “XXXXXXXXXXX”,

“smtp_password”: “YYYYYYYYYYYYYYYYYYYYY” ,

“smtp_domain”: “yyy.com

}

}

I dont see any errors in the logs after I restarted the sensu server.

(This file works when I use the default SMTP config)

Please let me know about any ideas which would help me debug this issue and fix it.

Cheers!

KL