On Tuesday, August 26, 2014 00:04:31 Martin Vegter wrote: > > On 08/25/2014 11:28 PM, Wietse Venema wrote: > >> Do I ned to change any settings in postfix, so that client IPs are > >> resolved into hostnames? > > > > You need the correct DNS server in /etc/resolv.conf. > > > > You must not have "disable_dns_lookups=yes" in main.cf or master.cf. > > > > You must not have "smtpd_peername_lookup=no" in main.cf or master.cf. > > > > You may also need to turn off chroot per instructions in > > http://www.postfix.org/DEBUG_README.html#no_chroot > > I have turned off chroot for smtp and now it works. > But that is not an optimal solution. I would like to keep chrooted smtp. > > Is there any way to make it work even in chroot? I see, Postfix has all > the necesary files in /var/spool/postfix/etc: > > $ ls /var/spool/postfix/etc > hosts localtime nsswitch.conf resolv.conf services > > and the config options you mentioned are OK as well: > > disable_dns_lookups=no > smtpd_peername_lookup=yes
Since, as mentioned downthread, this is more related to distribution packaging than upstream postfix, it would probably be better to take this up in a Debian specific user forum. Scott K