Unable to log in OMP

Hi!

I am unable to log in to my OMP 3.5 and also unable to get mail with password reset. I have tried to create new password in DB using:
UPDATE users SET password=SHA1(CONCAT(‘admin’, ‘password’)) WHERE user_id = 1
but still I cannot login using new password.
How can I debug this?
The only only message in the error log is:
Got error ‘PHP message: Missing locale key “validation.attributes” for the locale “en”; PHP message: Missing locale key “validation.values.email.admin” for the locale “en”’, referer: https://xxx.xxx.xx/xxx/login

Might be unrelated but trying to reset password using password reset link results in:

ot error ‘PHP message: Expected response code “250” but got code “550”, with message “550 5.7.62 SMTP; Client does not have permissions to send on behalf of the from address”.’, referer: https://xxx.xx.xx/xxx/login/lostPassword

I have successfully sent an email from python on the same server using the email/smtp settings from the config. I also have OJS on the same server using the same settings with no problems sending email.

To be able to change/reset the admin password I changed the email setting from smtp to log. I then issued clicked the reset password link and got the reset password link from the error log. This worked well so now I can log in again. smtp is still not working though. Emails are successfully sent from OJS on the same server/same ip with the same credentials. I have also sent mail from this server successfully from python. Not sure where to start digging now.

Hi @bjarman, it sounds like this is an SMTP issue, possibly a mismatch between your sending address in OJS and what the SMTP server is expecting. Did you set the default_envelope_sender in your config.inc.php file as well?

Hi @kaitlin

Here are the relevant settings from my config.inc.php (identical to our OJS-settings on the same server where email using smtp works fine)

smtp = On
smtp_server = xxx.xxx.xx
smtp_port = 587
smtp_auth = tls
smtp_username = xxx
smtp_password = xxx
default_envelope_sender = x@xxx.xx
force_default_envelope_sender = On
force_dmarc_compliant_from = On
dmarc_compliant_from_displayname = '%n via %s'
time_between_emails = 3600
max_recipients = 10
require_validation = On
validation_timeout = 14

Hi @bjarman, do both installations have the same site-level contact email address set, under Administration > Site Settings > Information?

The “Missing locale key validation.…” messages are harmless and aren’t related to the login failure.*

Both sites has the same “Principal contact” email, yes.

@bjarman Can you share the specific versions of OMP and OJS that are on the server, e.g. 3.5.0-5?

Versions that I use:
OJS 3.3.0.14
OMP 3.5.0.1

Hi @bjarman,

Thanks, that helps narrow down the issue.

You may be running into this bug in OMP 3.5.0-1 where force_dmarc_compliant_from isn’t working correctly, and this was resolved in 3.5.0-2. I would strongly recommend updating to the latest version of 3.5.0, as it has a number of other important fixes as well. Let us know if that resolves the issue for you.

Also double-check that your OMP config.inc.php has default = smtp under [email], as you did not list that above in your config settings. This setting was not in 3.3, so if you’re using a 3.3 config file that wasn’t updated then you may be missing some settings.

The OMP config I use indeed have the setting default = smtp.
I will look into the force_dmarc_compliant_from-bug. Hopefully it is the culprit!