问题原文
原帖链接 · TitanFighter · CC BY-SA 3.0
I installed iRedMail on VPS (Ubuntu). Fail2Ban bans my home IP address.
In /var/log/mail.log I see messages like:
postfix/submission/smtpd[32149]: warning: hostname unallocated.sta.lan.ua does not resolve to address 31.43.102.*: Name or service not known
unallocated.sta.lan.ua as I understand is the hostname of my home internet provider.
31.43.102.* is my home IP.
Where is the problem? Is it Internet Provider problem or my fault where my server\iRedMail is not configured properly (if so, how to fix)?
已采纳解答
原帖链接 · Grisha Levit · CC BY-SA 3.0
The reverse DNS warning is not really a misconfiguration on your end. Some ISP's just don't provide Forward-confirmed reverse DNS for their addresses.
I'm assuming that this isn't actually causing mail rejection by Postfix but rather a ban by fail2ban. You can check your fail2ban configuration for rules that watch /var/log/mail.log for a pattern that matches the one you posted and then disable that rule. Or you can whitelist your home IP address in the fail2ban configuration by adding it to the ignoreip list in jail.conf.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
