Issue with AWS SES email communication

Hi!

Recently I've faced, that my configuration stopped to work:
email{
to => "my@email.com"
from => "varyfied_email@example.com"
subject => "Some subject"
body => "%{message}"
via => "smtp"
address => "email-smtp.eu-west-1.amazonaws.com"
username => "username"
password => "somepass"
authentication => plain
}
Log output:
:timestamp=>"2016-09-12T22:19:26.787000+0200", :message=>"Something happen while delivering an email", :exception=>#<Net::SMTPAuthenticationError: 530 Must issue a STARTTLS command first

I've add use_tls => "true" section, but it didn't help.
New configuration:
email{
use_tls => "true"
to => "my@email.com"
from => "varyfied_email@example.com"
subject => "Some subject"
body => "%{message}"
via => "smtp"
address => "email-smtp.eu-west-1.amazonaws.com"
username => "username"
password => "somepass"
authentication => plain
}

I'm use logstash 2.1, and I'm able to send message via
openssl s_client -crlf -quiet -starttls smtp -connect email-smtp.eu-west-1.amazonaws.com:25

Does anyone have the same issue?

I've add use_tls => "true" section, but it didn't help.

Are you getting the exact same error message? If yes, can you verify whether Logstash is actually sending a STARTTLS command in the SMTP conversation? Use Wireshark or similar.

1 Like