1

Topic: ldap problem with iredmail 0.9.4

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version:  Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:

- iredapd.log
2016-02-06 13:07:03 ERROR LDAP bind failed: {'desc': "Can't contact LDAP server"}.

-mail.log
Feb  6 13:15:36 mail postfix/postscreen[10537]: CONNECT from [74.125.82.49]:35667 to [172.31.45.62]:25
Feb  6 13:15:36 mail postfix/postscreen[10537]: PASS OLD [74.125.82.49]:35667
Feb  6 13:15:36 mail postfix/smtpd[10538]: connect from mail-wm0-f49.google.com[74.125.82.49]
Feb  6 13:15:36 mail postfix/smtpd[10538]: warning: connect to 127.0.0.1:7777: Connection refused
Feb  6 13:15:36 mail postfix/smtpd[10538]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Feb  6 13:15:37 mail postfix/smtpd[10538]: warning: connect to 127.0.0.1:7777: Connection refused
Feb  6 13:15:37 mail postfix/smtpd[10538]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Feb  6 13:15:37 mail postfix/smtpd[10538]: NOQUEUE: reject: RCPT from mail-wm0-f49.google.com[74.125.82.49]: 451 4.3.5 Server configuration problem; from=<oquidave@gmail.com> to=<david@hataricloud.com> proto=ESMTP helo=<mail-wm0-f49.google.com>
Feb  6 13:15:38 mail postfix/smtpd[10538]: disconnect from mail-wm0-f49.google.com[74.125.82.49]
====

Hello guys, my iredmail mail server is not working. I've checked the logs and it says " warning: connect to 127.0.0.1:7777: Connection refused". I googled around and the forums suggest iredapd is not working. I discovered iredapd was throwing "ImportError: No module named ldap", so I installed python-ldap module using sudo apt-get install python-ldap.

Now ireadapd starts but still gives erros in the log file. It says "ERROR LDAP bind failed: {'desc': "Can't contact LDAP server"}".

Am using self-signed certificates from iredmail installation process.
What's the problem. Thanks

----

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

2

Re: ldap problem with iredmail 0.9.4

Try this:

cd /opt/iredapd/
find . -name '*pyc' | xargs rm -f {}
service iredapd restart

3 (edited by oquidave 2016-02-07 15:15:13)

Re: ldap problem with iredmail 0.9.4

Hello,

The server now works after applying your solution!!

I would be interested in knowing what was causing the problem though!

Also I noticed postfix-cluebringer isn't installed in this version of iredmail.

Also could we file this as a bug to be rectified in the next release?

4

Re: ldap problem with iredmail 0.9.4

oquidave wrote:

I would be interested in knowing what was causing the problem though!

Looks like the compiled Python binary file(s) contain incorrect options, we delete them and Python will re-generate them.

oquidave wrote:

Also I noticed postfix-cluebringer isn't installed in this version of iredmail.

It's mentioned in release notes of iRedMail-0.9.3, we completely removed Policyd/Cluebringer by iRedAPD -- currently only greylisting, white/blacklisting, throttling are implemented.