1

Topic: errors in maillog after recent amavis update

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 MYSQL edition.
- Deployed with iRedMail Easy or the downloadable installer? Downloaded
- Linux/BSD distribution name and version: FreeBSD 12.1
- 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.
====
Dear All,
After a recent update of  amavis to 2.12.0,1 I have started to see the following log message on startup

Dec 15 18:30:57 mail postfix/postfix-script[42277]: starting the Postfix mail system
Dec 15 18:30:57 mail postfix/master[42279]: daemon started -- version 3.4.8, configuration /usr/local/etc/postfix
Dec 15 18:30:58 mail amavis[42151]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: POST / HTTP/1.1\r\n
Dec 15 18:30:58 mail amavis[42151]: (!!)policy_server FAILED: Missing 'request' field at (eval 102) line 197, <GEN21> line 7.
Dec 15 18:30:59 mail amavis[42151]: (!)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"}]

The mail is getting delivered without any obvious problem.


Also, although I know this is probably unrelated, I am seeing this. it came about at the same time after update, during which dovecot was updated to 2.3.9.2

Dec 15 18:33:38 mail postfix/pipe[42771]: 2192248239: to=<XXX@xxx.xx>, relay=dovecot, delay=0.22, delays=0.01/0.01/0/0.2, dsn=2.0.0, status=sent (delivered via dovecot service (lda(XXX@xxx.xx): Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied))

Why is this happening?

Best regards,
T

----

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

2

Re: errors in maillog after recent amavis update

detomassino wrote:

Dec 15 18:33:38 mail postfix/pipe[42771]: 2192248239: to=<XXX@xxx.xx>, relay=dovecot, delay=0.22, delays=0.01/0.01/0/0.2, dsn=2.0.0, status=sent (delivered via dovecot service (lda(XXX@xxx.xx): Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied))

Make sure you have updated Dovecot config file (dovecot.conf) to use new "stats" plugin, or, rename stats plugin to use old stats plugin. FYI:
https://docs.iredmail.org/upgrade.dovecot.2.2-2.3.html

3

Re: errors in maillog after recent amavis update

Hello Zhang,
Thank you for your response.
I have done that. The problem was as you discussed here.


https://forum.iredmail.org/post67042.html#p67042


All  working well now. Many thanks.
T