Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th June 2009, 05:02
almeister9 almeister9 is offline
Member
 
Join Date: Sep 2008
Posts: 36
Thanks: 6
Thanked 3 Times in 3 Posts
Thumbs up [RESOLVED] Virtual Users Domains Postfix Ubuntu 8.04 clamav fails after upgrade

Hi all,

After successfully using a mail server built with Falko's "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS)" for more than a year, and on the advice of a friend, I ran two commands on the server
Code:
apt-get update
apt-get upgrade
and since then I am experiencing these problems.

During startup I see:
Code:
Starting ClamAV daemon clamd:
ERROR: Parse error at line 44: Unknown Option ScanPartialMessages.
ERROR: Can't open/parse the config file /etc/clamav/clamd.conf  [FAIL]
and in
Code:
less /var/log/mail.log

Jun 15 11:29:25 smail amavis[6184]: (06184-01-4) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 86) line 310.
Jun 15 11:29:25 smail amavis[6184]: (06184-01-4) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x604e60) Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 86) line 310. at (eval 86) line 511.
Jun 15 11:29:25 smail amavis[6184]: (06184-01-4) (!!)WARN: all primary virus scanners failed, considering backups
I know it is the upgrade which has done this but I dont know how to fix it.

When I try to find out version I get
Code:
/usr/sbin/clamd -V
ERROR: Parse error at line 44: Unknown option ScanPartialMessages.
ERROR: Can't open/parse the config file /etc/clamav/clamd.conf
and this output
Code:
ps aux|grep clam
clamav    4872  0.0  0.0  21612  1116 ?        Ss   10:17   0:00 /usr/bin/freshclam -d --quiet
amavis   13972  105  2.6 122400 106424 ?       R    15:08   0:04 /usr/bin/clamscan --stdout --disable-summary -r --tempdir=/var/lib/amavis/tmp /var/lib/amavis/tmp/amavis-20090615T150636-13922/parts
amavis   13973  103  1.8  90580 74564 ?        R    15:08   0:02 /usr/bin/clamscan --stdout --disable-summary -r --tempdir=/var/lib/amavis/tmp /var/lib/amavis/tmp/amavis-20090615T150111-13747/parts
alan     13975  0.0  0.0   5168   844 pts/0    R+   15:08   0:00 grep clam
My setup is exactly as it is in Falko's Howto.

If anyone can help me with this I would be greatly appreciative.
Cheers Al.

Last edited by almeister9; 20th June 2009 at 02:32. Reason: Issue Resolved
Reply With Quote
Sponsored Links
  #2  
Old 15th June 2009, 15:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

What's the output of
Code:
updatedb
locate clamd.conf
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th June 2009, 02:58
almeister9 almeister9 is offline
Member
 
Join Date: Sep 2008
Posts: 36
Thanks: 6
Thanked 3 Times in 3 Posts
Default output

Thanks for your reply Falko.

Code:
alan@smail:~$ sudo updatedb
alan@smail:~$ sudo locate clamd.conf
/etc/clamav/clamd.conf
/usr/share/doc/clamav-base/examples/clamd.conf
/usr/share/man/man5/clamd.conf.5.gz
/var/lib/ucf/cache/:etc:clamav:clamd.conf
I have noticed that in clamd.conf there is this line:
Code:
LocalSocket /var/run/clamav/clamd.ctl
but that folder only contains one file
Code:
alan@smail:/var/run/clamav$ ls
freshclam.pid
It is causing the mail server to run very slowly. I sent a mailout yesterday at midday to 54,326 recipients and this morning at 10:00am there is still 53,000 messages in the queue.

Thanks for your help with this.

Last edited by almeister9; 16th June 2009 at 04:15. Reason: update
Reply With Quote
  #4  
Old 16th June 2009, 17:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

What's in /etc/clamav/clamd.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 17th June 2009, 01:01
almeister9 almeister9 is offline
Member
 
Join Date: Sep 2008
Posts: 36
Thanks: 6
Thanked 3 Times in 3 Posts
Default /etc/clamav/clamd.conf

Code:
#Automatically Generated by clamav-base postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-base
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
TemporaryDirectory /tmp
User clamav
AllowSupplementaryGroups true
ScanMail true
ScanArchive true
ArchiveLimitMemoryUsage false
ArchiveBlockEncrypted false
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
StreamMaxLength 10M
LogSyslog false
LogFacility LOG_LOCAL6
LogClean false
LogVerbose false
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav
SelfCheck 3600
Foreground false
Debug false
ScanPE true
ScanOLE2 true
ScanHTML true
DetectBrokenExecutables false
MailFollowURLs false
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true
ScanELF true
IdleTimeout 30
PhishingSignatures true
PhishingScanURLs true
PhishingAlwaysBlockSSLMismatch false
PhishingAlwaysBlockCloak false
DetectPUA false
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0
Thanks again Falko
Reply With Quote
  #6  
Old 17th June 2009, 14:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Looks ok. What's the output of
Code:
ls -la /etc/clamav/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
clamav, falko, ubuntu, upgrade

Thread Tools
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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
Postmaster problem with Ubuntu 8.04 Postfix Virtual Domains and users almeister9 HOWTO-Related Questions 3 19th February 2009 03:36
Advice Please - Virtual Users And Domains With Postfix, Courier, MySQL, SQMail Ubuntu TomT HOWTO-Related Questions 8 22nd January 2009 15:22
Virtual Users And Domains With Postfix,.....Ubuntu 8.04 LTS) Again Morons HOWTO-Related Questions 1 8th August 2008 21:53
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 mtzcesar HOWTO-Related Questions 3 6th June 2008 12:42


All times are GMT +2. The time now is 18:48.


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