Sending emails from OJS 3.3 LTS

Describe the issue or problem

I can’t send emails after updating to the last version. This the relevant part in config.inc.php

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
; smtp_server = mail.example.com
; smtp_port = 25
smtp_server = box.pacha.dev
smtp_port = 465

; Enable SMTP authentication
; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)
; smtp_auth = ssl
; smtp_username = username
; smtp_password = password
;
; Supported smtp_authtype: RAM-MD5, LOGIN, PLAIN, XOAUTH2 (see PHPMailer AuthType)
; (Leave blank to try them in that order)
; smtp_authtype =
smtp_auth = ssl
smtp_username = "contacto@lenguasradicales.cl"
smtp_password = "REDACTED"

This is what I see in the logs

SMTP Error: The following recipients failed: some@usr.com: <myemail@site.com>: Sender address rejected: not owned by user contacto@lenguasradicales.cl\r\n, referer: https://ojs.lenguasradicales.cl/index.php/lr/management/settings/access

The same settings work with Thunderbird. box.pacha.dev is the mail server, it’s a limited resources journal, and I’m using my own server for email.

Do I need to install additional software such as apt install php-smtp? I already installed sudo apt install libphp-phpmailer

Steps I took leading up to the issue

Update to 3.3 from 3.2, restore articles, images, etc, then edit config.inc.php, try different settings and reboot each time to see if the email works again.

What application are you using?
OJS 3.3.0-11

Hi @pachadotdev,

As a first step, you may wish to try some of the advice on troubleshooting email here: https://docs.pkp.sfu.ca/admin-guide/en/email#troubleshooting-email-problems

If the problem still persists, let us know.

-Roger
PKP team

Hi @pachadotdev

That’s an error on the SMTP configuration side, it’s not about OJS. You should take a look on how to solve SMTP error 553 5.7.1 on your environment.

Did you update from 3.2 to 3.3 using the same server or is it a new environment?

Thanks! new server, I rsync’ed the published articles and transferred a SQL dump to be sure
The curious thing is that on OJS, if I create a user with email same as the email in SMTP, I can send emails from OJS. If I switch the email for the OJS account, then it doesn’t work. The email server remains intact.