Topic: Again: SMTP AUTH is required for users under this sender domain
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB
- Deployed with iRedMail Easy or the downloadable installer?: Installer
- Linux/BSD distribution name and version: CentOS 7.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?: No.
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi Zhang,
I'm getting this error on emails sent from cron on my workstation via a relay server under my control:
554 5.7.1 <root@mydomain.com>: Recipient address rejected: SMTP AUTH is required for users under this sender domain
The mail is accepted from my workstation by the relay server, but my iRedMail server bounces it with the above error.
On my iRedMail server I have these two settings in /opt/iredapd/settings.py:
MYNETWORKS = ['12.34.56.78']
CHECK_SPF_IF_LOGIN_MISMATCH = True
The relay server's IP address (12.34.56.78) is also in the SPF record for mydomain.com:
[00:32:48 root@server ~]# dig +short txt mydomain.com
"v=spf1 a mx a:server020.mydomain.com a:relay.mydomain.com a:server031.mydomain.com a:server033.mydomain.com a:server035.mydomain.com a:server036.mydomain.com a:server037.mydomain.com a:server038.mydomain.com include:registrarmail.net ip4:109.234.108.151 ip4:109.234.108.152 ip4:24.86.23" "9.82 ~all"
[00:32:56 root@server ~]#
The relay server is relay.mydomain.com in the above output.
It seems that I have done everything correctly to allow this email through, yet my server still bounces it. Can you advise what is going wrong here?
Thanks.
Craig
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.