Topic: Something wrong through sending mail
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Linux testmail 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? No
====
Oct 20 15:00:24 testmail postfix/pickup[2516]: 92EB320C6A: uid=0 from=<root>
Oct 20 15:00:24 testmail postfix/cleanup[2581]: 92EB320C6A: message-id=<20161020150024.92EB320C6A@testmail.domain.tld>
Oct 20 15:00:24 testmail postfix/qmgr[2517]: 92EB320C6A: from=<root@domain.tld>, size=371, nrcpt=1 (queue active)
Oct 20 15:00:24 testmail amavis[1476]: (01476-02) (!)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
Oct 20 15:00:25 testmail amavis[1476]: (01476-02) (!)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
Oct 20 15:00:25 testmail amavis[1476]: (01476-02) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Oct 20 15:00:31 testmail amavis[1476]: (01476-02) (!)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
Oct 20 15:00:31 testmail amavis[1476]: (01476-02) (!)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 103) line 613.\n
Oct 20 15:00:31 testmail amavis[1476]: (01476-02) (!)WARN: all primary virus scanners failed, considering backups
Oct 20 15:00:31 testmail amavis[1476]: (01476-02) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.99.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.004 sec (0 m 0 s)"
Oct 20 15:00:31 testmail amavis[1476]: (01476-02) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.99.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.004 sec (0 m 0 s)" at (eval 103) line 905.
Oct 20 15:00:31 testmail amavis[1476]: (01476-02) (!!)AV: ALL VIRUS SCANNERS FAILED
Oct 20 15:00:31 testmail postfix/smtpd[2591]: connect from unknown[127.0.0.1]
Oct 20 15:00:31 testmail postfix/smtpd[2591]: E554520C67: client=unknown[127.0.0.1]
Oct 20 15:00:31 testmail postfix/cleanup[2581]: E554520C67: message-id=<20161020150024.92EB320C6A@testmail.domain.tld>
Oct 20 15:00:31 testmail postfix/qmgr[2517]: E554520C67: from=<root@domain.tld>, size=1409, nrcpt=1 (queue active)
Oct 20 15:00:31 testmail postfix/smtpd[2591]: disconnect from unknown[127.0.0.1]
something with clamav..
root@testmail:~# service clamav-daemon restart
root@testmail:~# service clamav-daemon status
● clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled)
Active: inactive (dead)
start condition failed at Thu 2016-10-20 15:16:19 UTC; 2s ago
ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc} was not met
Docs: man:clamd(8)
man:clamd.conf(5)
http://www.clamav.net/lang/en/doc/
Oct 20 13:17:53 testmail.domain.tld systemd[1]: Started Clam AntiVirus userspace daemon.
Oct 20 14:33:28 testmail.domain.tld systemd[1]: Started Clam AntiVirus userspace daemon.
Oct 20 14:33:57 testmail.domain.tld systemd[1]: Started Clam AntiVirus userspace daemon.
Oct 20 15:16:19 testmail.domain.tld systemd[1]: Started Clam AntiVirus userspace daemon.
freshclam
root@testmail:~# service clamav-freshclam status
● clamav-freshclam.service - ClamAV virus database updater
Loaded: loaded (/lib/systemd/system/clamav-freshclam.service; enabled)
Active: active (running) since Thu 2016-10-20 13:17:53 UTC; 1h 59min ago
Docs: man:freshclam(1)
man:freshclam.conf(5)
http://www.clamav.net/lang/en/doc/
Main PID: 499 (freshclam)
CGroup: /system.slice/clamav-freshclam.service
└─499 /usr/bin/freshclam -d --foreground=true
Oct 20 13:17:53 testmail.domain.tld systemd[1]: Started ClamAV virus database updater.
Oct 20 13:17:54 testmail.domain.tld freshclam[499]: ClamAV update process started at Thu Oct 20 13:17:54 2016
Oct 20 13:17:57 testmail.domain.tld freshclam[499]: Downloading main.cvd [100%]
Oct 20 13:18:15 testmail.domain.tld freshclam[499]: ERROR: Database load killed by signal 9
Oct 20 13:18:15 testmail.domain.tld freshclam[499]: ERROR: Failed to load new database
Oct 20 14:18:15 testmail.domain.tld freshclam[499]: Received signal: wake up
Oct 20 14:18:15 testmail.domain.tld freshclam[499]: ClamAV update process started at Thu Oct 20 14:18:15 2016
Oct 20 14:18:19 testmail.domain.tld freshclam[499]: Downloading main.cvd [100%]
Oct 20 14:18:27 testmail.domain.tld freshclam[499]: ERROR: Database load killed by signal 9
Oct 20 14:18:27 testmail.domain.tld freshclam[499]: ERROR: Failed to load new database
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.