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

Postfix: forced reverse lookup for incoming connections

· 52CE 我爱测

I see following maillog records when new mail comes to server connect from unknown [209.85.223.195] client=unknown[209.85.223.195] But that IP address is GMail IP and it has valid PTR-record which points to mail-io0-f195.google.c…

问题原文

原帖链接 · Twissell · CC BY-SA 4.0

I see following maillog records when new mail comes to server

connect from unknown [209.85.223.195]
client=unknown[209.85.223.195]

But that IP address is GMail IP and it has valid PTR-record which points to mail-io0-f195.google.com My main.cf is here

resolv.conf content for Postfix listed below

# Generated by NetworkManager
  nameserver 8.8.8.8
  nameserver 8.8.4.4
  nameserver [hosting_dns_servers_here]
 # NOTE: the libc resolver may not support more than 3 nameservers.
 # The nameservers listed below may not be recognized.
   nameserver 1.1.1.1
   nameserver 1.0.0.1
   nameserver 77.88.8.8
   nameserver 77.88.8.1

So, how can I force Postfix to make reverse lookup and logs a domain name of mailserver not IP address? I'm running CentOS 7.4

P.S. Postix "chained" in chroot

已采纳解答

原帖链接 · Twissell · CC BY-SA 4.0

The issue was caused by Postfix in chroot mode. Almost the same problem was described earlier for Ubuntu.

You need to copy libraries needed for reverse lookup name resolution inside the chroot, e.g.

sudo cp -vl /usr/lib64/libnss_* /var/spool/postfix/lib64

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

资料来源与适用范围

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

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

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