1 (edited by christophk 2017-01-24 06:25:17)

Topic: Error during update of amavisd.conf

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1 (trying to get to 0.9.6)
- Linux/BSD distribution name and CentOS 7.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? - no
- Related log if you're reporting an issue:
====

Hmmmm,

The service amavisd does not start anymore since I tried to update the amavisd.conf
"Add more banned file types/extensions in Amavisd."

Also when I go back to the backed up conf file, I receive the following error message...

_____________________________

systemctl status amavisd.service

● amavisd.service - Amavisd-new is an interface between MTA and content checkers.
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mon 2017-01-23 22:47:46 CET; 2min 10s ago
     Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 13545 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=13)
Main PID: 9226 (code=exited, status=0/SUCCESS)

Jan 23 22:47:45 office.example.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Jan 23 22:47:45 office.example.com systemd[1]: Unit amavisd.service entered failed state.
Jan 23 22:47:45 office.example.com systemd[1]: amavisd.service failed.
Jan 23 22:47:46 office.example.com systemd[1]: amavisd.service holdoff time over, scheduling restart.
Jan 23 22:47:46 office.example.com systemd[1]: start request repeated too quickly for amavisd.service
Jan 23 22:47:46 office.example.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Jan 23 22:47:46 office.example.com systemd[1]: Unit amavisd.service entered failed state.
Jan 23 22:47:46 office.example.com systemd[1]: amavisd.service failed.
____________________________

When I try:

amavisd reload

-->
Config file "/etc/amavisd.conf" does not exist, at /usr/sbin/amavisd line 2150.

----

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

2

Re: Error during update of amavisd.conf

It does not work anymore.

There went my mailserver...

● amavisd.service - Amavisd-new is an interface between MTA and content checkers.
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Mon 2017-01-23 23:14:30 CET; 11min ago
     Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 11180 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=255)

Jan 23 23:14:30 office.example.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Jan 23 23:14:30 office.example.com systemd[1]: Unit amavisd.service entered failed state.
Jan 23 23:14:30 office.example.com systemd[1]: amavisd.service failed.
Jan 23 23:14:30 office.example.com systemd[1]: amavisd.service holdoff time over, scheduling restart.
Jan 23 23:14:30 office.example.com systemd[1]: start request repeated too quickly for amavisd.service
Jan 23 23:14:30 office.example.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Jan 23 23:14:30 office.example.com systemd[1]: Unit amavisd.service entered failed state.
Jan 23 23:14:30 office.example.com systemd[1]: amavisd.service failed.

3

Re: Error during update of amavisd.conf

This is the maillog:

Jan 23 23:14:00 office clamd[958]: Pid file removed.
Jan 23 23:14:00 office clamd[958]: --- Stopped at Mon Jan 23 23:14:00 2017
Jan 23 23:14:00 office clamd[958]: Socket file removed.
Jan 23 23:14:27 office clamd[11163]: Received 0 file descriptor(s) from systemd.
Jan 23 23:14:27 office clamd[11163]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Jan 23 23:14:27 office clamd[11163]: Running as user amavis (UID 990, GID 988)
Jan 23 23:14:27 office clamd[11163]: Log file size limited to 1048576 bytes.
Jan 23 23:14:27 office clamd[11163]: Reading databases from /var/lib/clamav
Jan 23 23:14:27 office clamd[11163]: Not loading PUA signatures.
Jan 23 23:14:27 office clamd[11163]: Bytecode: Security mode set to "TrustSigned".
Jan 23 23:14:36 office clamd[11163]: Loaded 5636303 signatures.
Jan 23 23:14:38 office clamd[11163]: LOCAL: Unix socket file /var/run/clamd.amavisd/clamd.socket
Jan 23 23:14:38 office clamd[11163]: LOCAL: Setting connection queue length to 200
Jan 23 23:14:38 office clamd[11163]: Limits: Global size limit set to 104857600 bytes.
Jan 23 23:14:38 office clamd[11163]: Limits: File size limit set to 26214400 bytes.
Jan 23 23:14:38 office clamd[11163]: Limits: Recursion level limit set to 16.
Jan 23 23:14:38 office clamd[11163]: Limits: Files limit set to 10000.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxEmbeddedPE limit set to 10485760 bytes.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxHTMLNormalize limit set to 10485760 bytes.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxHTMLNoTags limit set to 2097152 bytes.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxScriptNormalize limit set to 5242880 bytes.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxZipTypeRcg limit set to 1048576 bytes.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxPartitions limit set to 50.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxIconsPE limit set to 100.
Jan 23 23:14:38 office clamd[11163]: Limits: MaxRecHWP3 limit set to 16.
Jan 23 23:14:38 office clamd[11163]: Limits: PCREMatchLimit limit set to 10000.
Jan 23 23:14:38 office clamd[11163]: Limits: PCRERecMatchLimit limit set to 5000.
Jan 23 23:14:38 office clamd[11163]: Limits: PCREMaxFileSize limit set to 26214400.
Jan 23 23:14:38 office clamd[11163]: Archive support enabled.
Jan 23 23:14:38 office clamd[11163]: Algorithmic detection enabled.
Jan 23 23:14:38 office clamd[11163]: Portable Executable support enabled.
Jan 23 23:14:38 office clamd[11163]: ELF support enabled.
Jan 23 23:14:38 office clamd[11163]: Mail files support enabled.
Jan 23 23:14:38 office clamd[11163]: OLE2 support enabled.
Jan 23 23:14:38 office clamd[11163]: PDF support enabled.
Jan 23 23:14:38 office clamd[11163]: SWF support enabled.
Jan 23 23:14:38 office clamd[11163]: HTML support enabled.
Jan 23 23:14:38 office clamd[11163]: XMLDOCS support enabled.
Jan 23 23:14:38 office clamd[11163]: HWP3 support enabled.
Jan 23 23:14:38 office clamd[11163]: Self checking every 600 seconds.
Jan 23 23:14:52 office clamd[11163]: Pid file removed.
Jan 23 23:14:52 office clamd[11163]: --- Stopped at Mon Jan 23 23:14:52 2017
Jan 23 23:14:52 office clamd[11163]: Socket file removed.
Jan 23 23:15:00 office postfix/anvil[11035]: statistics: max connection rate 1/60s for (smtpd:173.203.187.122) at Jan 23 23:11:38
Jan 23 23:15:00 office postfix/anvil[11035]: statistics: max connection count 1 for (smtpd:173.203.187.122) at Jan 23 23:11:38
Jan 23 23:15:00 office postfix/anvil[11035]: statistics: max cache size 1 at Jan 23 23:11:38
Jan 23 23:18:48 office postfix/qmgr[3498]: A5DF0180F69D23: from=<user@myserver.com>, size=3584, nrcpt=1 (queue active)
Jan 23 23:18:48 office postfix/qmgr[3498]: 5DB6A180013720: from=<user@otherserver.com, size=15245, nrcpt=1 (queue active)
Jan 23 23:18:48 office postfix/smtp[11246]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jan 23 23:18:48 office postfix/smtp[11246]: A5DF0180F69D23: to=<user@otherserver.com>, relay=none, delay=1118, delays=1118/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Jan 23 23:18:48 office postfix/smtp[11248]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jan 23 23:18:48 office postfix/smtp[11248]: 5DB6A180013720: to=<user@myserver.com>, relay=none, delay=429, delays=429/0.04/0.44/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Jan 23 23:22:08 office postfix/scache[11251]: statistics: start interval Jan 23 23:18:48
Jan 23 23:22:08 office postfix/scache[11251]: statistics: domain lookup hits=0 miss=1 success=0%
Jan 23 23:22:08 office postfix/scache[11251]: statistics: address lookup hits=0 miss=1 success=0%
Jan 23 23:28:48 office postfix/qmgr[3498]: 5DB6A180013720: from=<user@otherserver.com, size=15245, nrcpt=1 (queue active)
Jan 23 23:28:48 office postfix/smtp[11417]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jan 23 23:28:48 office postfix/smtp[11417]: 5DB6A180013720: to=<user@myserver.com>, relay=none, delay=1029, delays=1029/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

4

Re: Error during update of amavisd.conf

SOLVED:

It looked like a permission problem:

[root@office log]# journalctl -xe
-- Unit amavisd.service has begun starting up.
Jan 23 23:37:49 office.yna11.com amavisd[11715]: Config file "/etc/amavisd/amavisd.conf" should not be owned by EUID 990, at /usr/sbin/amavisd line 2150.
Jan 23 23:37:49 office.yna11.com systemd[1]: amavisd.service: control process exited, code=exited status=255
Jan 23 23:37:49 office.yna11.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
-- Subject: Unit amavisd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li … temd-devel
--
-- Unit amavisd.service has failed.
--
-- The result is failed.


___________________________

ls -l /etc/amavisd/

-rw-r----- 1 amavis amavis 28238 Jan 23 23:09 amavisd.conf
-rw-r--r-- 1 root   root   36776 Nov 29 19:32 amavisd.conf.2016.11.29.19.28.49
-rw-r----- 1 root   root   28238 Jan  2 20:59 amavisd.conf.bck
-rw-r----- 1 root   amavis 28412 Jan  9 21:16 amavisd.conf.bck2

___________________

SOLUTION:

chown root:root amavisd.conf
chmod 0644 amavisd.conf

ls -l -->
-rw-r--r-- 1 root root   28238 Jan 23 23:09 amavisd.conf
-rw-r--r-- 1 root root   36776 Nov 29 19:32 amavisd.conf.2016.11.29.19.28.49
-rw-r----- 1 root root   28238 Jan  2 20:59 amavisd.conf.bck
-rw-r----- 1 root amavis 28412 Jan  9 21:16 amavisd.conf.bck2


UFFF ;-)