Hi everybody,
I configured a new instance of OJS 3.4.0.8 with the mail server running on the same server where the platform is deployed.
E-mails sent from the platform are rejected by the my company’s Exchange server because the From address specified in the e-mail is empty.
This is the error message I’m getting on my sender e-mail client:
Error Details – Error:550-5.7.1 [2a01:111:f403:da14::] Messages missing a valid address in From: 550-5.7.1 header, or having no From: header, are not accepted. For more 550-5.7.1 information, go to 550-5.7.1 Email sender guidelines - Google Workspace Admin Help and review 550 5.7.1 RFC 5322 specifications. d9443c01a7336-219dca2ae0dsi469434195ad.472 - gsmtpRetry count:1Message rejected by:mx.google.com | Error: | 550-5.7.1 [2a01:111:f403:da14::] Messages missing a valid address in From: 550-5.7.1 header, or having no From: header, are not accepted. For more 550-5.7.1 information, go to 550-5.7.1 Email sender guidelines - Google Workspace Admin Help and review 550 5.7.1 RFC 5322 specifications. d9443c01a7336-219dca2ae0dsi469434195ad.472 - gsmtp | Retry count: | 1 | Message rejected by: | mx.google.com Error: | 550-5.7.1 [2a01:111:f403:da14::] Messages missing a valid address in From: 550-5.7.1 header, or having no From: header, are not accepted. For more 550-5.7.1 information, go to 550-5.7.1 Email sender guidelines - Google Workspace Admin Help and review 550 5.7.1 RFC 5322 specifications. d9443c01a7336-219dca2ae0dsi469434195ad.472 - gsmtp Retry count: | 1 Message rejected by: | mx.google.com
My config.inc.php has the following email settings:
;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;
[email]
; Default method to send emails
; Available options: sendmail, smtp, log, phpmailer
default = phpmailer
; Path to the sendmail, -bs argument is for using SMTP protocol
;sendmail_path = “/usr/sbin/sendmail -bs”
; Use SMTP for sending mail instead of mail()
smtp = On
; SMTP server settings
smtp_server = localhost
smtp_port = 25
smtp_from = “pavici@usi.ch”
; Enable SMTP authentication
; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)
smtp_auth = none
smtp_username = ‘’
smtp_password = ‘’
; 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 = “pavici@usi.ch”
; 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 = On
; The number of days a user has to validate their account before their access key expires.
validation_timeout = 7
Thanks for helping!!