1

Topic: slapd service rarely goes down?

I use iredmail0-6 with ldap option as test. it has been working well for about since the second June 2010.
But I have a problem. I have only 2 mail accounts. But the ldap service goes down about everyweek.
I have to restart slapd service.
What 's wrong with it?
Meanwhile, I need a script makes the service restart when its down.
How can I find it?

Thanks

----

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

2

Re: slapd service rarely goes down?

You should try to figer it out by checking system log under /var/log/

3

Re: slapd service rarely goes down?

http://www.iredmail.org/forum/topic565- … monit.html

monit would restart the service .

4

Re: slapd service rarely goes down?

ZhangHuangbin wrote:

You should try to figer it out by checking system log under /var/log/

there /var/log/messages before restarted the server

after the restart, the everything works well. I didn't change anything.

Jun 26 11:01:26 mail postfix/trivial-rewrite[19882]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:01:26 mail postfix/trivial-rewrite[19883]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:01:26 mail postfix/trivial-rewrite[19884]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:02:27 mail postfix/trivial-rewrite[19885]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:02:27 mail postfix/trivial-rewrite[19886]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:02:27 mail postfix/trivial-rewrite[19887]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:03:28 mail postfix/trivial-rewrite[19888]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:03:28 mail postfix/trivial-rewrite[19889]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:03:28 mail postfix/trivial-rewrite[19890]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:04:29 mail postfix/trivial-rewrite[19892]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:04:29 mail postfix/trivial-rewrite[19893]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:04:29 mail postfix/trivial-rewrite[19894]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:05:30 mail postfix/trivial-rewrite[19898]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem


/var/log/maillog;
Jun 26 11:05:36 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)
Jun 26 11:06:31 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)
Jun 26 11:06:31 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)
Jun 26 11:06:31 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)
Jun 26 11:06:31 mail postfix/trivial-rewrite[19902]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:06:31 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)
Jun 26 11:06:31 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)
Jun 26 11:06:31 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)
Jun 26 11:06:31 mail postfix/trivial-rewrite[19903]: fatal: proxy:ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Jun 26 11:06:31 mail postfix/proxymap[19143]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as cn=vmail,dc=filtrelisu,dc=com: -1 (Can't contact LDAP server)

5

Re: slapd service rarely goes down?

The log just says applications can't connect to ldap server, you have to find out why ldap server stops.

6

Re: slapd service rarely goes down?

i have this trouble, but i dont find why my ldap server stops:(
password is correct, all settings is default ...

7

Re: slapd service rarely goes down?

sckif wrote:

i have this trouble, but i dont find why my ldap server stops:(
password is correct, all settings is default ...

I haven't still found out any solves for this problem on freebsd.
I installed as default.
I wonder when the problem will be solved.

by the way I am waiting for iRedAdmin's support for mysql backend.

Because if you install your mail server with ldap in iredmail installation, and then once the ldap service goes down, all your mail system go down. To me, surely ldap service should be but all mail services shouldn't depend on the ldap.

8

Re: slapd service rarely goes down?

the same problem with openldap.
somebody solved it?