1

Topic: Server configuration problem

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.8.7
- Linux/BSD distribution name and version: Debian 7.6
- 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:
====

Hello,

I'm getting the following error (Server configuration problem) in /var/log/mail.log and the mailserver stopped working. I have restarted the entire server and the problem was solved for a while, but it started coming again.

Dec 17 07:40:02 server postfix/smtpd[7996]: connect from smtps45.nsmailserv.com[175.158.64.45]
Dec 17 07:40:04 server postfix/smtpd[7996]: warning: connect to 127.0.0.1:10031: Connection refused
Dec 17 07:40:04 server postfix/smtpd[7996]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Dec 17 07:40:05 server postfix/smtpd[7996]: warning: connect to 127.0.0.1:10031: Connection refused
Dec 17 07:40:05 server postfix/smtpd[7996]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Dec 17 07:40:05 server postfix/smtpd[7996]: NOQUEUE: reject: RCPT from smtps45.nsmailserv.com[175.158.64.45]: 451 4.3.5 Server configuration problem; from=<training@otherdomain.com> to=<enquiry@mydomain.in> proto=ESMTP helo=<netmagic.acemail.co.in>
Dec 17 07:40:06 server postfix/smtpd[7996]: disconnect from smtps45.nsmailserv.com[175.158.64.45]
Dec 17 07:43:26 server postfix/anvil[8001]: statistics: max connection rate 1/60s for (smtp:175.158.64.45) at Dec 17 07:40:02
Dec 17 07:43:26 server postfix/anvil[8001]: statistics: max connection count 1 for (smtp:175.158.64.45) at Dec 17 07:40:02
Dec 17 07:43:26 server postfix/anvil[8001]: statistics: max cache size 1 at Dec 17 07:40:02
Dec 17 08:06:37 server postfix/smtpd[8121]: connect from unknown[155.133.64.171]
Dec 17 08:06:41 server postfix/smtpd[8121]: warning: unknown[155.133.64.171]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Dec 17 08:06:48 server postfix/smtpd[8121]: warning: unknown[155.133.64.171]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Dec 17 08:06:59 server postfix/smtpd[8121]: warning: unknown[155.133.64.171]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Dec 17 08:07:09 server postfix/smtpd[8121]: warning: unknown[155.133.64.171]: SASL LOGIN authentication failed: Connection lost to authentication server
Dec 17 08:07:09 server postfix/smtpd[8121]: disconnect from unknown[155.133.64.171]
Dec 17 08:10:30 server postfix/anvil[8132]: statistics: max connection rate 1/60s for (smtp:155.133.64.171) at Dec 17 08:06:37
Dec 17 08:10:30 server postfix/anvil[8132]: statistics: max connection count 1 for (smtp:155.133.64.171) at Dec 17 08:06:37

I tried the following but no use:

 $ apt-get install python-setuptools
 $ easy_install DBUtils
 $ python -c "import DBUtils; print DBUtils.__version__"

Could you please suggest a solution ?
Thanks.

----

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

2

Re: Server configuration problem

aniyan.rajan6 wrote:

Dec 17 07:40:04 server postfix/smtpd[7996]: warning: connect to 127.0.0.1:10031: Connection refused

Port 10031 is Policyd or Cluebringer service, and it's NOT running, please try to start it.
Or, temporarily disable Policyd/Cluebringer integration in Postfix config file /etc/postfix/main.cf, by removing "check_policy_service inet:127.0.0.1:10031", then try to make Policyd/Cluebringer working, and re-enable the integration in main.cf.

3 (edited by aniyan.rajan6 2015-12-17 21:04:41)

Re: Server configuration problem

ZhangHuangbin wrote:
aniyan.rajan6 wrote:

Dec 17 07:40:04 server postfix/smtpd[7996]: warning: connect to 127.0.0.1:10031: Connection refused

Port 10031 is Policyd or Cluebringer service, and it's NOT running, please try to start it.
Or, temporarily disable Policyd/Cluebringer integration in Postfix config file /etc/postfix/main.cf, by removing "check_policy_service inet:127.0.0.1:10031", then try to make Policyd/Cluebringer working, and re-enable the integration in main.cf.

Port 10031 is cluebringer.
I have restarted the cluebringer: # /etc/init.d/postfix-cluebringer restart

I didn't find anything called policyd. But I have found a package named policyd-weight and it was not installed. So I installed that. Is it fine ?

4

Re: Server configuration problem

policyd-weight is not policyd, they're different softwares.

On your server, it's postfix-cluebringer service. Please make sure it's running.

5

Re: Server configuration problem

ZhangHuangbin wrote:

policyd-weight is not policyd, they're different softwares.

On your server, it's postfix-cluebringer service. Please make sure it's running.

yes it is running:

# netstat -pant | grep 10031
tcp        0      0 127.0.0.1:10031         0.0.0.0:*               LISTEN      5325/perl

6

Re: Server configuration problem

If cluebringer is running, Postfix should be fine. Any new error in Postfix log file? What's the issue now?

7

Re: Server configuration problem

ZhangHuangbin wrote:

If cluebringer is running, Postfix should be fine. Any new error in Postfix log file? What's the issue now?

There are no errors in /var/log/mail.log right now. But the error "Server configuration problem", which I have reported in my first message came when cluebringer was working fine. I think that will start coming when there are too many connections.

8

Re: Server configuration problem

ZhangHuangbin wrote:

If cluebringer is running, Postfix should be fine. Any new error in Postfix log file? What's the issue now?

It is coming again. Please see the following.

Dec 18 20:40:45 server postfix/smtpd[14426]: disconnect from unknown[155.133.64.171]
Dec 18 20:44:05 server postfix/anvil[14442]: statistics: max connection rate 1/60s for (smtp:155.133.64.171) at Dec 18 20:40:12
Dec 18 20:44:05 server postfix/anvil[14442]: statistics: max connection count 1 for (smtp:155.133.64.171) at Dec 18 20:40:12
Dec 18 20:44:05 server postfix/anvil[14442]: statistics: max cache size 1 at Dec 18 20:40:12
Dec 18 21:20:12 server postfix/smtpd[14529]: connect from server.mydomain.in[127.0.0.1]
Dec 18 21:20:12 server postfix/smtpd[14529]: warning: connect to 127.0.0.1:10031: Connection refused
Dec 18 21:20:12 server postfix/smtpd[14529]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Dec 18 21:20:13 server postfix/smtpd[14529]: warning: connect to 127.0.0.1:10031: Connection refused
Dec 18 21:20:13 server postfix/smtpd[14529]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Dec 18 21:20:13 server postfix/smtpd[14529]: NOQUEUE: reject: RCPT from server.mydomain.in[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<donotreply@mydomain.in> to=<sabioor@gmail.com> proto=ESMTP helo=<mydomain.in>
Dec 18 21:20:13 server postfix/smtpd[14529]: lost connection after RSET from server.mydomain.in[127.0.0.1]
Dec 18 21:20:13 server postfix/smtpd[14529]: disconnect from server.mydomain.in[127.0.0.1]
Dec 18 21:24:13 server postfix/smtpd[14540]: connect from unknown[155.133.64.171]
Dec 18 21:24:16 server postfix/smtpd[14540]: warning: unknown[155.133.64.171]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Dec 18 21:24:23 server postfix/smtpd[14540]: warning: unknown[155.133.64.171]: SASL LOGIN authentication failed: UG

..................
..................
..................


Dec 18 22:10:22 server postfix/smtpd[14647]: connect from mail-ig0-f174.google.com[209.85.213.174]
Dec 18 22:10:24 server postfix/smtpd[14647]: warning: connect to 127.0.0.1:10031: Connection refused
Dec 18 22:10:24 server postfix/smtpd[14647]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Dec 18 22:10:25 server postfix/smtpd[14647]: warning: connect to 127.0.0.1:10031: Connection refused
Dec 18 22:10:25 server postfix/smtpd[14647]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Dec 18 22:10:25 server postfix/smtpd[14647]: NOQUEUE: reject: RCPT from mail-ig0-f174.google.com[209.85.213.174]: 451 4.3.5 Server configuration problem; from=<akb10@gmail.com> to=<mail@mydomain.in> proto=ESMTP helo=<mail-ig0-f174.google.com>
Dec 18 22:10:25 server postfix/smtpd[14647]: disconnect from mail-ig0-f174.google.com[209.85.213.174]
Dec 18 22:13:45 server postfix/anvil[14649]: statistics: max connection rate 1/60s for (smtp:209.85.213.174) at Dec 18 22:10:23
Dec 18 22:13:45 server postfix/anvil[14649]: statistics: max connection count 1 for (smtp:209.85.213.174) at Dec 18 22:10:23

9

Re: Server configuration problem

Any error in Cluebringer log file? /var/log/cbpolicyd.log.

If no related log, please turn on debug mode in Cluebringer, and extract related log if it happened again.

Reference: http://www.iredmail.org/docs/debug.cluebringer.html