Hi, the experts
I followed this article http://www.linuxmail.info/post…..-centos-5/ and everything works great until I configured the postfix to run in a chrooted jail.
I got a "temporary lookup failure" while doing a test from telnet. (i'm running postfix on CentOS v5.4)
*******************************************************************************
/var/log/maillog
Aug 30 07:56:51 postfix postfix/smtpd[25978]: dict_ldap_connect: Connecting to server ldap://mail.test.local:389
Aug 30 07:56:51 postfix postfix/smtpd[25978]: dict_ldap_connect: Actual Protocol version used is 3.
Aug 30 07:56:51 postfix postfix/smtpd[25978]: dict_ldap_connect: Binding to server ldap://mail.test.local:389 as dn admin@test.local
Aug 30 07:56:51 postfix postfix/smtpd[25978]: warning: dict_ldap_connect: Unable to bind to server ldap://mail.test.local:389 as admin@test.local: -1 (Can't contact LDAP server)
Aug 30 07:56:51 postfix postfix/smtpd[25978]: maps_find: virtual_mailbox_maps: user@test.com: search aborted
Aug 30 07:56:51 postfix postfix/smtpd[25978]: mail_addr_find: user@test.com -> (try again)
Aug 30 07:56:51 postfix postfix/smtpd[25978]: NOQUEUE: reject: RCPT from unknown[201.122.25.95]: 451 4.3.0 <user@test.com>: Temporary lookup failure; from=<it@test.com> to=<user@test.com> proto=SMTP helo=<a.test.local>
Aug 30 07:56:51 postfix postfix/smtpd[25978]: > unknown[201.122.25.95]: 451 4.3.0 <user@test.com>: Temporary lookup failure
[201.122.25.95]: 451 4.3.0 <user@test.com>: Temporary lookup failure; from=<it@test.com> to=<user@test.com> proto=SMTP helo=<h.h>
*******************************************************************************
master.cf
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - y - - smtpd -v
*******************************************************************************
/etc/postfix/ldap-users.conf
[csgit@postfix ~]$ cat /etc/postfix/ldap-users.conf
server_host = mail.test.local
search_base = dc=test,dc=local
version = 3
query_filter = (&(objectclass=person)(mail=%s))
result_attribute = samaccountname
result_format = %s/Maildir/
bind = yes
bind_dn = admin@test.local
bind_pw = Ja23deastef347
*******************************************************************************
I believe that I have missed something in /var/spool/postfix. But googled a couple of days and got no findings
.
BTW, I have copied /dev/random and /dev/urandom to /var/spool/postfix/dev
Please help.
Thank you