I recently upgraded to OJS 220.127.116.11. However, after the upgrade the emails that I send from the journal, both of PHP mail() and SMTP, are not delivering to recipients.
The error log complains about smtp auth:
------- /var/log/exim_mainlog-20181118.gz:2018-11-17 08:05:56 1gNufz-0007Hq-V8 <= [firstname.lastname@example.org](mailto:email@example.com) U=ejersorg P=local S=1937 [firstname.lastname@example.org](mailto:email@example.com) T="[EJERS] From Site" for [firstname.lastname@example.org](email@example.com) /var/log/exim_mainlog-20181118.gz:2018-11-17 08:05:56 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1gNufz-0007Hq-V8 /var/log/exim_mainlog-20181118.gz:2018-11-17 08:05:58 1gNufz-0007Hq-V8 unable to open private key file for reading: /var/cpanel/domain_keys/private/hotmail.com /var/log/exim_mainlog-20181118.gz:2018-11-17 08:05:58 1gNufz-0007Hq-V8 ** [firstname.lastname@example.org](email@example.com) R=send_via_mailchannels T=mailchannels_smtp H=smtp.mailchannels.net [18.104.22.168] X=TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256 CV=yes: SMTP error from remote mail server after end of data: 550 5.7.1 [BFD] Sender prohibited by SPF /var/log/exim_mainlog-20181118.gz:2018-11-17 08:05:58 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1gNufz-0007Hq-V8 /var/log/exim_mainlog-20181118.gz:2018-11-17 08:05:58 1gNug2-0007LW-OV <= <> R=1gNufz-0007Hq-V8 U=mailnull P=local S=3405 T="Mail delivery failed: returning message to sender" for [firstname.lastname@example.org](email@example.com) /var/log/exim_mainlog-20181118.gz:2018-11-17 08:05:58 1gNufz-0007Hq-V8 Completed ---------
while my configuration seems correct.
;;;;;;;;;;;;;;;;;; ; Email Settings ; ;;;;;;;;;;;;;;;;;; [email] ; Use SMTP for sending mail instead of mail() smtp = On ; SMTP server settings smtp_server = "mail.ejers.org" smtp_port = 465 ; Enable SMTP authentication ; Supported mechanisms: ssl, tls smtp_auth = ssl smtp_username = firstname.lastname@example.org smtp_password = "(removed)"
In addition, I contacted my hosting company about the SPF issue. They told me that they tested to send emails with their own PHP script and, apparently they are able to do it.
I found also a thread similar to the problem I am currently having. The problem was solved by changing the PHP mailer library.
Could you please help me to solve this problem.