LoginSignup
1
1

More than 3 years have passed since last update.

突然「Failed to authenticate on SMTP server with username」と出力されメールが送信できなくなった

Last updated at Posted at 2019-07-03

経緯

ユーザー登録時にメールを送信するが、以下のエラーが出力され500エラーとなっていた。
エラーログやDBのユーザーテーブルを確認すると、ちょうど7/1を境にエラーになっているようだ。

エラー文をググると、.envファイルの見直しやGmailの2段階認証の設定解除したら直るといった内容しか出てこず、
envファイルは何度も見直したし、何ならファイルの変更やメール周りのコードの修正もしていない。
Gmailでもないので2段階認証もない。

エラー文

Failed to authenticate on SMTP server with username "no-reply@example.com" using 2 possible authenticators.
Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6".

原因

パスワードを変更したら直った。
原因がわからないのは気持ち悪いので、管理会社に問い合わせてみる。。


(追記)
大量にメールを送信していたため、制限をかけられていた模様

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1