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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
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:
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:
#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
uzywasz etch ?
Jaka wersje masz clamav?
Offline
posiadam wersję clamd 0.90.1
w logach /var/log/clamav/freshclam.log mam:
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
ten clamav z repo etch nie dzial, cos jest z nim nie tak, zainstaluj clamav z repo backports i bedzie dzialac jak nalezy
Offline
[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])
Offline
ok, dzieki. Pomogło i działa teraz.
pozdrawiam, Marcin
Offline
Time (s) | Query |
---|---|
0.00022 | SET CHARSET latin2 |
0.00007 | SET NAMES latin2 |
0.00194 | 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='3.145.63.148' WHERE u.id=1 |
0.00078 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.63.148', 1732344866) |
0.00081 | SELECT * FROM punbb_online WHERE logged<1732344566 |
0.00088 | DELETE FROM punbb_online WHERE ident='18.217.208.220' |
0.00075 | DELETE FROM punbb_online WHERE ident='3.15.228.162' |
0.00070 | SELECT topic_id FROM punbb_posts WHERE id=86108 |
0.00004 | SELECT id FROM punbb_posts WHERE topic_id=10936 ORDER BY posted |
0.00078 | 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.00119 | 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.00082 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=10936 |
Total query time: 0.00903 s |