1

Topic: Server configuration problem - mails not received

Hi,

I have problem with my new mailserver:

distro: Debian 6.0 Squeeze clean installation
setup scrpits: iRedMail-0.7.0-beta6

after setting all I can't receive any mail from outside:

Mar 19 15:43:47 eve postfix/smtpd[2121]: connect from mail-iy0-f173.google.com[209.85.210.173]
Mar 19 15:43:48 eve postfix/smtpd[2121]: warning: connect to 127.0.0.1:7777: Connection refused
Mar 19 15:43:48 eve postfix/smtpd[2121]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Mar 19 15:43:49 eve postfix/smtpd[2121]: warning: connect to 127.0.0.1:7777: Connection refused
Mar 19 15:43:49 eve postfix/smtpd[2121]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Mar 19 15:43:49 eve postfix/smtpd[2121]: NOQUEUE: reject: RCPT from mail-iy0-f173.google.com[209.85.210.173]: 451 4.3.5 Server configuration problem; from=<____@gmail.com> to=<_____@servix.pl> proto=ESMTP helo=<mail-iy0-f173.google.com>
Mar 19 15:43:49 eve postfix/smtpd[2121]: disconnect from mail-iy0-f173.google.com[209.85.210.173]

Mail addresses changed.

I tried this solution:
http://www.howtoforge.com/iredmail-0.6. … ment-25693

Solved for the moment with a pretty dirty hack, modifying the /etc/postfix-policyd.conf   and    /etc/postfix-policyd_sender_throttle.conf   at the line containing the SYSLOG FACILITY as follows:

SYSLOG_FACILITY="LOG_MAIL | LOG_ERR"

and tried setting GREYLISTING=0 in /etc/postfix-policyd.conf.

Nothing helped.

Any ideas what could be wrong?

Best regards,
Marcin Kuk

----

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 - mails not received

Marcin Kuk wrote:

Mar 19 15:43:48 eve postfix/smtpd[2121]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD listens on port 7777, please restart this service /etc/init.d/iredapd and check its log file /var/log/iredapd.log.

3

Re: Server configuration problem - mails not received

ZhangHuangbin wrote:
Marcin Kuk wrote:

Mar 19 15:43:48 eve postfix/smtpd[2121]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD listens on port 7777, please restart this service /etc/init.d/iredapd and check its log file /var/log/iredapd.log.

root@eve:/home/kuki# nmap localhost

Starting Nmap 5.00 ( http://nmap.org ) at 2011-03-19 19:45 CET
Interesting ports on localhost (127.0.0.1):
Not shown: 983 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
25/tcp    open  smtp
53/tcp    open  domain
80/tcp    open  http
110/tcp   open  pop3
143/tcp   open  imap
389/tcp   open  ldap
443/tcp   open  https
465/tcp   open  smtps
587/tcp   open  submission
993/tcp   open  imaps
995/tcp   open  pop3s
3306/tcp  open  mysql
7777/tcp  open  unknown
9998/tcp  open  unknown
10024/tcp open  unknown
10025/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.18 seconds
root@eve:/home/kuki# cat /var/log/iredapd.log 
...
2011-03-18 01:45:37 INFO _____@nextodigitalservices.pl -> _______@servix.pl, DUNNO
2011-03-18 01:46:22 INFO _____@nextodigitalservices.pl -> _______@servix.pl, DUNNO
2011-03-19 19:43:22 INFO Starting iredapd (v1.3.4, pid: 1451), listening on 127.0.0.1:7777.

iRedAPD whatever it does is running and not firewalled.
Logs didn't helped a lot.

I can't send and receive e-mail. Roundcube write the same error message.

Any other ideas?

4

Re: Server configuration problem - mails not received

What's the new error message in /var/log/mail.info and mail.err?

5

Re: Server configuration problem - mails not received

ZhangHuangbin wrote:

What's the new error message in /var/log/mail.info and mail.err?

ZhangHuangbin my server just start deliver e-mails. I don't know what was wrong because I did nothing except several reboots.

If problem occurs again I will post.

Anyway thanks for your quick reply.

Regards,
Marcin Kuk

6 (edited by jayt 2011-04-27 00:05:36)

Re: Server configuration problem - mails not received

I have the same problem. iredapd gone away for several times today. Nothing in mail.err and iredapd.log. Only this in mail.log and mail.info:

Apr 26 17:00:05 mail postfix/smtpd[8869]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr 26 17:00:06 mail postfix/smtpd[8869]: warning: connect to 127.0.0.1:7777: Connection refused

After restart everything goes fine.

I have Debian squeeze and IredMail 0.7.0

7

Re: Server configuration problem - mails not received

You can simply remove iRedAPD from postfix config file "main.cf" as a temporary solution:
Remove check_policy_service inet:127.0.0.1:7777 in smtp_recipient_restrictions.

Some questions:

- Is this a busy server? So that i can try to reproduce this issue.
- Any MySQL related error log in log files under /var/log/? such as some component complains "too many connections to mysql server", etc.

Will dive into this issue later.

8

Re: Server configuration problem - mails not received

This server has about 6K smtp connections daily. There are two major peaks - one in 8-9 AM and other at 4-5PM. 10 minutes after install I got a mysql error - Too many connections, but that was no problem to be solved. Now I am using a script to trace the ireapd process.if this does not work - will edit main.cnf.

Thanks for the quick answer, ZhangHuangbin!

Best Regards!
George

9

Re: Server configuration problem - mails not received

Hi, @jayt.

Can you help check whether or not you have python module "DBUtils" installed with below command?

# python -c "import DBUtils; print DBUtils.__version__"
1.0

If you don't have it installed, please try to install it with below command:

# easy_install DBUtils

About DBUtils module:

http://www.webwareforpython.org/DBUtils wrote:

DBUtils is a suite of tools providing solid, persistent and pooled connections to a database that can be used in all kinds of multi-threaded environments like Webware for Python or other web application servers. The suite supports DB-API 2 compliant database interfaces and the classic PyGreSQL interface.

Note: Personally, i hope you can install DBUtils after you got iRedAPD stopped again, so that we can know why it happened, we should find the root cause. smile

10

Re: Server configuration problem - mails not received

Оbviously I do not have a DBUtils:

root@mail:~# python -c "import DBUtils; print DBUtils.__version__"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named DBUtils

After:

# apt-get install python-setuptools
# easy_install DBUtils

I got:

root@mail:~# python -c "import DBUtils; print DBUtils.__version__"
1.0

Now I put back in main.cf: check_policy_service inet:127.0.0.1:7777 and restart all services.
Hope this helps and will surely inform you.
Thanks for help, ZhangHuangbin!

11

Re: Server configuration problem - mails not received

Solved!

12

Re: Server configuration problem - mails not received

jayt wrote:

Solved!

Great news. Let's monitor it for some more days. smile
Thanks very much for your feedback.

13

Re: Server configuration problem - mails not received

This post is essentially a +1. Email broke spontaneously, causing iredapd.log to report 'DUNNO' for local recipient addresses, and mail.info to report 'warning: connect to 127.0.0.1:10031: Connection refused'.

I hadn't run an update on iredadmin in a while. Steps to solution were:

1) Download iRedMail update, `bash tools/upgrade_iredadmin.sh`
2) Converted entries in `/etc/postfix/main.cf` from `127.0.0.1:10031` to `127.0.0.1:7777`
3) `apt-get install python-setuptools && easy_install DButils`
4) `service postfix reload`

Thanks to ZhangHuangbin.

14

Re: Server configuration problem - mails not received

Dear @mxork,

Policyd or Cluebringer listens on port 10031, not iRedAPD. So your solution is WRONG.