Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

ldap lookup failure while running postfix in chrooted jail

Reply to Post Add a New Topic
UserPost

4:51 am
August 30, 2010


abenmao

New Member

posts 2

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 findingsCry.

BTW, I have copied /dev/random and /dev/urandom to /var/spool/postfix/dev

 

Please help.

 

Thank you

10:33 am
August 30, 2010


abenmao

New Member

posts 2

I just figured it out. LaughThe error "Temporary lookup failure"  means a DNS lookup for the LDAP server "mail.test.local" failed.

 

workarounds:

a.) adjust mail.test.local to the actual IP in /etc/postfix/ldap-users.conf

 

or

 

b.) add an entry for mail.test.local to /etc/hosts and copy /etc/hosts to /var/spool/postfix/etc

Reply to Post

Reply to Topic:
ldap lookup failure while running postfix in chrooted jail

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 10
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
16 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 343
Posts: 1062

Membership:

There are 966 Members
There have been 91 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 46
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: waveney, achal, niesul14, hesaum, sreevinodss, nasonov

Administrators: consultant (353 Posts)