大网数据广告活动
服务器运维问答

postfix/submission/smtpd[xxxxx]: warning: hostname <**> does not resolve to address <IP>: Name or service not known

· 52CE 我爱测

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.*: …

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-01-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。