Topic: Sending a message on behalf of a different domain
Hello.
I have a domain - mydomain.com. I need to send a message on behalf of another domain - other.net. The DNS of the other.net domain is configured with an SPF record pointing to mydomain.com.
v=spf1 include:other.net include:mydomain.com -all
I use the mutt client to send.
Here are its settings
set ssl_starttls=yes
set ssl_force_tls=yes
set ssl_use_sslv3=yes
set timeout=60
set smtp_authenticators="login"
set smtp_url="smtp://noreplay@mydomain.com@mail.bessey.ru:587"
#set content_type="text/html"
set realname="Noreplay"
set from="noreplay@other.net"
set smtp_pass="P@$$W0rd"
set copy=no
when sending a message I get this error
554 5.7.1 <username@gmail.com>: Recipient address rejected: Sender is not same as SMTP authenticate username
in the forum thread -- https://forum.iredmail.org/topic11192-smtp-error.html
I found information that I need to edit the parameter in the file -- /opt/iredapd/settings.py, add the required address to parameter ALLOWED_LOGIN_MISMATCH_SENDERS = ['your_sasl_auth_username'] and restart the service
Unfortunately it didn't help. Tell me how to send a message on behalf of another domain.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.