Emails not being sent to users

I am unable to send automated emails, notifying them of activities of their journals. The website doesn’t give me any errors, however I get no error that the email has not been sent. I have checked the database, email_log table, failed_jobs table, and jobs table, and email_log appears to have all the emails so it looks like it is sending the email but the recipient never gets the email notification

I recently had this error in my inbox:

But I reset the listing on cloudmark CSI and I got the notification that it was successful. I can send emails from the webserver, and one of the plugins I have for payment work and send confirmation emails.
here is my config.inc.php:
;;;;;;;;;;;;;;;;;;

; Email Settings ;

;;;;;;;;;;;;;;;;;;

[email]

default = smtp

; Use SMTP for sending mail instead of mail()

smtp = On

; SMTP server settings

smtp_server = mail.test.org

smtp_port = 587

; Enable SMTP authentication

; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)

smtp_auth = tls

smtp_username = email@test.org

smtp_password = password

; Encryption (587 = TLS, 465 = SSL)

smtp_secure = tls

; Optional: enable debugging (helpful for testing)

smtp_debug = on

; Enable suppressing SSL/TLS peer verification by SMTP transports

; Note: this is not recommended for security reasons

; smtp_suppress_cert_check = On

; Allow envelope sender to be specified

; (may not be possible with some server configurations)

allow_envelope_sender = on

; Default envelope sender to use if none is specified elsewhere

default_envelope_sender = mail@test.org

; Force the default envelope sender (if present)

; This is useful if setting up a site-wide no-reply address

; The reply-to field will be set with the reply-to or from address.

force_default_envelope_sender = On

; Force a DMARC compliant from header (RFC5322.From)

; If any of your users have email addresses in domains not under your control

; you may need to set this to be compliant with DMARC policies published by

; those 3rd party domains.

; Setting this will move the users address into the reply-to field and the

; from field wil be rewritten with the default_envelope_sender.

; To use this you must set force_default_enveloper_sender = On and

; default_envelope_sender must be set to a valid address in a domain you own.

force_dmarc_compliant_from = On

; The display name to use with a DMARC compliant from header

; By default the DMARC compliant from will have an empty name but this can

; be changed by adding a text here.

; You can use ‘%n’ to insert the users name from the original from header

; and ‘%s’ to insert the localized sitename.

; dmarc_compliant_from_displayname = ‘%n via %s’

; If enabled, email addresses must be validated before login is possible.

require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted

validation_timeout = 14
I am using OJS 3.4.0.7

any help?

Hi@Allan_Sharad,your email config is fine,**for the email sending function of the ojs, it will work as long as the information is filled in correctly, and the program itself has no issues. please check the settings of your email sending server.

I was hoping to be able to debug the issue, using this: smtp_debug = on
but I don’t know where the debug info is sent

Hi,

The smtp error message indicates that your smtp (sending) server has been listed among spam servers, you need to search for it, and try to remove from them.

Regards,

I removed it, and got a reply that it was removed. I can now send emails from the webmail itself, but not from the OJS platform
These are my settings for the emails:

Hi @Allan_Sharad

It’s good to hear that your server’s ip has been removed from spam list. Now, assuming your smtp server is postfix, I may suggest you to try;

smtp_auth = ssl
smtp_port = 465
; smtp_secure = tls (OJS config doesn’t have such a line, I don’t know if it is necessary)
smtp_suppress_cert_check = On

dmarc_compliant_from_displayname = ‘%n via %s'

Although my server settings recommended to use port 587 and not to use ssl, I can send emails only using above configuration.

I hope you can easily solve the email problem. After that, you can test the spam score using this address: https://www.mail-tester.com

I usually make a test user with the email address I get from that site, then send an email to that user via OJS, and see spf, dkim, dmarc scores.

Regards,