1

Topic: Email rejected as the sending server appears to be on a dynamic IP

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
#cat /etc/iredmail-release
1.0 MARIADB edition.
# Get professional support from iRedMail Team: http://www.iredmail.org/support.html
#
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: CentOS7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): N.A.
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
Error Message: 
Helo command rejected: ACCESS DENIED. Your email was rejected because the sending mail server appears to be on a dynamic IP address that should not be doing direct mail delivery
====

I read the thread - https://forum.iredmail.org/topic8108-ir … ected.html
However, there is no solution on this issue.
May I know is there any other method to resolve this issue?
Thanks.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Email rejected as the sending server appears to be on a dynamic IP

Not as long as you don't provide any further logs or information.
What is the IP and reverse DNS of your mail host?

3

Re: Email rejected as the sending server appears to be on a dynamic IP

Hi Cthulhu

Sender is from qq.com.
A sample of the log is shown below.

For this type of smtp email address where the IP address is keep changing, may I know how do we workaround on this issue?
Thanks.

Sep 30 15:49:29 mail postfix/smtpd[105942]: NOQUEUE: reject: RCPT from unknown[183.2.187.104]: 554 5.7.1 <out183-2-187-104.mail.qq.com>: Helo command rejected: ACCESS DENIED. Your email was rejected because the sending mail server appears to be on a dynamic IP address that should not be doing direct mail delivery (183-2-187-104); from=<weixinpay@tencent.com> to=<abc@example.com> proto=ESMTP helo=<out183-2-187-104.mail.qq.com>

Sep 30 15:51:32 mail postfix/smtpd[106978]: NOQUEUE: reject: RCPT from unknown[183.2.187.104]: 554 5.7.1 <out183-2-187-104.mail.qq.com>: Helo command rejected: ACCESS DENIED. Your email was rejected because the sending mail server appears to be on a dynamic IP address that should not be doing direct mail delivery (183-2-187-104); from=<weixinpay@tencent.com> to=<xyz@example.com> proto=ESMTP helo=<out183-2-187-104.mail.qq.com>

Thanks.

4

Re: Email rejected as the sending server appears to be on a dynamic IP

/^out(\d{1,3}-\d{1,3}-\d{1,3}-\d{1,3}).mail.qq.com/ DUNNO

this should be the correct regex for your case then

5

Re: Email rejected as the sending server appears to be on a dynamic IP

Hi Cthulhu

Thanks for the advise.
I'm tried with the string before but still receiving the same error.
May I know if there is any other workaround solution?
Thanks.

6

Re: Email rejected as the sending server appears to be on a dynamic IP

This is the string that I wrote:


diff helo_access.pcre helo_access.pcre_b4_20210930
107d106
< /^out(\d{1,3}-\d{1,3}-\d{1,3}-\d{1,3}).mail.qq.com$/ DUNNO