Postfix incoming email issue

August 20, 2014 1.4k 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

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.

Have another answer? Share your knowledge.