Content
Net::SMTPAuthenticationError (503 5.5.1 Error: authentication not enabled
Added by geoff rowland over 6 years ago
Hello,
When users try to use the ‘forgot password’ link, there is an “Internal error” displayed. In the logs, I see the error Net::SMTPAuthenticationError (503 5.5.1 Error: authentication not enabled.
The stmp server I use does not use authentication (limited by IP address) - if I manually telnet from the openproject server to the SMTP server, I’m able to successfully send email manually, so I know that is working.
in conf.d/smtp I have
export SMTP_AUTHENTICATION=“none”
as far as I know this had been working fine, then stopped working after possibly an update through apt-get
How do I troubleshoot what is going on since I am able to send email through telnet without issue?
if I run openproject run console, then type ActionMailer::Base.smtp_settings
it has the correct server and port however it has some random name and password (username: jeffrey) that I certainly did not set, and is definitely not in /etc/openproject/conf.d/smtp
In fact, I searched the openproject files and can find no trace of username jeffrey or the password that is listed (Peach6). where is this coming from?
Replies (1)
It is because Google blocks gmail smtp sign-in attempts from apps which do not use modern security standards (mentioned on their support page). You can however, turn on/off this safety feature by going to the link below:
Go to this link and select Turn On
https://www.google.com/settings/security/lesssecureapps
Moreover google block an ip when you try to send a email since a unusual location, so, you can unblock in the next link
https://support.google.com/accounts/answer/6009563
and clicked in
accounts.google.com/DisplayUnlockCaptcha .