1

Topic: amavis error on restart

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0
- Deployed with iRedMail Easy or the downloadable installer? downloaded
- Linux/BSD distribution name and version: Freebsd 12.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):ngins
- Manage mail accounts with iRedAdmin-Pro?no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello All,

After a recent upgrade I have this error in maillog after restart.
Mail is being delivered without a problem and it doesn't happen when I restart amavis.

Feb  8 21:28:10 mail amavis[41453]: (!)policy protocol: INVALID AM.PDP ATTRIBUTE LINE: POST / HTTP/1.1\r\n
Feb  8 21:28:10 mail amavis[41453]: (!!)policy_server FAILED: Missing 'request' field at (eval 102) line 197, <GEN18> line 7.
Feb  8 21:28:11 mail amavis[41453]: (!)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"}]

There is a similar issue described here but I don't plugin mention enabled or at least I can't find. N.B. I use netdata on freebsd so the config differs.


https://github.com/iredmail/iRedMail/issues/2


Is it the same issue?

----

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

2

Re: amavis error on restart

Same issue. Check the latest reply and update same netdata config file (but different path) on freebsd manually to fix it.
https://github.com/iredmail/iRedMail/is … -568352163

3

Re: amavis error on restart

Thank you, Zhang.

I tried to set it but this plugin does not seem to even be installed. 
I  will try to play with it a bit more to find a way.

Best regards,
T

4

Re: amavis error on restart

netdata will try to detect all services it supported, so it also tries to detect whether "energid" service is running by sending http request to the network port.

The fix is simple, explicitly tell netdata not to check energid service by adding "energid: no" in the python.d.conf and go.d.conf.