<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Incoming mail from Office 365 rejected after DNS change – 554 5.7.1 SM]]></title>
		<link>https://forum.iredmail.org/topic21038-incoming-mail-from-office-365-rejected-after-dns-change-554-571-sm.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21038.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Incoming mail from Office 365 rejected after DNS change – 554 5.7.1 SM.]]></description>
		<lastBuildDate>Sat, 06 Dec 2025 15:47:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Incoming mail from Office 365 rejected after DNS change – 554 5.7.1 SM]]></title>
			<link>https://forum.iredmail.org/post91513.html#p91513</link>
			<description><![CDATA[<div class="quotebox"><cite>vignesh.thangaraj wrote:</cite><blockquote><p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.6.3 (OpenLDAP edition)<br />- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer<br />- Linux/BSD distribution name and version: RHEL 8.7<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No</p><p>==== ISSUE DESCRIPTION ====</p><p>After changing the DNS configuration on my iRedMail server from public DNS to internal company DNS (using nmcli), incoming emails from Office 365 users started failing.</p><p>Office 365 returns this NDR:</p><br /><p>554 5.7.1 Recipient address rejected: SMTP AUTH is required for users under this sender domain</p><p>This issue appeared only after the DNS change.</p><p>==== WHAT I OBSERVE ====</p><p>- All iRedMail services (Postfix, Dovecot, Amavis, LDAP, etc.) are running normally.<br />- Incoming mail from external senders is now rejected with the above error.<br />- It appears Postfix is treating external senders as “unauthenticated” because DNS lookups may be failing.</p><p>==== SUSPECTED ROOT CAUSE ====</p><p>The internal DNS server may not be resolving external domains (MX/SPF/A records) correctly.&nbsp; <br />Due to failed DNS lookups, Postfix/iRedAPD policies might incorrectly require SMTP AUTH for external senders.</p><p>==== QUESTIONS ====</p><p>1. Which Postfix/iRedAPD restriction triggers:<br />&nbsp; &nbsp;`SMTP AUTH is required for users under this sender domain`<br />&nbsp; &nbsp;when DNS lookups fail?</p><p>2. Is it required that the iRedMail server must resolve public DNS (SPF/MX/A) for external sender domains?</p><p>3. Should internal DNS servers be configured with external DNS forwarders for proper mail flow?</p><p>4. What is the recommended DNS setup for iRedMail on RHEL?</p><p>Thanks in advance.</p></blockquote></div><p>Need more information, &quot;Public DNS to internal company DNS&quot; I take it you are using your own Authoritative Name Servers ? what DNS Package have you moved too? Are you using DNS Manager on Windows Server or BIND9 ? </p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (jackb)]]></author>
			<pubDate>Sat, 06 Dec 2025 15:47:54 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91513.html#p91513</guid>
		</item>
		<item>
			<title><![CDATA[Re: Incoming mail from Office 365 rejected after DNS change – 554 5.7.1 SM]]></title>
			<link>https://forum.iredmail.org/post91472.html#p91472</link>
			<description><![CDATA[<p>Please turn on debug mode in iRedAPD to figure out why it considers such emails are sent from domains hosted locally.<br />FYI <a href="https://docs.iredmail.org/debug.iredapd.html">https://docs.iredmail.org/debug.iredapd.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 26 Nov 2025 08:21:35 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91472.html#p91472</guid>
		</item>
		<item>
			<title><![CDATA[Incoming mail from Office 365 rejected after DNS change – 554 5.7.1 SM]]></title>
			<link>https://forum.iredmail.org/post91470.html#p91470</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.6.3 (OpenLDAP edition)<br />- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer<br />- Linux/BSD distribution name and version: RHEL 8.7<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No</p><p>==== ISSUE DESCRIPTION ====</p><p>After changing the DNS configuration on my iRedMail server from public DNS to internal company DNS (using nmcli), incoming emails from Office 365 users started failing.</p><p>Office 365 returns this NDR:</p><br /><p>554 5.7.1 Recipient address rejected: SMTP AUTH is required for users under this sender domain</p><p>This issue appeared only after the DNS change.</p><p>==== WHAT I OBSERVE ====</p><p>- All iRedMail services (Postfix, Dovecot, Amavis, LDAP, etc.) are running normally.<br />- Incoming mail from external senders is now rejected with the above error.<br />- It appears Postfix is treating external senders as “unauthenticated” because DNS lookups may be failing.</p><p>==== SUSPECTED ROOT CAUSE ====</p><p>The internal DNS server may not be resolving external domains (MX/SPF/A records) correctly.&nbsp; <br />Due to failed DNS lookups, Postfix/iRedAPD policies might incorrectly require SMTP AUTH for external senders.</p><p>==== QUESTIONS ====</p><p>1. Which Postfix/iRedAPD restriction triggers:<br />&nbsp; &nbsp;`SMTP AUTH is required for users under this sender domain`<br />&nbsp; &nbsp;when DNS lookups fail?</p><p>2. Is it required that the iRedMail server must resolve public DNS (SPF/MX/A) for external sender domains?</p><p>3. Should internal DNS servers be configured with external DNS forwarders for proper mail flow?</p><p>4. What is the recommended DNS setup for iRedMail on RHEL?</p><p>Thanks in advance.</p>]]></description>
			<author><![CDATA[null@example.com (vignesh.thangaraj)]]></author>
			<pubDate>Wed, 26 Nov 2025 06:48:22 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91470.html#p91470</guid>
		</item>
	</channel>
</rss>
