1 (edited by bigweb 2020-06-28 08:33:46)

Topic: Mail Server stoped working after update 1.1->1.2 (iRedAPD 4) [SOLVED]

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.2
- Deployed with iRedMail Easy or the downloadable installer? : DOwnloadable
- Linux/BSD distribution name and version: Ubuntu 18
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MYSQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi ,
Need urgent help - LIve server , lots of clients. . After upgrading 1.1 ->1.2 , mail sending/receiving stopped working .

iredapd seems cannot start (updated to 4 )

systemctl status iredapd.service
● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/lib/systemd/system/iredapd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2020-06-27 23:41:48 UTC; 47s ago
  Process: 4105 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)

Jun 27 23:41:48 mxc systemd[1]: Starting iRedAPD (A simple posfix policy server)...
Jun 27 23:41:48 mxc python3[4105]: Traceback (most recent call last):
Jun 27 23:41:48 mxc python3[4105]:   File "/opt/iredapd/iredapd.py", line 20, in <module>
Jun 27 23:41:48 mxc python3[4105]:     from libs import __version__, daemon, utils
Jun 27 23:41:48 mxc python3[4105]:   File "/opt/iRedAPD-4.0/libs/utils.py", line 18, in <module>
Jun 27 23:41:48 mxc python3[4105]:     from web import sqlquote
Jun 27 23:41:48 mxc python3[4105]: ModuleNotFoundError: No module named 'web'
Jun 27 23:41:48 mxc systemd[1]: iredapd.service: Control process exited, code=exited status=1
Jun 27 23:41:48 mxc systemd[1]: iredapd.service: Failed with result 'exit-code'.
Jun 27 23:41:48 mxc systemd[1]: Failed to start iRedAPD (A simple posfix policy server).

mail.log:

Jun 27 23:54:58 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:54:58 mxc postfix/cleanup[3641]: warning: tcp:127.0.0.1:7778 lookup error for "netdata@MYSERVERDOMAINWASHERE"
Jun 27 23:54:58 mxc postfix/cleanup[3641]: warning: 49vVwn5Jbmz3wj1: sender_canonical_maps map lookup problem for netdata@MYSERVERDOMAINWASHERE -- message not accepted, try again later
Jun 27 23:54:58 mxc postfix/pickup[3049]: warning: maildrop/49vSdJ6pmkz3x24: error writing 49vVwn5Jbmz3wj1: queue file write error
Jun 27 23:54:58 mxc postfix/pickup[3049]: 49vVwy5LnXz3wj1: uid=0 from=<root>
Jun 27 23:54:58 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:54:59 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:54:59 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:00 mxc postfix/postscreen[3583]: CONNECT from [114.237.188.198]:4294 to [MYSERVERIPWASHERE]:25
Jun 27 23:55:00 mxc postfix/dnsblog[4390]: addr 114.237.188.198 listed by domain zen.spamhaus.org as 127.0.0.11
Jun 27 23:55:00 mxc postfix/dnsblog[4390]: addr 114.237.188.198 listed by domain zen.spamhaus.org as 127.0.0.4
Jun 27 23:55:00 mxc postfix/dnsblog[4390]: addr 114.237.188.198 listed by domain zen.spamhaus.org as 127.0.0.3
Jun 27 23:55:00 mxc postfix/dnsblog[6011]: addr 114.237.188.198 listed by domain b.barracudacentral.org as 127.0.0.2
Jun 27 23:55:00 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:55:00 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:01 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:55:01 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:02 mxc postfix/postscreen[3583]: CONNECT from [49.88.64.179]:9207 to [MYSERVERIPWASHERE]:25
Jun 27 23:55:02 mxc postfix/dnsblog[3585]: addr 49.88.64.179 listed by domain zen.spamhaus.org as 127.0.0.11
Jun 27 23:55:02 mxc postfix/dnsblog[3585]: addr 49.88.64.179 listed by domain zen.spamhaus.org as 127.0.0.4
Jun 27 23:55:02 mxc postfix/dnsblog[3585]: addr 49.88.64.179 listed by domain zen.spamhaus.org as 127.0.0.3
Jun 27 23:55:02 mxc postfix/dnsblog[3584]: addr 49.88.64.179 listed by domain b.barracudacentral.org as 127.0.0.2
Jun 27 23:55:02 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:55:02 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:03 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:55:03 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:04 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:55:04 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:05 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:55:05 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:06 mxc postfix/postscreen[3583]: DNSBL rank 5 for [114.237.188.198]:4294
Jun 27 23:55:06 mxc postfix/postscreen[3583]: DISCONNECT [114.237.188.198]:4294
Jun 27 23:55:06 mxc postfix/submission/smtpd[5731]: warning: connect to TCP map 127.0.0.1:7779: Connection refused
Jun 27 23:55:06 mxc postfix/submission/smtpd[5731]: warning: tcp:127.0.0.1:7779 lookup error for "EMAILWASHERE@EMAILDOMAINWASHERE"
Jun 27 23:55:06 mxc postfix/submission/smtpd[5731]: NOQUEUE: reject: RCPT from MYSERVERDOMAINWASHERE[127.0.0.1]: 451 4.3.0 <EMAILWASHERE@EMAILDOMAINWASHERE>: Temporary lookup failure; from=<EMAILWASHERE@EMAILDOMAINWASHERE> to=<EMAILWASHERE@EMAILDOMAINWASHERE> proto=ESMTP helo=<localhost>
Jun 27 23:55:06 mxc roundcube: <gomelc8i> PHP Error: Invalid response code received from server (POST /mail/?_task=mail&_unlock=loading1593302097072&_framed=1&_lang=en&_action=send)
Jun 27 23:55:06 mxc roundcube: <gomelc8i> SMTP Error: Failed to add recipient 'EMAILWASHERE@EMAILDOMAINWASHERE'. 4.3.0 <EMAILWASHERE@EMAILDOMAINWASHERE>: Temporary lookup failure (Code: 451) in /opt/www/roundcubemail-1.3.8/program/lib/Roundcube/rcube.php on line 1689 (POST /mail/?_t
ask=mail&_unlock=loading1593302097072&_framed=1&_lang=en&_action=send)
Jun 27 23:55:06 mxc postfix/submission/smtpd[5731]: disconnect from MYSERVERDOMAINWASHERE[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=7/8
Jun 27 23:55:06 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:07 mxc postfix/cleanup[3061]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:07 mxc postfix/cleanup[3061]: warning: tcp:127.0.0.1:7778 lookup error for "root@MYSERVERDOMAINWASHERE"
Jun 27 23:55:07 mxc postfix/cleanup[3061]: warning: 49vVwy5LnXz3wj1: sender_canonical_maps map lookup problem for root@MYSERVERDOMAINWASHERE -- message not accepted, try again later
Jun 27 23:55:07 mxc postfix/pickup[3049]: warning: maildrop/49vSQd1vv2z3x1p: error writing 49vVwy5LnXz3wj1: queue file write error
Jun 27 23:55:07 mxc postfix/pickup[3049]: 49vVx75PVHz3wj1: uid=0 from=<root>
Jun 27 23:55:07 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:08 mxc postfix/postscreen[3583]: DNSBL rank 5 for [49.88.64.179]:9207
Jun 27 23:55:08 mxc postfix/postscreen[3583]: DISCONNECT [49.88.64.179]:9207
Jun 27 23:55:08 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:09 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:10 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:11 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:12 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:13 mxc postfix/postscreen[3583]: CONNECT from [49.68.145.22]:1442 to [MYSERVERIPWASHERE]:25
Jun 27 23:55:13 mxc postfix/dnsblog[3585]: addr 49.68.145.22 listed by domain zen.spamhaus.org as 127.0.0.4
Jun 27 23:55:13 mxc postfix/dnsblog[3585]: addr 49.68.145.22 listed by domain zen.spamhaus.org as 127.0.0.3
Jun 27 23:55:13 mxc postfix/dnsblog[3585]: addr 49.68.145.22 listed by domain zen.spamhaus.org as 127.0.0.11
Jun 27 23:55:13 mxc postfix/dnsblog[3897]: addr 49.68.145.22 listed by domain b.barracudacentral.org as 127.0.0.2
Jun 27 23:55:13 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:14 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused
Jun 27 23:55:15 mxc postfix/cleanup[3641]: warning: connect to TCP map 127.0.0.1:7778: Connection refused

----

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

2

Re: Mail Server stoped working after update 1.1->1.2 (iRedAPD 4) [SOLVED]

For anyone who will face this issue - My system had no python3-pip installed, which made troubles during update and iRedAPD to fail.

Zhang will fix this in future releases, but for now easy fix for root:
1. apt install python3-pip
2. pip3 install web.py>=0.51

3

Re: Mail Server stoped working after update 1.1->1.2 (iRedAPD 4) [SOLVED]

Thanks for sharing. This has been fixed in the re-packed iRedAPD-4.0, the upgrade script "tools/upgrade_iredapd.sh" will handle this for you.