Hello there,
I’ve managed to configure Security emails thanks to this documentation: Sending emails - Turn-key research data management repository :
SECURITY_EMAIL_SENDER = "custom@address.com"
SECURITY_EMAIL_SUBJECT_REGISTER = "Welcome!"
MAIL_USE_TLS = True
MAIL_SERVER = "smtp.office365.com"
MAIL_PORT = ...
MAIL_USERNAME = "custom@address.com"
MAIL_PASSWORD = "..."
And now, email confirmation emails are sent with the address that we have configured (custom@address.com), it’s working great.
However, notification emails are sent with this address: info@inveniosoftware.org
as shown in the logs:
Subject: =?utf-8?q?=F0=9F=93=AC_New_invitation_to_join_the_community_=27testnotif=27_?=
=?utf-8?q?as_=27Curator=27?=
From: info@inveniosoftware.org
To: my@email.address
Date: Wed, 19 Mar 2025 10:49:04 +0100
Security emails logs:
Subject: Please confirm your email
From: custom@address.com
To: my@email.address
Date: Wed, 19 Mar 2025 10:48:07 +0100
This causes an error:
smtplib.SMTPDataError: SendAsDenied; custom@address.com not allowed to send as info@inveniosoftware.org; Exception:SendAsDeniedException.MapiExceptionSendAsDenied
Failed to process message due to a permanent exception with message. Cannot submit message
Giving the SendAs
access to my custom@address.com
isn’t possible (as told by my IT team)
I would like notification emails to be sent with custom@address.com
. Is there a NOTIFICATION_EMAIL_SENDER
field in the config? I’ve looked at the documentation but didn’t find anything like this.
Is there a way to change the info@inveniosoftware.org
notification address?
Thanks for your help!