1

Topic: Problems with new installation in Centos 7

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v0.9.8
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?: No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I'm migrating iredmail to a new server. After installing iredmail, I configured SSL certificates using the same ones I have in the old server, everything it's ok, all services restart successfully, nginx uses the right certificate when login in to roundcube. When sending a test email I get this error in /var/log/maillog:

Jul 22 13:48:47 mail postfix/submission/smtpd[119950]: connect from mail.XX.YY[127.0.0.1]
Jul 22 13:48:47 mail postfix/submission/smtpd[119950]: Anonymous TLS connection established from mail.paas.cl[127.0.0.1]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Jul 22 13:48:47 mail postfix/submission/smtpd[119950]: warning: connect to 127.0.0.1:7777: Connection refused
Jul 22 13:48:47 mail postfix/submission/smtpd[119950]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jul 22 13:48:48 mail postfix/submission/smtpd[119950]: warning: connect to 127.0.0.1:7777: Connection refused
Jul 22 13:48:48 mail postfix/submission/smtpd[119950]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jul 22 13:48:48 mail postfix/submission/smtpd[119950]: NOQUEUE: reject: RCPT from mail.XX.YY[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<postmaster@XX.YY> to=<#######@#######> proto=ESMTP helo=<_>
Jul 22 13:48:48 mail roundcube: <e9lhfo47> SMTP Error: Failed to add recipient '#######@#######l'. 4.3.5 Server configuration problem (Code: 451) in /var/www/roundcubemail-1.3.6/program/lib/Roundcube/rcube.php on line 1667 (POST /mail/?_task=mail&_unlock=loading1532267326370&_lang=en_US&_framed=1&_action=send)
Jul 22 13:48:48 mail postfix/submission/smtpd[119950]: disconnect from mail.XX.YY[127.0.0.1]


And these are the errors for iredmail automatic generated emails (backup, stats):
Jul 22 13:16:04 mail postfix/qmgr[6380]: 87B1F208EC: from=<root@mail.XX.YY>, size=4041, nrcpt=1 (queue active)
Jul 22 13:16:04 mail postfix/qmgr[6380]: CFA9C2098A: from=<root@mail.XX.YY>, size=1328, nrcpt=1 (queue active)
Jul 22 13:16:04 mail postfix/amavis/smtp[116727]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jul 22 13:16:04 mail postfix/amavis/smtp[116729]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jul 22 13:16:04 mail postfix/amavis/smtp[116727]: 87B1F208EC: to=<root@mail.XX.YY>, relay=none, delay=129841, delays=129841/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Jul 22 13:16:04 mail postfix/amavis/smtp[116729]: CFA9C2098A: to=<root@mail.XX.YY>, relay=none, delay=121562, delays=121562/0.05/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Since it's a new installation everything points to a be an SSL certificate issue. Please give me some directions to dig into the right direction.

Thanks,
/Christian

----

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

2

Re: Problems with new installation in Centos 7

Christian2k2 wrote:

Jul 22 13:48:47 mail postfix/submission/smtpd[119950]: warning: problem talking to server 127.0.0.1:7777: Connection refused

iRedAPD service is not running.

3

Re: Problems with new installation in Centos 7

Wow, it seems that iRedAPD was not installed/configured correctly during the installation:

[root@mail centos]# service iredapd start
Redirecting to /bin/systemctl start iredapd.service
Failed to start iredapd.service: Unit not found.

iRedAPD Installation details:
iRedAPD - Postfix Policy Server:
    * Version: 2.2
    * Listen address: 127.0.0.1, port: 7777
    * SQL database account:
        - Database name: iredapd
        - Username: iredapd
        - Password: XXXXXXXXXXXXXXXXXXXXXXX
    * Configuration file:
        - /opt/iredapd/settings.py
    * Related files:
        - /opt/iRedAPD-2.2
        - /opt/iredapd (symbol link to /opt/iRedAPD-2.2

Do you have some advise to setup iredapd service correctly?

4

Re: Problems with new installation in Centos 7

Christian2k2 wrote:

    * Configuration file:
        - /opt/iredapd/settings.py
    * Related files:
        - /opt/iRedAPD-2.2
        - /opt/iredapd (symbol link to /opt/iRedAPD-2.2

Do you have these files?

5

Re: Problems with new installation in Centos 7

Yes, I have all:

[root@mail centos]# ls -la /opt/iredapd/settings.py
-r--------. 1 root root 1794 Jul 21 00:34 /opt/iredapd/settings.py

[root@mail centos]# ls -la /opt/iRedAPD-2.2
total 124
dr-x------. 9 root root  4096 Jul 21 01:01 .
drwxr-xr-x. 7 root root  4096 Jul 21 00:34 ..
-r-x------. 1 root root 23421 Feb  7 02:16 ChangeLog
-r-x------. 1 root root  9532 Feb  7 02:16 INSTALL.md
-r-x------. 1 root root  9574 Feb  7 02:16 iredapd-gevent.py
-r-x------. 1 root root 11389 Feb  7 02:16 iredapd.py
dr-x------. 5 root root  4096 Jul 21 01:02 libs
dr-x------. 2 root root  4096 Jul 21 00:33 plugins
dr-x------. 2 root root  4096 Jul 21 00:33 rc_scripts
-r-x------. 1 root root  3319 Feb  7 02:16 README.md
-r-x------. 1 root root  2741 Feb  7 02:16 README_PLUGINS.md
dr-x------. 3 root root  4096 Jul 21 00:33 samples
-r--------. 1 root root  1794 Jul 21 00:34 settings.py
-r--------. 1 root root  1392 Jul 21 01:01 settings.pyc
-r-x------. 1 root root  1726 Feb  7 02:16 settings.py.sample
dr-x------. 2 root root  4096 Feb  7 02:16 SQL
dr-x------. 2 root root  4096 Jul 21 00:33 tests
-r-x------. 1 root root   132 Feb  7 02:16 TODO.md
dr-x------. 2 root root  4096 Jul 21 01:01 tools
-r-x------. 1 root root    99 Feb  7 02:16 UPGRADE.md

[root@mail centos]# ls -la /opt/iredapd
lrwxrwxrwx. 1 root root 16 Jul 21 00:33 /opt/iredapd -> /opt/iRedAPD-2.2

6

Re: Problems with new installation in Centos 7

Try to copy /opt/iredapd/rc_scripts/iredapd.service to /lib/systemd/system/, then run command:

systemctl disable iredapd
systemctl enable iredapd
systemctl start iredapd

7

Re: Problems with new installation in Centos 7

ZhangHuangbin wrote:

Try to copy /opt/iredapd/rc_scripts/iredapd.service to /lib/systemd/system/, then run command:

systemctl disable iredapd
systemctl enable iredapd
systemctl start iredapd

Thank you, that made the trick!!

Regards,
/Christian