1

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.

2

Re: Again: SMTP AUTH is required for users under this sender domain

Hi Craig,

Try to upgrade iRedAPD to the latest version 2.4 and try again. if it doesn't work, let me know and i will try to fix it.

3

Re: Again: SMTP AUTH is required for users under this sender domain

I came back to update this issue, and ended up updating a few others too. smile

I seem to have solved this issue (which only affected me, hence the lack of making it more of a priority) by blanketing "mynetworks" (in /etc/postfix/main.cf) and "MYNETWORKS" (in /opt/iredapd/settings.py) with the IPv4 and IPv6 addresses of all of my servers that generate email (mostly from root). So it seems to work as designed. I think I was whitelisting an IPv4 address and not noticing that sometimes emails are delivered via IPv6.

Thanks.


Craig