1

Topic: 1.0-beta1 Report: Amavis rules errors

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0-beta1
- Deployed with iRedMail Easy or the downloadable installer? stand alone
- Linux/BSD distribution name and version: FreeBSD 12.0-RELEASE-p10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- 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.
====

Oct  4 22:33:03 server amavis[702]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: POST / HTTP/1.1\r\n
Oct  4 22:33:03 server amavis[702]: (!!)policy_server FAILED: Missing 'request' field at (eval 102) line 197, <GEN18> line 7.
Oct  4 22:33:04 server amavis[702]: (!)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"}]

Note: Error also present on 0.9.9.

----

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

2

Re: 1.0-beta1 Report: Amavis rules errors

Could you please run "sa-update -D" first, make sure it successfully updated SpamAssassin rules, then restart Amavisd service and check whether this amavisd error still happen?

3

Re: 1.0-beta1 Report: Amavis rules errors

ZhangHuangbin wrote:

Could you please run "sa-update -D" first, make sure it successfully updated SpamAssassin rules, then restart Amavisd service and check whether this amavisd error still happen?

- After running `sa-update -D` (no erros) and restarting the server:

Oct  8 11:16:59 server amavis[17222]: starting. /usr/local/sbin/amavisd at server.... amavisd-new-2.12.0 (2019072
5), Unicode aware
Oct  8 11:16:59 server amavis[17222]: perl=5.030000, user=, EUID: 110 (110);  group=, EGID: 110 110 (110 110)
Oct  8 11:16:59 server amavis[17820]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Oct  8 11:16:59 server amavis[17820]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Oct  8 11:17:00 server amavis[17820]: No ext program for   .F, tried: unfreeze, freeze -d, melt, fcat
Oct  8 11:17:00 server amavis[17820]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Oct  8 11:17:00 server amavis[17820]: No decoder for       .F
Oct  8 11:17:00 server amavis[17820]: No decoder for       .lrz
Oct  8 11:17:00 server amavis[17820]: Using primary internal av scanner code for clamav-socket
Oct  8 11:17:00 server amavis[17820]: Found secondary av scanner clamav-clamscan at /usr/local/bin/clamscan

- Now rebooting the server

Oct  8 11:31:51 server postfix/postfix-script[30317]: stopping the Postfix mail system
Oct  8 11:31:51 server postfix/master[87244]: terminating on signal 15
Oct  8 11:32:34 server amavis[61065]: starting. /usr/local/sbin/amavisd at server.... amavisd-new-2.12.0 (2019072
5), Unicode aware
Oct  8 11:32:34 server amavis[61065]: perl=5.030000, user=, EUID: 110 (110);  group=, EGID: 110 110 (110 110)
Oct  8 11:32:34 server amavis[61795]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Oct  8 11:32:34 server amavis[61795]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Oct  8 11:32:34 server amavis[61795]: No ext program for   .F, tried: unfreeze, freeze -d, melt, fcat
Oct  8 11:32:34 server amavis[61795]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Oct  8 11:32:34 server amavis[61795]: No decoder for       .F
Oct  8 11:32:34 server amavis[61795]: No decoder for       .lrz
Oct  8 11:32:34 server amavis[61795]: Using primary internal av scanner code for clamav-socket
Oct  8 11:32:34 server amavis[61795]: Found secondary av scanner clamav-clamscan at /usr/local/bin/clamscan
Oct  8 11:33:37 server postfix/postfix-script[18202]: starting the Postfix mail system
Oct  8 11:33:37 server postfix/master[18940]: daemon started -- version 3.4.7, configuration /usr/local/etc/postfix
Oct  8 11:33:41 server amavis[67389]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: POST / HTTP/1.1\r\n
Oct  8 11:33:41 server amavis[67389]: (!!)policy_server FAILED: Missing 'request' field at (eval 102) line 197, <GEN18> line 7.
Oct  8 11:33:42 server amavis[67389]: (!)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"}]

BTW: Is the database update (`sa-update -D`) scheduled on cron or has to be run manually?

Thanks!

4

Re: 1.0-beta1 Report: Amavis rules errors

angeloklin wrote:

BTW: Is the database update (`sa-update -D`) scheduled on cron or has to be run manually?

It's done by daily cron job. You do not need to run it manually. I just want to make sure SpamAssassin has rule files.

I'm not sure what kind of Amavisd issue/bug it is, but seems it works for further mail requests. Could you please try it?

5

Re: 1.0-beta1 Report: Amavis rules errors

ZhangHuangbin wrote:
angeloklin wrote:

BTW: Is the database update (`sa-update -D`) scheduled on cron or has to be run manually?

It's done by daily cron job. You do not need to run it manually. I just want to make sure SpamAssassin has rule files.

I'm not sure what kind of Amavisd issue/bug it is, but seems it works for further mail requests. Could you please try it?

This error message is in the logs at startup. It is not related with message activities as far as I can tell.
What is you are suggesting me to try specifically?

Thanks.

6

Re: 1.0-beta1 Report: Amavis rules errors

Try to send some testing emails, check whether Amavisd service works fine.