Postfix incoming email issue

Posted August 20, 2014 3.1k views

Earlier today my Ubuntu server crashed. When it came back I had a bunch of corrupt files. My postfix server keeps putting all my email in the deferred folder and I think I have narrowed it down to a amavisd issue. This is the error messages when an incoming email arrives.

relay=none, delay=2850, delays=2850/0.05/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to[]:10024: Connection refused)

I am getting this error when I try to start amavis. I am guessing I am missing a file? Is it re? Where would I get this file and where does it go?

Starting amavisd: Can't locate loadable object for module re in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/sbin/amavisd-new line 124
Compilation failed in require at /usr/sbin/amavisd-new line 124.
BEGIN failed--compilation aborted at /usr/sbin/amavisd-new line 124.

Thank you

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

I’m assuming you’re running a debian type distro, but:

apt-get --reinstall install amavisd-new

That should reinstall amavis without messing with your config and replace anything that’s corrupt/missing.

If that doesn’t work, it’s actually the regular expression perl module that’s stuffed, so try:

apt-get --reinstall install perl-base

Hope that helps.