amavisd fails to start on reboot, but no problems starting manually
Ryan de Laplante (personal)
ryan at ryandelaplante.com
Sat Apr 13 22:18:23 CEST 2013
I have a Debian 6 server running a bunch of LXC containers. Two of the
containers are mail servers running
postfix/dovecot/amavisd-new/spamassasin/clamav, and both work well.
When I reboot the host machine, amavis starts in both LXC containers but
one of them doesn't start completely and doesn't stay running.
This is ALL there is to see related to amavis in /var/log/mail.log after
being rebooted:
Apr 13 16:03:29 mail amavis[267]: starting. /usr/sbin/amavisd-new at
amavisd-new-2.6.4 (20090625), Unicode aware
Apr 13 16:03:29 mail amavis[267]: Perl version 5.010001
There is nothing about amavis in /var/log/mail.err or /var/log/mail.warn
When I "ps aux | grep amavis", I can see that it is not running.
Next I run "/etc/init.d/amavis start" and can see it start up:
Apr 13 16:06:51 mail amavis[1377]: starting. /usr/sbin/amavisd-new at
mail.mydomain.com amavisd-new-2.6.4 (20090625), Unicode aware, LANG="en_US"
Apr 13 16:06:51 mail amavis[1377]: Perl version 5.010001
Apr 13 16:06:54 mail amavis[1384]: Net::Server: Group Not Defined.
Defaulting to EGID '109 109'
Apr 13 16:06:54 mail amavis[1384]: Net::Server: User Not Defined.
Defaulting to EUID '106'
Apr 13 16:06:54 mail amavis[1384]: Module Amavis::Conf 2.207
Apr 13 16:06:54 mail amavis[1384]: Module Archive::Zip 1.30
Apr 13 16:06:54 mail amavis[1384]: Module BerkeleyDB 0.42
Apr 13 16:06:54 mail amavis[1384]: Module Compress::Zlib 2.02
...
Notice the first line looks different than when it starts automatically
on server restart. Once it's started, everything works perfectly.
My other LXC container does not have this problem. Amavisd-new starts on
reboot and works fine. I've tried to find out what's different between
the two servers but have no idea. Can someone please help?
FYI the server reports Perl is version 5.10.1
Thanks,
Ryan
More information about the amavis-users
mailing list