iRedMail设置:防止误判来自Amazon AWS的邮件为非法邮件

有一次注册某个服务时没有收到注册邮件,反复试了几次都没有,也没有进入垃圾邮件,怀疑是iRedMail出了什么问题。于是去服务器上查看log,发现的确有相关的记录:

1
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 ……

看来是该网站的地址(应该是使用的Amazon AWS)被识别成了被封禁的动态IP。Google了一下,找到解决方案为修改 /etc/postfix/helo_access.pcre ,将以下行注释掉:

1
/(\d{1,3}[\.-]\d{1,3}[\.-]\d{1,3}[\.-]\d{1,3})/ REJECT 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 (${1})

原文:

http://www.iredmail.org/forum/topic8108-iredmail-support-mail-rejected.html