1 (edited by dcihon 2019-12-15 22:39:01)

Topic: Accidently updated to buster

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Deployed with iRedMail Easy or the downloadable installer? downloaded
- Linux/BSD distribution name and version: was debian 9 now 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): msql
- 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 did an dist-upgrade not thinking I was going to buster but my system said use stable and now I am on 10.
My roundcube definitely is not showing my mail and I think the server is getting mail.
I tried thunderbird also and can't get see mail there either.
Can this be fixed?
Can I save my mail somehow and reinstall and reload my mail back in?
Where do I need to start with troubleshooting this issue?
Thanks
Dan

I sent myself an email and I see this in the mail.log file

Dec 14 15:07:07 mail postfix/postscreen[7466]: CONNECT from [71.14.247.21]:42899 to [192.168.68.21]:25
Dec 14 15:07:13 mail postfix/postscreen[7466]: PASS NEW [71.14.247.21]:42899
Dec 14 15:07:13 mail postfix/smtpd[7476]: connect from spamfilter.iconmech.com[71.14.247.21]
Dec 14 15:07:13 mail postfix/smtpd[7476]: Anonymous TLS connection established from spamfilter.iconmech.com[71.14.247.21]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Dec 14 15:07:13 mail postfix/smtpd[7476]: E9D1880BE1: client=spamfilter.iconmech.com[71.14.247.21]
Dec 14 15:07:13 mail postfix/cleanup[7480]: E9D1880BE1: message-id=<F9B49E80-EB9D-47AF-859B-C72952917507@iconmech.com>
Dec 14 15:07:14 mail postfix/qmgr[1170]: E9D1880BE1: from=<DCihon@iconmech.com>, size=2144, nrcpt=1 (queue active)
Dec 14 15:07:14 mail postfix/smtpd[7476]: disconnect from spamfilter.iconmech.com[71.14.247.21] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Dec 14 15:07:14 mail amavis[1402]: (01402-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Dec 14 15:07:15 mail amavis[1402]: (01402-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Dec 14 15:07:15 mail amavis[1402]: (01402-03) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Dec 14 15:07:21 mail amavis[1402]: (01402-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Dec 14 15:07:21 mail amavis[1402]: (01402-03) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 114) line 659.\n
Dec 14 15:07:21 mail amavis[1402]: (01402-03) (!)WARN: all primary virus scanners failed, considering backups

----

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

2

Re: Accidently updated to buster

ClamAV service is not running, check its log file (and /var/log/syslog) to figure out why it failed to start, fix it and restart the service. Then mail services should be normal if no other issues.

3 (edited by dcihon 2019-12-15 22:39:36)

Re: Accidently updated to buster

ZhangHuangbin wrote:

ClamAV service is not running, check its log file (and /var/log/syslog) to figure out why it failed to start, fix it and restart the service. Then mail services should be normal if no other issues.

Seeing this when restarting the server and looking at the mail.log file.

root@mail:~# tail -f /var/log/mail.log
Dec 15 08:03:40 mail amavis-mc[1368]: Process [1560] exited (/usr/sbin/amavis-services snmp-responder) after 0.1 s: exit 2
Dec 15 08:03:45 mail amavis-mc[1368]: Process [1713] started: /usr/sbin/amavis-services msg-forwarder
Dec 15 08:03:45 mail amavis-mc[1368]: Process [1714] started: /usr/sbin/amavis-services childproc-minder
Dec 15 08:03:45 mail amavis-mc[1368]: Process [1715] started: /usr/sbin/amavis-services snmp-responder
Dec 15 08:03:45 mail amavis-mc[1368]: Process [1713] exited (/usr/sbin/amavis-services msg-forwarder) after 0.0 s: exit 2
Dec 15 08:03:45 mail amavis-mc[1368]: Exceeded restart count, giving up on (/usr/sbin/amavis-services msg-forwarder)
Dec 15 08:03:45 mail amavis-mc[1368]: Process [1715] exited (/usr/sbin/amavis-services snmp-responder) after 0.0 s: exit 2
Dec 15 08:03:45 mail amavis-mc[1368]: Exceeded restart count, giving up on (/usr/sbin/amavis-services snmp-responder)
Dec 15 08:03:45 mail amavis-mc[1368]: Process [1714] exited (/usr/sbin/amavis-services childproc-minder) after 0.0 s: exit 2
Dec 15 08:03:45 mail amavis-mc[1368]: Exceeded restart count, giving up on (/usr/sbin/amavis-services childproc-minder)

Looks like I have all kinds of issues that are pretty complicated to fix. (see below)

Is there a way I can save all my mail , reinstall iredmail and put the mail back on the server?

doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:43: ssl_protocols has been replaced by ssl_min_protocol
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:54: ssl_dh_parameters_length is no longer needed
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:43: ssl_protocols has been replaced by ssl_min_protocol
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:54: ssl_dh_parameters_length is no longer needed
doveconf: Warning: please set ssl_dh=</etc/dovecot/dh.pem
doveconf: Warning: You can generate it with: dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > /etc/dovecot/dh.pem

More errors:

Dec 15 08:34:05 mail postfix/qmgr[1151]: 2EAFE80379: from=<DCihon@iconmech.com>, size=2145, nrcpt=1 (queue active)
Dec 15 08:34:06 mail postfix/amavis/smtp[1155]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Dec 15 08:34:06 mail postfix/amavis/smtp[1155]: 2EAFE80379: to=<danc@dccathome.com>, relay=none, delay=686, delays=686/0.4/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Dec 15 08:34:06 mail postfix/proxymap[1153]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 with dn cn=vmail,dc=dccathome,dc=com: -1 (Can't contact LDAP server)
Dec 15 08:34:06 mail postfix/amavis/smtp[1155]: warning: fast_flush_domains: proxy:ldap:/etc/postfix/ldap/relay_domains.cf: table lookup problem
Dec 15 08:34:06 mail postfix/amavis/smtp[1155]: warning: 2EAFE80379: flush service failure
Dec 15 08:35:07 mail roundcube: PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php:144#012Stack trace:#012#0 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(152): rcube_db_mysql->dsn_options(Array)#012#1 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(137): rcube_db->conn_create(Array)#012#2 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(230): rcube_db->dsn_connect(Array, 'w')#012#3 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(416): rcube_db->db_connect('w', true)#012#4 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(379): rcube_db->_query('SELECT `vars`, ...', 0, 0, Array)#012#5 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session_db.php(100): rcube_db->query('SELECT `vars`, ...', 's93jd54217kgb4f...')#012#6 [internal function]: rcube_session_db->read('s93jd54217kgb4f...')#012#7 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session.php(129): session_start()#012#8 /opt/www/roundc in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php on line 144
Dec 15 08:35:07 mail roundcube: PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php:144#012Stack trace:#012#0 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(152): rcube_db_mysql->dsn_options(Array)#012#1 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(137): rcube_db->conn_create(Array)#012#2 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(230): rcube_db->dsn_connect(Array, 'w')#012#3 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(416): rcube_db->db_connect('w', true)#012#4 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(379): rcube_db->_query('INSERT INTO `se...', 0, 0, Array)#012#5 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session_db.php(131): rcube_db->query('INSERT INTO `se...', 's93jd54217kgb4f...', '', '192.168.68.21')#012#6 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session.php(165): rcube_session_db->write('s93jd54217kgb4f...', '')#012#7 [internal function]: rcube_se in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php on line 144
Dec 15 08:35:18 mail roundcube: PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php:144#012Stack trace:#012#0 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(152): rcube_db_mysql->dsn_options(Array)#012#1 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(137): rcube_db->conn_create(Array)#012#2 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(230): rcube_db->dsn_connect(Array, 'w')#012#3 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(416): rcube_db->db_connect('w', true)#012#4 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(379): rcube_db->_query('SELECT `vars`, ...', 0, 0, Array)#012#5 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session_db.php(100): rcube_db->query('SELECT `vars`, ...', 's93jd54217kgb4f...')#012#6 [internal function]: rcube_session_db->read('s93jd54217kgb4f...')#012#7 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session.php(129): session_start()#012#8 /opt/www/roundc in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php on line 144
Dec 15 08:35:18 mail roundcube: PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php:144#012Stack trace:#012#0 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(152): rcube_db_mysql->dsn_options(Array)#012#1 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(137): rcube_db->conn_create(Array)#012#2 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(230): rcube_db->dsn_connect(Array, 'w')#012#3 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(416): rcube_db->db_connect('w', true)#012#4 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php(379): rcube_db->_query('INSERT INTO `se...', 0, 0, Array)#012#5 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session_db.php(131): rcube_db->query('INSERT INTO `se...', 's93jd54217kgb4f...', '', '192.168.68.21')#012#6 /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_session.php(165): rcube_session_db->write('s93jd54217kgb4f...', '')#012#7 [internal function]: rcube_se in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db_mysql.php on line 144

4

Re: Accidently updated to buster

- Service "slapd" (OpenLDAP), amavis are not running.
- You need to fix Dovecot config file too: https://docs.iredmail.org/upgrade.dovecot.2.2-2.3.html