Recent electric failure result make my mail server down. After reboot, doing fsck -y and so on. Restart again email still down.
After see the log, action taken to make mail server up as fast as I can.
mail# tail -f /var/log/maillog
Nov 7 08:01:18 mail postfix/smtpd[6714]: lost connection after RCPT from 125-26-188-139.adsl.totbb.net[125.26.188.139]
Nov 7 08:01:18 mail postfix/smtpd[6714]: disconnect from 125-26-188-139.adsl.totbb.net[125.26.188.139]
Nov 7 08:01:19 mail postfix/smtpd[6693]: disconnect from mx42.publicitycountry.com[66.90.82.42]
Nov 7 08:01:20 mail amavis[6519]: (06519-02) ClamAV-clamd av-scanner FAILED: Too many retries to talk to
/var/run/clamav/clamd (Can’t connect to UNIX socket
/var/run/clamav/clamd: Permission denied) at (eval 56) line 257.
Nov 7 08:01:20 mail amavis[6519]: (06519-02) WARN: all primary virus scanners failed,
considering backups
Nov 7 08:01:20 mail postfix/smtpd[6647]: connect from
mx42.publicitycountry.com[66.90.82.42]
Nov 7 08:01:21 mail postfix/smtpd[6711]: warning: 133.23.189.81.list.dsbl.org: RBL lookup
error: Host or domain name not found. Name service error for
name=133.23.189.81.list.dsbl.org type=A: Host not found, try again
Nov 7 08:01:21 mail amavis[6544]: (06544-02) ClamAV-clamd av-scanner FAILED: Too many
retries to talk to /var/run/clamav/clamd (Can’t connect to UNIX socket
/var/run/clamav/clamd: Permission denied) at (eval 56) line 257.
Nov 7 08:01:21 mail amavis[6544]: (06544-02) WARN: all primary virus scanners failed,
considering backups
Nov 7 08:01:22 mail postfix/smtpd[6711]: DC0E24112DF:
client=dsl-23-133.utaonline.at[ 81.189.23.133]
Nov 7 08:01:22 mail postfix/smtpd[6711]: lost connection after RCPT from
dsl-23-133.utaonline.at[81.189.23.133]
Nov 7 08:01:22 mail postfix/smtpd[6711]: disconnect from
dsl-23-133.utaonline.at[81.189.23.133]
try to start manually.
mail# /usr/local/etc/rc.d/clamav
clamav_clamd not running? (check /var/run/clamav/clamd.pid).
Starting clamav_clamd.
mail# /usr/local/etc/rc.d/clamav
clamav_clamd not running? (check /var/run/clamav/clamd.pid).
Starting clamav_clamd.
Change ownership of clamav to vscan
mail# chown vscan:vscan clamav
mail# ls -l
total 36
-rw——- 1 root wheel 0 Nov 7 04:11 accept.lock.967
drwxr-x— 2 vscan vscan 512 Nov 7 07:59 clamav
mail# /usr/local/etc/rc.d/clamav
clamav_clamd not running? (check /var/run/clamav/clamd.pid).
Starting clamav_clamd.
testing
mail# /usr/local/etc/rc.d/clamav
Stopping clamav_clamd.
Waiting for PIDS: 7074.
Starting clamav_clamd.
mail# chown vscan:vscan /var/log/clamav/clamd.log
mail# chown vscan:vscan /var/log/clamav/freshclam.log
mail# /usr/local/etc/rc.d/clamav
Stopping clamav_clamd.
Waiting for PIDS: 7092.
Starting clamav_clamd.
mail# /usr/local/etc/rc.d/clamav
clamav_freshclam not running? (check /var/run/clamav/freshclam.pid).
Starting clamav_freshclam.
mail# /usr/local/sbin/amavisd start
Done, permission error.
Once again in server 🙂
Log is your friend.