// <ahref="./index.html">Document Index</a></div><h1id="errors-you-may-see-while-maintaining-iredmail-server">Errors you may see while maintaining iRedMail server</h1>
<li><ahref="#recipient-address-rejected-smtp-auth-is-required-for-users-under-this-sender-domain">Recipient address rejected: SMTP AUTH is required for users under this sender domain</a></li>
<li><ahref="#recipient-address-rejected-sender-is-not-same-as-smtp-authenticate-username">Recipient address rejected: Sender is not same as SMTP authenticate username</a><ul>
<li><ahref="#helo-command-rejected-access-denied-your-email-was-rejected-because-the-sending-mail-server-does-not-identify-itself-correctly-local">Helo command rejected: ACCESS DENIED. Your email was rejected because the sending mail server does not identify itself correctly (.local)</a></li>
<li><ahref="#warning-do-not-list-domain-mydomaincom-in-both-mydestination-and-virtual_mailbox_domains">warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains</a></li>
<h3id="recipient-address-rejected-smtp-auth-is-required-for-users-under-this-sender-domain">Recipient address rejected: SMTP AUTH is required for users under this sender domain</h3>
<blockquote>
<p>Old error message was: <code>SMTP AUTH is required, or it is a spam with forged sender domain</code></p>
</blockquote>
<p>Sender domain is hosted locally on your iRedMail server, but sender doesn't
perform SMTP AUTH to send email.</p>
<ul>
<li>
<p>If this is not sent by a server or device under your control, most likely this
email is spam with forged sender address.</p>
</li>
<li>
<p>If this is sent by a server or device under your control and you want to
allow it, please add the IP address of this server/device in 2 config files
(NOTE: parameter names are case SeNsItIvE):</p>
<ul>
<li>
<p><code>/opt/iredapd/settnigs.py</code>, parameter <code>MYNETWORKS =</code> (doesn't exist by
<h3id="recipient-address-rejected-sender-is-not-same-as-smtp-authenticate-username">Recipient address rejected: Sender is not same as SMTP authenticate username</h3>
<h3id="helo-command-rejected-access-denied-your-email-was-rejected-because-the-sending-mail-server-does-not-identify-itself-correctly-local">Helo command rejected: ACCESS DENIED. Your email was rejected because the sending mail server does not identify itself correctly (.local)</h3>
<p>It means sender mail server uses a FQDN hostname which ends with <code>.local</code> as
HELO identity. <code>.local</code> is not a valid top level domain name, and all mail
servers should use a valid domain name which is resolvable from DNS query.</p>
<p>Two solutions:</p>
<ol>
<li>Temporarily remove this HELO check rule on YOUR server, in file
<code>/etc/postfix/helo_access.pcre</code> (Linux/OpenBSD) or
<code>/usr/local/etc/postfix/helo_access.pcre</code> (FreeBSD), then reload Postfix
service.</li>
<li>Ask sender server system administrator to correct their HELO identity, they
will experience same issue while sending email to others.</li>
<h3id="warning-do-not-list-domain-mydomaincom-in-both-mydestination-and-virtual_mailbox_domains">warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains</h3>
<p>Sample log in Postfix log file:</p>
<blockquote>
<p>Feb 20 03:31:54 mail postfix/trivial-rewrite[2216]: warning: do not list
domain mydomain.com in BOTH mydestination and virtual_mailbox_domains</p>
</blockquote>
<p>This error message means mail domain name <code>mydomain.com</code> is:</p>
<ul>
<li>listed in Postfix parameter <code>mydestination</code>. Most probably, this domain name
is value of Postfix parameter <code>myhostname</code>, and <code>myhostname</code> is value of
<code>mydestination</code>.</li>
<li>a virtual mail domain name. Most probably, you added this domain with
iRedAdmin.</li>
</ul>
<p>To solve this, please either use a different <code>myhostname</code> or don't use this
domain name as mail domain (remove it with iRedAdmin). To use a different value
for Postfix parameter <code>myhostname</code>, you must also change server hostname.</p>
<pstyle="text-align: center; color: grey;">All documents are available in <ahref="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket repository</a>, and published under <ahref="http://creativecommons.org/licenses/by-nd/3.0/us/"target="_blank">Creative Commons</a> license. You can <ahref="https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <ahref="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>