1 (edited by ketan.aagja 2012-06-15 00:21:42)

Topic: Problem talking to server 127.0.0.1:7778: Connection refused error

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL): iRedAdmin-Pro-LDAP-1.7.2
- Linux/BSD distribution name and version: CentOS 5.8
- Any related log? Log is helpful for troubleshooting.
====

Suddenly after running fine for two weeks server got stopped by throwing below error continuously for two days:

Jun 14 04:30:43 mail postfix/smtpd[22296]: connect from unknown[74.125.82.54]
Jun 14 04:30:45 mail postfix/smtpd[22296]: warning: connect to 127.0.0.1:7778: Connection refused
Jun 14 04:30:45 mail postfix/smtpd[22296]: warning: problem talking to server 127.0.0.1:7778: Connection refused
Jun 14 04:30:46 mail postfix/smtpd[22296]: warning: connect to 127.0.0.1:7778: Connection refused
Jun 14 04:30:46 mail postfix/smtpd[22296]: warning: problem talking to server 127.0.0.1:7778: Connection refused
Jun 14 04:30:46 mail postfix/smtpd[22296]: NOQUEUE: reject: RCPT from unknown[74.125.82.54]: 451 4.3.5 Server configuration problem; from=<user@otherdomain.com> to=<user@mydomain.com> proto=ESMTP helo=<mail-wg0-f54.google.com>
Jun 14 04:30:47 mail postfix/smtpd[22296]: disconnect from unknown[74.125.82.54]

It rejected every incoming Emails just showing problem talking to server and other "server configuration error", it came for two days showing same errors, I had to restart the server to resolve the issue... is there any clue to stop happening it again?


Cron daily shows errors:
/etc/cron.daily/logrotate:

Stopping iredapd ...
Starting iredapd ...
Stopping iredapd ...
Starting iredapd ...
Stopping iredapd ...
Starting iredapd ...
Stopping iredapd ...
Starting iredapd ...
Stopping iredapd ...
Starting iredapd ...
Traceback (most recent call last):
  File "/opt/iredapd/src/iredapd.py", line 171, in ?
    main()
  File "/opt/iredapd/src/iredapd.py", line 146, in main
    socket_daemon = apd_socket((listen_addr, listen_port))
  File "/opt/iredapd/src/iredapd.py", line 105, in __init__
    self.bind(localaddr)
  File "/usr/lib64/python2.4/asyncore.py", line 304, in bind
    return self.socket.bind(addr)
  File "<string>", line 1, in bind
socket.error: (98, 'Address already in use')
Stopping iredapd ...
Starting iredapd ...
Traceback (most recent call last):
  File "/opt/iredapd/src/iredapd-rr.py", line 363, in ?
    main()
  File "/opt/iredapd/src/iredapd-rr.py", line 338, in main
    socket_daemon = apd_socket((listen_addr, listen_port))
  File "/opt/iredapd/src/iredapd-rr.py", line 97, in __init__
    self.bind(localaddr)
  File "/usr/lib64/python2.4/asyncore.py", line 304, in bind
    return self.socket.bind(addr)
  File "<string>", line 1, in bind
socket.error: (98, 'Address already in use')

----

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

2

Re: Problem talking to server 127.0.0.1:7778: Connection refused error

You can stop iRedAPD first, sleep 1 second, then start it.
Or remove 'check_policy_service inet:[127.0.0.1]:7778' in Postfix main.cf if you don't need the features it provides.

3

Re: Problem talking to server 127.0.0.1:7778: Connection refused error

Hi Zhang,

I need the IredAPD and its services as many of my clients are configured to stop sending emails to desired email ids. How can i make it sleep and start it again?

4

Re: Problem talking to server 127.0.0.1:7778: Connection refused error

ketan.aagja wrote:

How can i make it sleep and start it again?

You can find this line in /etc/init.d/iredapd:

    restart) stop && start ;;

Modify it to below:

restart) stop && sleep 1 && start ;;