1 (edited by andy88 2011-01-28 04:58:51)

Topic: postfix+openldap problem

Iredmail put on 3 different machines with different versions of freebsd 7.2-8.0, and everywhere one and the same problem with openldap


mail postfix /trivial-rewrite [16370]: fatal:proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf (0,lock|fold_fix):table lookup problem

after openldap stops working and postfix

really need help

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: postfix+openldap problem

Unable to connect to LDAP server My LDAP Server
Can't contact LDAP server (-1) for user

3

Re: postfix+openldap problem

Please check whether openldap service is running or not.

4

Re: postfix+openldap problem

start the services manually, after 1 minute it drops

5

Re: postfix+openldap problem

andy88 wrote:

start the services manually, after 1 minute it drops

Try to set 'loglevel 256' in slapd.conf, restart openldap, and monitor its log file to see what happened.

6

Re: postfix+openldap problem

All the same, nothing has changed

7

Re: postfix+openldap problem

andy88 wrote:

All the same, nothing has changed

Sorry, i didn't make myself clear.

Do you find any error/warning message in openldap log file? Paste here so that others can help troubleshoot.

8

Re: postfix+openldap problem

/usr/local/etc/openldap/slapd.conf

# Log level.
#   -1:     enable all debugging
#    0:     no debugging
#   128:    access control list processing
#   256:    stats log connections/operations/results
loglevel    256

9

Re: postfix+openldap problem

andy88 wrote:

Jan 28 07:54:44 mail slapd[52620]: filter_free: unknown filter type=60

Seems this is the root cause, but i have no idea yet.

Try to set 'loglevel -1' in slapd.conf, and monitor log file again.

10

Re: postfix+openldap problem

log is very long, just a small part, maybe help

11

Re: postfix+openldap problem

I can't find related error log in your post.
You should try to read its log file line-by-line, and find out related log content and paste here, so that others can help troubleshoot.

Does OpenLDAP raise any error message when you start/restart it? like mentioned in this post:
http://www.iredmail.org/forum/post7418.html#p7418

12 (edited by andy88 2011-01-29 19:56:52)

Re: postfix+openldap problem

These are the entries in the logs there is

Jan 29 14:54:30 mail postfix/smtpd[56933]: warning: connect #1 to subsystem private/rewrite: Connection refused
Jan 29 14:54:30 mail postfix/smtpd[50706]: warning: connect #1 to subsystem private/rewrite: Connection refused
Jan 29 14:54:31 mail postfix/proxymap[73709]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=example,dc=ru: -1 (Can't contact LDAP server)
Jan 29 14:54:31 mail postfix/proxymap[73709]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=example,dc=ru: -1 (Can't contact LDAP server)
Jan 29 14:54:31 mail postfix/trivial-rewrite[62051]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jan 29 14:54:32 mail postfix/smtpd[50622]: warning: problem talking to service rewrite: Unknown error: 0
Jan 29 14:54:32 mail postfix/smtpd[54541]: warning: problem talking to service rewrite: Unknown error: 0
Jan 29 14:54:32 mail postfix/master[52577]: warning: process /usr/local/libexec/postfix/trivial-rewrite pid 62051 exit status 1