Topic: Amavisd fails to start
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.96
- Linux/BSD distribution name and version: Centos 7
- 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:
====
New install on Centos 7. Always issues with amavisd!
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 Tue 2017-02-07 19:27:38 UTC; 4min 43s ago
Docs: http://www.ijs.si/software/amavisd/#docFeb 07 19:27:38 mail systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Feb 07 19:27:38 mail systemd[1]: Unit amavisd.service entered failed state.
Feb 07 19:27:38 mail systemd[1]: amavisd.service failed.
Feb 07 19:27:38 mail systemd[1]: amavisd.service holdoff time over, scheduling restart.
Feb 07 19:27:38 mail systemd[1]: start request repeated too quickly for amavisd.service
Feb 07 19:27:38 mail systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Feb 07 19:27:38 mail systemd[1]: Unit amavisd.service entered failed state.
Feb 07 19:27:38 mail systemd[1]: amavisd.service failed.
Server is on OpenVZ. Has 2 GB RAM
amavisd -u amavis -c /etc/amavisd/amavisd.conf debug
Feb 7 20:04:40.683 mail.server.tld /sbin/amavisd[1689]: logging initialized, log level 0, syslog: amavis.mail
Feb 7 20:04:40.683 mail.server.tld /sbin/amavisd[1689]: starting. /sbin/amavisd at mail.server.tld amavisd-new-2.10.1 (20141025), Unicode aware, LANG="en_US.UTF-8"
Feb 7 20:04:40.683 mail.server.tld /sbin/amavisd[1689]: perl=5.016003, user=amavis, EUID: 990 (990); group=, EGID: 989 (989)
Feb 7 20:04:40.711 mail.server.tld /sbin/amavisd[1689]: INFO: no optional modules: unicore::lib::Nt::De.pl Unix::Getrusage
Feb 7 20:04:40.711 mail.server.tld /sbin/amavisd[1689]: SpamControl: attempting to load scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Feb 7 20:04:40.711 mail.server.tld /sbin/amavisd[1689]: SpamControl: scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Feb 7 20:04:40.834 mail.server.tld /sbin/amavisd[1689]: INFO: SA version: 3.4.0, 3.004000, no optional modules: Net::CIDR::Lite Image::Info Image::Info::GIF Image::Info::JPEG Image::Info::PNG Image::Info::BMP Image::Info::TIFF
Feb 7 20:04:40.834 mail.server.tld /sbin/amavisd[1689]: SpamControl: init_pre_chroot on SpamAssassin done
Feb 7 20:04:40.834 mail.server.tld /sbin/amavisd[1689]: socket module IO::Socket::IP, protocol families available: INET
Feb 7 20:04:40.835 mail.server.tld /sbin/amavisd[1689]: bind to /var/run/amavisd/amavisd.sock|unix, 127.0.0.1:10024/tcp, 127.0.0.1:10026/tcp, 127.0.0.1:9998/tcp
Feb 7 20:04:40.835 mail.server.tld /sbin/amavisd[1689]: (!)Net::Server: 2017/02/07-20:04:40 Couldn't open pid file "/var/run/amavisd/amavisd.pid" [Permission denied].\n\n at line 180 in file /usr/share/perl5/vendor_perl/Net/Server.pm
Feb 7 20:04:40.835 mail.server.tld /sbin/amavisd[1689]: Net::Server: 2017/02/07-20:04:40 Server closing!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.