[OJS-3.5.0] how to force default email address for all emails sent by the system?

Describe the issue or problem
Since switching to OJS-3.5.0.1, all emails sent from a specific OJS user (as opposed to those being sent by OJS system tasks) are being flagged as spam, since they don’t pass the DMARC test. Yet, I noticed how messages sent from the “general” email address (“outstanding editorial tasks”, “editorial activity”) are delivered fine.

I’ve followed all recommended settings from https://docs.pkp.sfu.ca/admin-guide/en/deploy-email#dmarc, and configured my email as follows:

allow_envelope_sender = On
default_envelope_sender = <email>
force_default_envelope_sender = On
force_dmarc_compliant_from = On

I’ve tried many combinations of these settings, but don’t see much (any?) difference in how they affect the email headers. Actually, I’m suspecting that `force_default_envelope_sender` or `force_dmarc_compliant_from` don’t have any effect at all in OJS-3.5.0. With identical settings in OJS-3.4.0, the headers did look different:

  • OJS-3.4.0:
    • from: <OJS user name> via <default_envelope_sender>
    • reply-to: <OJS user email>
  • OJS-3.5.0:
    • from: <OJS user email>
    • no reply-to header

Yet, since “system-generated” emails from the default email addres (which is in the domain of our journal) are being delivered without problems, I would for now like to force all emails to be sent from that address. Is this possible at all?

What application are you using?
OJS 3.5.0-1

Ah, found further pointers that confirm my suspicion about force_dmarc_compliant_from and force_default_envelope_sender not working properly (see “Email Sending” section):

Given the email-centered workflow of OJS, I’m confident that the issues at:

…will be resolved soon.

Yet, since these issues have been open for quite a while, is there any known temporary workaround?

Kind regards,

Ron

Hi @rvdb,

This fix was merged into the stable-3_5_0 branch to resolve it for the forthcoming 3.5.0-2 release. You can apply that in the lib/pkp subdirectory to fix a 3.5.0-1 installation.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher ,

Thanks for following up. I have copied the fixed Mailer.php file into my OJS-3.5.0.1 installation, and can confirm this resolves the issue.

Best,

Ron

1 Like

This topic was automatically closed after 11 days. New replies are no longer allowed.