Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2008-03-21 14:07:31

  markus78 - Użytkownik

markus78
Użytkownik
Zarejestrowany: 2006-08-08

problem z połaczeniem do clamAV

witam
Mam taki problem: Skonfigurowałem postfixa z clamavem, spamassassinem i amavisem i kiedy wysyłam poczte lub przychodzi poczta to postfix wysyła ją do skanowania (w main.cf dodałem):

content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

ale nie może połaczyć się z clamavem. W logach mam:

Kod:

Mar 21 13:42:26 poczta amavis[3301]: (03301-02) (!) /usr/bin/clamscan is taking longer than 315 s and will be killed
Mar 21 13:42:26 poczta amavis[3301]: (03301-02) (!) killing process [3338] running /usr/bin/clamscan
Mar 21 13:42:26 poczta amavis[3301]: (03301-02) (!) run_av: timed out
Mar 21 13:42:26 poczta amavis[3301]: (03301-02) (!!) ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 44) line 462.
Mar 21 13:42:26 poczta amavis[3301]: (03301-02) (!!) TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: 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 44) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 44) line 462.
Mar 21 13:42:26 poczta amavis[3301]: (03301-02) (!) PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20080321T133704-03301
Mar 21 13:42:26 poczta postfix/smtp[3286]: 20881571B1: to=<janek76@poczta.fm>, relay=127.0.0.1[127.0.0.1]:10024, delay=940, delays=202/416/0.01/322, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=03301-02, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: 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 44) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 44) line 462. (in reply to end of DATA command))

Konfig od clamava w /etc/clamav/clamd.conf wygląda tak:

Kod:

#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
TCPSocket 3310
FixStaleSocket true
User clamav
AllowSupplementaryGroups true
ScanMail true
ScanArchive true
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ArchiveMaxFileSize 10M
ArchiveMaxCompressionRatio 250
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
TemporaryDirectory /tmp
SelfCheck 3600
Foreground false
Debug false
ScanPE true
ScanOLE2 true
ScanHTML true
DetectBrokenExecutables false
MailFollowURLs false
ArchiveBlockMax false
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true
ScanELF true
NodalCoreAcceleration false
IdleTimeout 30
MailMaxRecursion 64
PhishingSignatures true
LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0

Proszę o pomoc.

Offline

 

#2  2008-03-21 15:30:13

  HunteR - DUG

HunteR
DUG
Skąd: ?
Zarejestrowany: 2006-03-14

Re: problem z połaczeniem do clamAV

uzywasz etch ?
Jaka wersje masz clamav?


...

Offline

 

#3  2008-03-21 16:49:17

  markus78 - Użytkownik

markus78
Użytkownik
Zarejestrowany: 2006-08-08

Re: problem z połaczeniem do clamAV

posiadam wersję clamd 0.90.1
w logach /var/log/clamav/freshclam.log mam:

Kod:

Received signal: wake up
ClamAV update process started at Fri Mar 21 16:27:44 2008
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.90.1 Recommended version: 0.92.1
DON'T PANIC! Read http://www.clamav.net/support/faq
main.inc is up to date (version: 45, sigs: 169676, f-level: 21, builder: sven)
Downloading daily-6316.cdiff [0%]
daily.inc updated (version: 6316, sigs: 63425, f-level: 26, builder: arnaud)
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Current functionality level = 14, recommended = 26
DON'T PANIC! Read http://www.clamav.net/support/faq
Database updated (233101 signatures) from db.local.clamav.net (IP: 62.236.254.228)
Clamd successfully notified about the update.
--------------------------------------
--------------------------------------
freshclam daemon 0.90.1 (OS: linux-gnu, ARCH: i386, CPU: i486)
ERROR: Can't lock database directory: /var/lib/clamav/

w logach mail.info widać zaś ze odwołuje się przy wysyłaniu poczty do jakiegoś pliku /var/run/clamav/clamd.ctl ale ja takiego pliku w folderze /var/run/clamav nie mam

Offline

 

#4  2008-03-21 18:43:09

  HunteR - DUG

HunteR
DUG
Skąd: ?
Zarejestrowany: 2006-03-14

Re: problem z połaczeniem do clamAV

ten clamav z repo etch nie dzial, cos jest z nim nie tak, zainstaluj clamav z repo backports i bedzie dzialac jak nalezy


...

Offline

 

#5  2008-03-21 18:48:26

  azhag - Admin łajza

azhag
Admin łajza
Skąd: Warszawa
Zarejestrowany: 2005-11-15

Re: problem z połaczeniem do clamAV

[quote=HunteR]ten clamav z repo etch nie dzial, cos jest z nim nie tak, zainstaluj clamav z repo backports i bedzie dzialac jak nalezy[/quote]
dobrym pomysłem będzie też dodanie repozytorium violatile (patrz [url=http://forum.dug.net.pl/viewtopic.php?id=10063]lista repo[/url])


Błogosławieni, którzy czynią FAQ.
[url=http://www.opencaching.pl]opencaching[/url] :: [url=http://dug.net.pl/sources.list]debian sources.list[/url] :: [url=http://www.linuxportal.pl/blogi/azhag/wpisy]coś jakby blog[/url] :: [url=http://dug.net.pl/]polski portal debiana[/url] :: linux user #403712

Offline

 

#6  2008-03-21 21:54:52

  markus78 - Użytkownik

markus78
Użytkownik
Zarejestrowany: 2006-08-08

Re: problem z połaczeniem do clamAV

ok, dzieki. Pomogło i działa teraz.
pozdrawiam, Marcin

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.008 seconds, 12 queries executed ]

Informacje debugowania

Time (s) Query
0.00009 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00096 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.118.146.180' WHERE u.id=1
0.00066 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.118.146.180', 1732331718)
0.00048 SELECT * FROM punbb_online WHERE logged<1732331418
0.00068 DELETE FROM punbb_online WHERE ident='13.58.200.78'
0.00062 SELECT topic_id FROM punbb_posts WHERE id=86128
0.00095 SELECT id FROM punbb_posts WHERE topic_id=10936 ORDER BY posted
0.00058 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=10936 AND t.moved_to IS NULL
0.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00078 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=10936 ORDER BY p.id LIMIT 0,25
0.00071 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=10936
Total query time: 0.0066 s