[CentOS] Amavisd and ClamAV

Tony Molloy tony.molloy at ul.ie
Fri Nov 27 11:12:18 UTC 2009


On Friday 27 November 2009 09:49:54 John Doe wrote:
> From: Tony Molloy <tony.molloy at ul.ie>
>
> > Things work OK with the exception of clamav. When I start  clamav I get
> > the following error.
> > [root at newgoext ~]# service clamd.amavisd start
> > Starting clamd.amavisd: ERROR: Missing argument for option at line 2
> > ERROR: Can't open/parse the config file /etc/clamd.avisd.conf
> >                                                            [FAILED]
> > As this is a test server I'v set selinux to permissive so it doesn't look
> > like a selinux problem.
>
> So, did you check the file /etc/clamd.d/amavisd.conf ?
>
> JD
>

Yep. It was a parse error in the installed file not an open error.

cat /etc/clamd.avisd.conf

# Use system logger.
#LogSyslog

# Specify the type of syslog messages - please refer to 'man syslog'
# for facility names.
LogFacility LOG_MAIL

# This option allows you to save a process identifier of the listening
# daemon (main thread).
PidFile /var/run/amavisd/clamd.pid

# Remove stale socket after unclean shutdown.
# Default: disabled
#FixStaleSocket

# Run as a selected user (clamd must be started by root).
User amavis

# Path to a local socket file the daemon will listen on.
LocalSocket /var/spool/amavisd/clamd.sock


When I commented out LogSyslog and FixStaleSocket it started ok.

Thanks for stating the obvious sometimes that's the hardest thing to see ;-)

Tony


>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos



-- 

Dept. of Comp. Sci.
University of Limerick.


More information about the CentOS mailing list