HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Clamd.amavisd start error (

robertlouwen 12th March 2010 16:32

Clamd.amavisd start error
Hello all,

Today I installed a perfect server Fedora 12 with ISPConfig 3.02 on i686 box.
After installing amavisd-new and clamav you run this command: /etc/init.d/clamd.amavisd start and this gives an error.
clamd.amavisd Local: Socket file /var/spool/amavisd/clamd.sock is in use by another process.

What to do now ?

Output of ls -l: /var/run/clamav/clamd.sock: cannot access /var/spool/amavisd/clamd.sock: No such file or directory

Output of ls -la /var/run/: drwxr-xr-x 2 amavisd amavisd 4096 2010-03-12 15:30 amavisd ( No other amavisd or clamd or clamd.amavisd in this output )

robertlouwen 12th March 2010 16:41

Also I tried this The file www mentioned does not exists on my server so I edited /etc/clamd.d/amavisd.conf
But that gives an other error: ERROR:Please define server type ( local and/or tcp )

falko 13th March 2010 15:40

What's the output of

locate clamd.conf


What's in /etc/clamd.d/amavisd.conf?

robertlouwen 14th March 2010 07:48

1 Attachment(s)
Hello Falko,

The output of locate clamd.conf:

I attached the amavisd.conf file.

Have a nice day

falko 15th March 2010 15:07

Can you change

User amavis

User amavisd
in /etc/clamd.d/amavisd.conf and restart Clamd?

robertlouwen 19th March 2010 11:03

Hello Falko,

I have changed /etc/clamd/amavisd.conf like you suggested but when I restart clamd.amavisd it gives another error:

Error: Can't get information about user amavisd. Starting clamd.amavisd failed
Any other ideas ?

falko 21st March 2010 04:42

What's the output of

grep amavis /etc/passwd

robertlouwen 23rd March 2010 02:51

Hello Falko,

Here is the output of grep amavis /etc/passwd:


Have a nice day !

falko 23rd March 2010 19:01

Ok, then

User amavis
is correct in /etc/clamd.d/amavisd.conf, but /var/spool/amavisd/ should be owned by amavis, not amavisd.

Can you run

chown -R amavis:amavis /var/spool/amavisd/

robertlouwen 24th March 2010 12:45

Thanks again Falko, that did the trick !

In my humble opinion, does the tutorial "perfect server F12" need a little update at chapter 15 page 5 ? ( ).

Now there is this:

chown amavis /var/run/amavisd /var/spool/amavisd /var/spool/amavisd/tmp /var/spool/amavisd/db
and maybe this:

chown -R amavis:amavis /var/spool/amavisd/
can / must be added ?

Thank you for your time and have a nice day

All times are GMT +2. The time now is 17:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.