问题原文
原帖链接 · 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
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
