Email problem after upgrade

AI-generated summary

After upgrading Discourse, a user reported email job failures with a Net::SMTPAuthenticationError from Mailgun, indicating authentication issues. The app.yml file had correct credentials, and Mailgun confirmed successful authentication via telnet. The issue was resolved by updating the app.yml with new credentials. During troubleshooting, another user suggested checking for special characters or quotes in the password, which the user confirmed were present but properly enclosed in double quotes. rayk resolved the problem by updating the credentials, and thanked zogstrip for the assistance.

We’ve encountered a problem after running the latest discourse upgrade. We’re getting the following notice on our admin panel:

Some problems have been found with your installation of Discourse:

*** There are 71 email jobs that failed. Check your app.yml and ensure that the mail server settings are correct. [See the failed jobs in Sidekiq].**

There have been no recent changes to the app.yml file. We rebooted the server that our discourse resides and issued the command ./launcher rebuild app. This did not resolve the problem.

This is the error we’re seeing in Sidekiq:

Jobs::HandledExceptionWrapper: Wrapped Net::SMTPAuthenticationError: 535 5.7.0 Mailgun is not loving your login or password

We’ve contacted mailgun with the credentials we have set in our app.yml file. With the credentials provided, they were able to test authentication via telnet with success. They also stated the following:

Can’t say for certain but my theory would be the app.yml file might have some type restriction or permissions required to access. Failure to access the file could possibly lead to authentication not being passed to the SMTP client so when tries the SMTP Mailgun, no SMTP credentials are presented then you received 535 5.7.0 Mailgun is not loving your login or password.

The permissions on the app.yml file are set to -rw-r–r–

Please let me know if there are any steps we should try. Any help in this matter will be greatly appreciated.

Are there any “#” character in the password?

There are no “#” characters in the password.

Any other weird characters (like ’ or ") that might cut the password?

Is the password “bare” or inside double quotes ?

There are a few special characters but the password is enclosed in " "

Updated my app.yml file with new credentials. That seems to have done the trick.

Thanks for your help Régis!