Skip to content

STARTTLS error when sending email #446

@MisterGlass

Description

@MisterGlass

I have a new install up on AWS. I have it configured to use SES to send emails, but whenever the server attempts to send an email (such as during signup) it fails.

Logs:

INFO -- : Completed 500 Internal Server Error in 68ms (ActiveRecord: 9.6ms)
FATAL -- : 
FATAL -- :  Net::SMTPAuthenticationError (530 Must issue a STARTTLS command first):
FATAL -- : 
FATAL -- :  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/net/smtp.rb:981:in `check_auth_response'

Config:

SECRET_KEY_BASE=REDACTED
RUBY_VERSION=2.5.3
FRAB_HOST=https://frab.example.org
FRAB_PROTOCOL=https
[email protected]
SMTP_ADDRESS=email-smtp.us-east-1.amazonaws.com
SMTP_PORT=587
SMTP_DOMAIN=frab.example.org
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_NOTLS=false
SMTP_USER_NAME=REDACTED
SMTP_PASSWORD=REDACTED
FRAB_CURRENCY_UNIT="€"
FRAB_CURRENCY_FORMAT="%n%u"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions