I have been working through a problem for the last couple of hours.

If have the following set in main.cf

        smtpd_client_restrictions = reject_unknown_client_hostname

and the smtpd is chroot'ed in master.cf

        smtpd   pass    -       -       y       -       -       smtpd

then every message gets rejected due to unknown hostname, despite the forward 
and reverse DNS records being correct.

May  8 14:34:00 vps1 postfix/smtpd[19675]: connect from unknown[66.94.79.58]
May  8 14:34:00 vps1 postfix/smtpd[19675]: NOQUEUE: reject: RCPT from 
unknown[66.94.79.58]: 450 4.7.1 Client host rejected: cannot find your 
hostname, [66.94.79.58]; from=<imag...@imaginenet.net> to=<j...@imaginenet.net> 
proto=ESMTP helo=<Senility.local>


If I set smtpd chroot = n (and restart postfix)

        smtpd   pass    -       -       n       -       -       smtpd

then everything works fine.

May  8 15:30:59 vps1 postfix/smtpd[23802]: connect from 
66-94-79-58.cle.imaginenet.net[66.94.79.58]
May  8 15:30:59 vps1 postfix/smtpd[23802]: 3Vn9m368KkzKmJK8: 
client=66-94-79-58.cle.imaginenet.net[66.94.79.58]
May  8 15:31:00 vps1 postfix/smtpd[23802]: disconnect from 
66-94-79-58.cle.imaginenet.net[66.94.79.58]
May  8 15:31:00 vps1 postfix/smtpd[23806]: 3Vn9m42449zKmJKK: 
client=localhost.localdomain[127.0.0.1], 
orig_client=66-94-79-58.cle.imaginenet.net[66.94.79.58]
May  8 15:31:00 vps1 amavis[21537]: (21537-01) Passed CLEAN, [66.94.79.58] 
[66.94.79.58] <imag...@imaginenet.net> -> <j...@imaginenet.net>, Message-ID: 
<4fa97473.5040...@imaginenet.net>, mail_id: lscTgbNKiUck, Hits: -, size: 617, 
queued_as: 3Vn9m42449zKmJKK, 120 ms


This is reproducible for me on this system (i.e. if I change chroot back to "y" 
for smtpd, then lookups fail again).  Can anyone else verify that this 
configuration fails on their system?  I am trying to find out if this is a bug 
or just some configuration element that I am overlooking.

OS:  CentOS 5.8
Postfix:  2.9.1

Thank you,

Jim Lohiser
Imagine Net, Inc.

Reply via email to