maxisam / mgob

MongoDB dockerized backup agent. Runs schedule backups with retention, S3 & SFTP upload, notifications, instrumentation with Prometheus and more.
https://maxisam.github.io/mgob/
MIT License
146 stars 21 forks source link

Office365 mail auth error #52

Open blueiceprj opened 1 year ago

blueiceprj commented 1 year ago

Office365 login error. With this configuration I send email on spring boot application.

time="2023-03-23T18:00:44Z" level=error msg="Notifier failed sending email notification failed: 504 5.7.4 Unrecognized authentication type [FR2P281CA0035.DEUP281.PROD.OUTLOOK.COM 2023-03-23T18:00:39.250Z 08DB2B43918359DA]" plan=xxxxxxxxxxxxx

smtp:
  server: smtp.office365.com
  port: 587
  username: no-reply@xxxxxx
  password: yyyyyyyyyy
  from: no-reply@xxxxxx
  to:
    - xxxxx@gmail.com
    - xxxxxxxxx@gmail.com
maxisam commented 1 year ago

It seems like smtp.office365.com uses a different encryption called STARTTLS

https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353

Not sure when I will have time to add this feature, welcome to make a PR