Topic: amavis error in mail.log
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Debian GNU/Linux 9.12 (stretch)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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 had to restart my mail server today and noticed the below errors in the mail.log when starting. Mail is going in/out fine.
Jun 8 18:02:04 mailserver amavis[1801]: Using primary internal av scanner code for clamav-socket
Jun 8 18:02:04 mailserver amavis[1801]: Found secondary av scanner clamav-clamscan at /usr/bin/clamscan
Jun 8 18:02:20 mailserver amavis[1838]: (01838-01) (!)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
Jun 8 18:02:21 mailserver amavis[1838]: (01838-01) (!)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
Jun 8 18:02:21 mailserver amavis[1838]: (01838-01) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jun 8 18:02:24 mailserver amavis[1838]: (01838-01) (!)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
Jun 8 18:02:24 mailserver amavis[1838]: (01838-01) (!)clamav-socket 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 113) line 613.\n
Jun 8 18:02:24 mailserver amavis[1838]: (01838-01) (!)WARN: all primary virus scanners failed, considering backups
Jun 8 18:02:32 mailserver amavis[1839]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: POST / HTTP/1.1\r\n
Jun 8 18:02:32 mailserver amavis[1839]: (!!)policy_server FAILED: Missing 'request' field at (eval 105) line 196, <GEN32> line 7.
Jun 8 18:02:33 mailserver amavis[1839]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: [{"version": "1.1", "params": [], "id": 0, "method": "getmempoolinfo"}, {"version": "1.1", "params": [], "id": 1, "method": "getnetworkinfo"}, {"version": "1.1", "params": [], "id": 2, "method": "getblockchaininfo"}, {"version": "1.1", "params": [], "id": 3, "method": "getmemoryinfo"}, {"version": "1.1", "params": [], "id": 4, "method": "gettxoutsetinfo"}]
Jun 8 18:02:33 mailserver amavis[1840]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: POST / HTTP/1.1\r\n
Jun 8 18:02:33 mailserver amavis[1840]: (!!)policy_server FAILED: Missing 'request' field at (eval 105) line 196, <GEN32> line 7.
Jun 8 18:02:34 mailserver amavis[1840]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: [{"version": "1.1", "params": [], "id": 0, "method": "getmempoolinfo"}, {"version": "1.1", "params": [], "id": 1, "method": "getnetworkinfo"}, {"version": "1.1", "params": [], "id": 2, "method": "getblockchaininfo"}, {"version": "1.1", "params": [], "id": 3, "method": "getmemoryinfo"}, {"version": "1.1", "params": [], "id": 4, "method": "gettxoutsetinfo"}]
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.