Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th June 2006, 05:52 AM
silent_wumpus Offline
Registered User
 
Join Date: Mar 2006
Posts: 8
Why use clamav-server instance instead of clamd?

I have Fedora FC5, all the clamav* rpm's installed and sendmail is
working ok.
I followed the instructions in the /usr/share/doc/clamav-server*/README
file and created and clamd.sendmail instance. All <SERVICE> are
replaced with sendmail.

Before using the clam rpms I have downloaded the clam source and was
able to make this work. But I would rather use the rpm method because I
am not the only person who maintains the server and using yum is a good
thing

Using the old clamd service I could add the clamav-milter and it
worked. With the new use of the 'instance' a test email shows not X-Virus
statements in the headers. And the logs do not show anything. Do you have
to create a clamd.sendmail (my naming) and how does clamav-milter know
how talk to the instances socket? If there are any decent howtos or
faqs about how to sent up a instance (I am almost googled out on that one
) please let me know. Below is my entries.

/etc/clamd.d/milter.conf <- just placed a # in front of example line
/etc/clamd.d/sendmail.conf: (changes)
LogFile /var/log/clamd.sendmail
LogVerbose
PidFile /var/run/clamd.sendmail/clamd.pid
LocalSocket /var/run/clamd.sendmail/clamd.sock
User clamsendmail

/etc/passwd enty:
clamsendmail:x:501:502lamav Sendmail
User:/var/run/clamd.sendmail:/sbin/nologin

/etc/group:
clamsendmail:x:502:

/etc/sysconfig/clamd.sendmail:
CLAMD_CONFIGFILE=/etc/clamd.d/sendmail.conf
CLAMD_SOCKET=/var/run/clamd.sendmail/clamd.sock
CLAMD_OPTIONS=

/etc/mail/sendmail.mc line (used m4 sendmail.mc > sendmail.cf after
change)
INPUT_MAIL_FILTER(`clamav',
`S=local:/var/run/clamav-milter/clamav.sock,F=,T=S:4m;R:4m')dnl

results of ps ax | grep clam:
clamd.sendmail -c /etc/clamd.d/sendmail.conf
/usr/sbin/clamav-milter --max-children=2 -c /etc/clamd.d/milter.conf
local:/var/run/clamav-milter/clamav.sock

ls -l /var/run:
drwxr-x--- 2 clamsendmail root 4096 Jun 5 18:25 clamd.sendmail

ls -lR /var/run:
-rw-rw---- 1 clamsendmail clamsendmail 5 Jun 5 18:25 clamd.pid
srwxrwxrwx 1 clamsendmail clamsendmail 0 Jun 5 18:25 clamd.sock
Reply With Quote
  #2  
Old 8th June 2006, 05:55 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
I installed mine a while back and I guess I never got it quite right but good enough to work with. If I reboot my server I must type clamd at the command prompt. If I don't it gives a message about not being able to find and uses the secondary av scanner ClamAV-clamscan at /usr/bin/clamscan. I guess I'm saying try typing clamd at command prompt to see if it starts.
Reply With Quote
  #3  
Old 9th June 2006, 02:17 PM
liro's Avatar
liro Offline
Registered User
 
Join Date: Oct 2005
Location: Switzerland
Age: 30
Posts: 233
Quote:
Originally Posted by tw56
I installed mine a while back and I guess I never got it quite right but good enough to work with. If I reboot my server I must type clamd at the command prompt. If I don't it gives a message about not being able to find and uses the secondary av scanner ClamAV-clamscan at /usr/bin/clamscan. I guess I'm saying try typing clamd at command prompt to see if it starts.

have you enabled clamd?

Code:
chkconfig clamd on
what gives 'chkconfig --list clamd'?

if so, it should be started at boot time...
__________________
some tips and small doc's of fedora core linux setup [german] http://www.liro.ch
Reply With Quote
  #4  
Old 9th June 2006, 06:06 PM
tw56 Offline
Registered User
 
Join Date: Oct 2005
Location: GA, USA
Posts: 311
Yep that was all I needed. Thanks
Reply With Quote
  #5  
Old 12th June 2006, 09:00 PM
silent_wumpus Offline
Registered User
 
Join Date: Mar 2006
Posts: 8
Yes clamd.sendmail is running (the instance I created). Also I have retraced
my sets by examining the /etc/clamd.d/exim.conf example (and associated
files) and can not seem to find whats wrong. Is there more information that
I need to post to figuire this problem out? Any advice would be helpful.

Thanks in advance.

Tim
Reply With Quote
Reply

Tags
clamavserver, clamd, instance

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with FC9:sendmail->clamav-milter->Clamd MeMyself Installation and Live Media 3 26th May 2008 09:35 PM
clamAV in fc5 - no clamd.conf ! gasman Security and Privacy 3 20th January 2007 02:13 AM


Current GMT-time: 03:40 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat