{"id":351,"date":"2012-06-14T12:56:56","date_gmt":"2012-06-14T12:56:56","guid":{"rendered":""},"modified":"2016-01-11T13:12:13","modified_gmt":"2016-01-11T12:12:13","slug":"clamav-2","status":"publish","type":"post","link":"https:\/\/drfugazi.eu.org\/en\/clamav-2\/","title":{"rendered":"ClamAV"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"564\" data-permalink=\"https:\/\/drfugazi.eu.org\/en\/clamav-2\/clamav-trademark\/\" data-orig-file=\"https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark.png?fit=305%2C248&amp;ssl=1\" data-orig-size=\"305,248\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"clamav-trademark\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark.png?fit=300%2C244&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark.png?fit=305%2C248&amp;ssl=1\" class=\"alignleft size-thumbnail wp-image-564\" src=\"https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark-150x150.png?resize=150%2C150\" alt=\"clamav-trademark\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark.png?resize=160%2C160&amp;ssl=1 160w, https:\/\/i0.wp.com\/drfugazi.eu.org\/wp-content\/uploads\/2012\/06\/clamav-trademark.png?resize=320%2C320&amp;ssl=1 320w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a>Clam AntiVirus is an open source (GPL) anti-virus toolkit for UNIX, designed especially for e-mail scanning on mail gateways. It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and advanced tool for automatic database updates. The core of the package is an anti-virus engine available in a form of shared library.<!--more--><\/p>\n<p>Here is a list of the main features:<\/p>\n<ul>\n<li>command-line scanner<\/li>\n<li>fast, multi-threaded daemon with support for on-access scanning<\/li>\n<li>milter interface for sendmail<\/li>\n<li>advanced database updater with support for scripted updates and digital signatures<\/li>\n<li>virus scanner C library<\/li>\n<li>on-access scanning (Linux\u00ae and FreeBSD\u00ae)<\/li>\n<li>virus database updated multiple times per day (see home page for total number of signatures)<\/li>\n<li>built-in support for various archive formats, including Zip, RAR, Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS and others<\/li>\n<li>built-in support for almost all mail file formats<\/li>\n<li>built-in support for ELF executables and Portable Executable files compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and obfuscated with SUE, Y0da Cryptor and others<\/li>\n<li>built-in support for popular document formats including MS Office and MacOffice files, HTML, RTF and PDF<\/li>\n<\/ul>\n<p>Read the <a href=\"http:\/\/www.clamav.net\/doc\/latest\">documentation<\/a> for more details.<\/p>\n<p style=\"text-align: right; font-style: italic; font-size: 0.9em;\">Source: http:\/\/www.clamav.net\/lang\/en\/about\/<\/p>\n<p>I compile ClamAV on Solaris by myself, and I use script with proper options. In Ubuntu and other Linux systems are proper packages with ClamAV and Freshclam.<\/p>\n<p>Below is my compilation script for Solaris 10 on SPARC with SunStudio:<\/p>\n<pre><code>\r\n#!\/bin\/sh\r\n#\r\n# for GCC:\r\n#CC=gcc\r\n#CFLAGS=\"-O2 -mcpu=v9\"\r\n#MAKE=gmake\r\n#\r\n# for Sun Studio\r\nCC=cc\r\nCXX=CC\r\nCFLAGS=\"-xO2 -native\"\r\nCXXFLAGS=$CFLAGS\r\nCPPFLAGS=\"-I\/usr\/local\/include\"\r\nLDFLAGS=\"-L\/usr\/local\/lib -R\/usr\/local\/lib\"\r\nMAKE=gmake\r\n\r\nexport CC CFLAGS CPPFLAGS MAKE DMAKE_MODE\r\nexport CXX CXXFLAGS LDFLAGS LIBS\r\n\r\n# $CC -v\r\n$CC -V\r\nset|grep PATH\r\nset|grep FLAGS\r\n\r\nKAT=\"clamav\"\r\nVER=\"0.97.5\"\r\n\r\ncd \"$KAT-$VER\"\r\n\r\ntn=\"n\"\r\necho \"=============================================\"\r\necho \"$MAKE clean [y|n] ?\"\r\nread tn\r\nif [ \"$tn\" = \"Y\" ] || [ \"$tn\" = \"y\" ]; then\r\n  $MAKE distclean || $MAKE realclean || $MAKE clean\r\n\r\n  rm -f config.status\r\n  rm -f config.log\r\nfi;\r\n\r\ntn=\"n\"\r\necho \"=============================================\"\r\necho \"configure [y|n] ?\"\r\nread tn\r\nif [ \"$tn\" = \"Y\" ] || [ \"$tn\" = \"y\" ]; then\r\n        .\/configure \\\r\n        --prefix=\/usr\/local\/$KAT-$VER \\\r\n        --infodir=\/usr\/local\/info --mandir=\/usr\/local\/man \\\r\n        --sysconfdir=\/data\/etc\/$KAT \\\r\n        --localstatedir=\/data\/var\/$KAT \\\r\n        --disable-clamav \\\r\n        --with-user=amavis --with-group=amavis \\\r\n\r\nfi;\r\n\r\ntn=\"n\"\r\necho \"=============================================\"\r\necho \"$MAKE [y|n] ?\"\r\nread tn\r\nif [ \"$tn\" = \"Y\" ] || [ \"$tn\" = \"y\" ]; then\r\n  $MAKE &amp;&amp; echo \"Compilation successful\"\r\nfi;\r\n<\/code><\/pre>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in Polish. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.Clam AntiVirus&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[110],"tags":[1,49,22,7,11],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7M9Tz-5F","jetpack-related-posts":[{"id":234,"url":"https:\/\/drfugazi.eu.org\/en\/skaner-av-as\/","url_meta":{"origin":351,"position":0},"title":"Instalacja skanera AV\/AS do poczty","author":"drfugazi","date":"Wednesday December 29th, 2010","format":false,"excerpt":"Instalacja skanowania Antywirusowego (AV) i Antyspamowego (AS) do systemu poczty Prze\u0142\u0105czamy si\u0119 na roota i insalujemy potrzebne oprogramowanie: sudo -i aptitude update aptitude install amavisd-new aptitude install clamav-daemon aptitude install spamassassin SpamAssassin jest domy\u015blnie wy\u0142\u0105czony, o czym nas informuje przy instalacji, aby go w\u0142\u0105czy\u0107 nale\u017cy wyedytowa\u0107 plik \/etc\/default\/spamassassin i ustawi\u0107:\u2026","rel":"","context":"In \"Amavis\"","block_context":{"text":"Amavis","link":"https:\/\/drfugazi.eu.org\/en\/tag\/amavis\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":374,"url":"https:\/\/drfugazi.eu.org\/en\/mail-system-implementation\/","url_meta":{"origin":351,"position":1},"title":"Mail system implementation","author":"drfugazi","date":"Thursday August 16th, 2012","format":false,"excerpt":"My experience, which I gained during implementation of different systems shows, that implementation should be done in stages. Then, at each stage you can see if it works, if there are some fields to improve and then go to the next stage of implementation. Mail system implementation is not exception.\u2026","rel":"","context":"In &quot;Mail system&quot;","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/category\/mail-system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":250,"url":"https:\/\/drfugazi.eu.org\/en\/","url_meta":{"origin":351,"position":2},"title":"wget-1.12","author":"drfugazi","date":"Wednesday May 18th, 2011","format":false,"excerpt":"GNU Wget jest programem do pobierania plik\u00f3w przy u\u017cyciu protoko\u0142\u00f3w HTTP, HTTPS i FTP, kt\u00f3re s\u0105 najcz\u0119\u015bciej wykorzystywane w Internecie. Jest to nie interaktywne narz\u0119dzie wywo\u0142ywane z linii polece\u0144, wi\u0119c mo\u017ce by\u0107 \u0142atwo wykorzystywane w skryptach, zadaniach cron, na terminalach bez wsparcia dla X-Windows itp. Konfiguracja i kompilacja przy u\u017cyciu\u2026","rel":"","context":"In \"Compilation\"","block_context":{"text":"Compilation","link":"https:\/\/drfugazi.eu.org\/en\/tag\/kompilacja\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":373,"url":"https:\/\/drfugazi.eu.org\/en\/budowa-systemu-pocztowego\/","url_meta":{"origin":351,"position":3},"title":"Building mail system","author":"drfugazi","date":"Monday August 13th, 2012","format":false,"excerpt":"This description is based on my experience, which I gained during mail system implementation on University of Silesia (Katowice\/Poland). In the first stage there was about 3 000 of users, now the system is handling about 40 k of mail users. Whole system (exluding Sophos AV) is based on Open\u2026","rel":"","context":"In &quot;Mail system&quot;","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/category\/mail-system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":356,"url":"https:\/\/drfugazi.eu.org\/en\/postfix-2\/","url_meta":{"origin":351,"position":4},"title":"Postfix","author":"drfugazi","date":"Friday June 29th, 2012","format":false,"excerpt":"Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different. Built from source code, Postfix can run\u2026","rel":"","context":"In &quot;Mail system&quot;","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/category\/mail-system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":166,"url":"https:\/\/drfugazi.eu.org\/en\/gnarwl-35\/","url_meta":{"origin":351,"position":5},"title":"gnarwl-3.5","author":"drfugazi","date":"Thursday February 19th, 2009","format":false,"excerpt":"GNARWL jest autoresponderem dzia\u0142aj\u0105cym po stronie serwera pocztowego, jest to odpowiednik programu Vacation wzbogacony m. in. o wsp\u00f3\u0142prac\u0119 z katalogiem LDAP. Wi\u0119cej informacji o programie oraz jego zastosowaniu mo\u017cna znale\u017a\u0107 na stronie projektu: http:\/\/www.onyxbits.de\/gnarwl. Ja nie b\u0119d\u0119 si\u0119 nad tym rozwodzi\u0142, skupi\u0119 si\u0119 na kompilacji i instalacji tego oprogramowania pod\u2026","rel":"","context":"In \"Compilation\"","block_context":{"text":"Compilation","link":"https:\/\/drfugazi.eu.org\/en\/tag\/kompilacja\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/351"}],"collection":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":2,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/351\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}