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