adamcooke / staytus

💡 An open source solution for publishing the status of your services
http://staytus.co
MIT License
2.17k stars 284 forks source link

SMTP Office 365: 504 5.7.4 unrecognised authentication type #269

Closed Philip-UKWSL closed 5 years ago

Philip-UKWSL commented 5 years ago

Hello All,

After moving to Office 365 Staytus is unable to send notification emails when events are posted. We looked through the existing posts 250, 137, 262 etc. without finding an answer, I am a new to linux/ruby and perhaps have missed something? Rails console s.send_verification_email returns: Net::SMTPAuthenticationError (504 5.7.4 unrecognised authentication type [L02P265CA0078.GBRP265.PROD.OUTLOOK.COM]

--- environment.yml --- STAYTUS_SMTP_HOSTNAME: smtp.office365.com STAYTUS_SMTP_PORT: '587' STAYTUS_SMTP_USERNAME: STAYTUS_SMTP_PASSWORD: ---- end environmental.yml ---

We also tried variations for STAYTUS_SMTP_AUTH_MODE: plain = unknown authentication method as above TLS = wrong authentication type STARTTLS = wrong authentication type

Any thoughts?

Philip-UKWSL commented 5 years ago

Changing the STAYTUS_SMTP_AUTH_MODE value to login resolved the issue, I hope this helps other users.

STAYTUS_SMTP_AUTH_MODE: login