1

Topic: Amavisd not start

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  PGSQL
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====

I updated my server because a "bash" bug reported and when I try to start amavis, I see this error:

Starting Mail Virus Scanner (amavisd): fetch_modules: error loading required module MIME/Head.pm:
  Can't locate Mail/Header.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/MIME/Head.pm line 120.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Head.pm line 120.
  Compilation failed in require at /usr/sbin/amavisd line 205.
fetch_modules: error loading required module MIME/Entity.pm:
  Can't locate Mail/Internet.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/MIME/Entity.pm line 229.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Entity.pm line 229.
  Compilation failed in require at /usr/sbin/amavisd line 205.
fetch_modules: error loading required module MIME/Parser.pm:
  Attempt to reload MIME/Head.pm aborted.
  Compilation failed in require at /usr/share/perl5/MIME/Parser.pm line 143.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Parser.pm line 143.
  Compilation failed in require at /usr/sbin/amavisd line 205.
ERROR: MISSING REQUIRED BASIC MODULES:
  MIME::Head
  MIME::Entity
  MIME::Parser
  Net::Server
  Net::Server::PreFork
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 246.
                                                           [FAILED]

rpm -qi perl-MIME-Tools
package perl-MIME-Tools is not installed
[root@mx01 etc]# rpm -qi perl-MIME-tools
Name        : perl-MIME-tools              Relocations: (not relocatable)
Version     : 5.427                             Vendor: CentOS
Release     : 4.el6                         Build Date: Fri 12 Nov 2010 01:39:13 PM UTC
Install Date: Fri 26 Sep 2014 01:02:14 PM UTC      Build Host: c6b6.bsys.dev.centos.org
Group       : Development/Libraries         Source RPM: perl-MIME-tools-5.427-4.el6.src.rpm
Size        : 523017                           License: GPL+ or Artistic
Signature   : RSA/8, Sun 03 Jul 2011 04:38:19 AM UTC, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://search.cpan.org/dist/MIME-tools/
Summary     : Modules for parsing and creating MIME entities in Perl
Description :
MIME-tools is a collection of Perl5 MIME:: modules for parsing, decoding, and
generating single- or multipart (even nested multipart) MIME messages.

Yes, kids, that means you can send messages with attached GIF files.

rpm -qi perl-Net-Server
Name        : perl-Net-Server              Relocations: (not relocatable)
Version     : 0.99                              Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release     : 1.el5.rf                      Build Date: Thu 09 Sep 2010 10:55:14 PM UTC
Install Date: Fri 26 Sep 2014 01:02:15 PM UTC      Build Host: lisse.hasselt.wieers.com
Group       : Applications/CPAN             Source RPM: perl-Net-Server-0.99-1.el5.rf.src.rpm
Size        : 404000                           License: Artistic/GPL
Signature   : DSA/SHA1, Thu 09 Sep 2010 11:47:49 PM UTC, Key ID a20e52146b8d79e6
Packager    : Dag Wieers <dag@wieers.com>
URL         : http://search.cpan.org/dist/Net-Server/
Summary     : Perl module that implements an extensible, general Perl server engine
Description :
perl-Net-Server is a Perl module that implements an extensible,
general Perl server engine.

I tried to reinstall amavisd but this error persist.

Please help me to solve this issue.

Thanks

André

----

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

2

Re: Amavisd not start

Looks like Amavisd RPM was not properly built, cannot find dependences.

You can disable Amavisd temporarily by commenting out below line in Postfix config file /etc/postfix/main.cf:

content_filter = smtp-amavis:[127.0.0.1]:10024

Reload Postfix service.

Then report this issue in EPEL repo mailing list.

3 (edited by rhex.diaz 2016-03-14 19:27:56)

Re: Amavisd not start

hi ZHB..my amavisd wont start also..this happens when i add the  other new domain key in amavisd..my main domain is bluecrossphilippines.com which is totally working but when i add my second domain uniorient.net..it wont start my amavisd..it says....

● 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 2016-03-14 19:20:30 PHT; 4min 40s ago
     Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 3766 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=13)
Main PID: 3060 (code=exited, status=0/SUCCESS)

Mar 14 19:20:30 mail.eurogroup.com systemd[1]: amavisd.service: control process exited, code=exited status=13
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: Unit amavisd.service entered failed state.
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: amavisd.service failed.
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: amavisd.service holdoff time over, scheduling restart.
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: start request repeated too quickly for amavisd.service
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: Unit amavisd.service entered failed state.
Mar 14 19:20:30 mail.eurogroup.com systemd[1]: amavisd.service failed.



note: my server hostname is mail.eurogroup.com

4

Re: Amavisd not start

*) Please do not reply in a 2-year old thread to ask your own question. and do not hijack other's thread. Always create a new forum topic for your own question.

*) What's the output of this command?

/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf

And, please create a new topic for this.

5

Re: Amavisd not start

Hi ZHB, i already created a topic.pls check the link

thanks

http://www.iredmail.org/forum/post47272.html#p47272





ZhangHuangbin wrote:

*) Please do not reply in a 2-year old thread to ask your own question. and do not hijack other's thread. Always create a new forum topic for your own question.

*) What's the output of this command?

/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf

And, please create a new topic for this.