{"id":2278,"date":"2019-09-23T22:22:03","date_gmt":"2019-09-23T15:22:03","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=2278"},"modified":"2019-09-23T22:22:53","modified_gmt":"2019-09-23T15:22:53","slug":"huong-dan-cai-dat-va-cau-hinh-spamassassin","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-cai-dat-va-cau-hinh-spamassassin\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t v\u00e0 c\u1ea5u h\u00ecnh SpamAssassin"},"content":{"rendered":"<h2 id=\"SpamAssassin_l\u00e0_g\u00ec?\">SpamAssassin l\u00e0 g\u00ec?<\/h2>\n<p>Nh\u01b0 c\u00e1i t\u00ean c\u1ee7a n\u00f3, SpamAssassin t\u1ea1m d\u1ecbch l\u00e0 s\u00e1t th\u1ee7 Spam, hi\u1ec3u n\u00f4m na l\u00e0 \u0111i gi\u1ebft nh\u1eefng b\u1ee9c th\u01b0 spam (r\u00e1c r\u01b0\u1edfi). SpamAssassin \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng r\u1ed9ng r\u00e3i b\u1edfi s\u1ef1 h\u1ee3p t\u00e1c c\u1ee7a nhi\u1ec1u b\u00ean nh\u01b0 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf l\u00e0m n\u00ean m\u1ed9t b\u1ed9 l\u1ecdc th\u01b0 \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh c\u00e1c email Spam.<\/p>\n<h2 id=\"C\u00e0i_\u0111\u1eb7t_SpamAssassin\">C\u00e0i \u0111\u1eb7t SpamAssassin<\/h2>\n<p>Tr\u01b0\u1edbc khi c\u00e0i \u0111\u1eb7t SpamAssassin b\u1ea1n c\u1ea7n c\u00f3 <strong>perl \/ cpan : \u0111\u1ec3 c\u00e0i \u0111\u1eb7t b\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng l\u1ec7nh d\u01b0\u1edbi.<\/strong><\/p>\n<p>\u0110\u1ed1i v\u1edbi CentOS :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">yum -y install perl-ExtUtils-MakeMaker perl-Digest-SHA perl-Net-DNS perl-NetAddr-IP perl-Archive-Tar perl-IO-Zlib perl-Digest-SHA perl-Mail-SPF \\\r\nperl-IO-Socket-INET6 perl-IO-Socket-SSL perl-Mail-DKIM perl-DBI perl-Encode-Detect perl-HTML-Parser \\\r\nperl-HTML-Tagset perl-Time-HiRes perl-libwww-perl perl-Sys-Syslog perl-DB_File perl-Razor-Agent pyzor<\/pre>\n<p>\u0110\u1ed1i v\u1edbi Debian :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">apt-get install libhtml-parser-perl libhttp-date-perl libnet-dns-perl libnetaddr-ip-perl libsocket6-perl libsys-hostname-long-perl libwww-perl \\\r\nlibio-socket-inet6-perl libmail-spf-perl libsys-syslog-perl libdbi-perl libencode-detect-perl libio-socket-ssl-perl \\\r\nlibmail-dkim-perl razor libio-socket-ip-perl libnet-patricia-perl<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cd \/usr\/local\/directadmin\/custombuild\r\n.\/build set spamd spamassassin\r\n.\/build spamassassin<\/pre>\n<p>N\u1ebfu b\u1ea1n \u0111ang s\u1eed d\u1ee5ng Custombuild 2.0 th\u00ec kh\u00f4ng c\u1ea7n x\u00e1c th\u1ef1c g\u00ec th\u00eam, c\u00f2n n\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng Custombuild version c\u0169 h\u01a1n th\u00ec c\u00f3 th\u1ec3 b\u1ea1n s\u1ebd c\u1ea7n t\u1edbi : <strong>&#8220;.\/build set spamassassin yes&#8221;<\/strong><\/p>\n<p>Sau khi ho\u00e0n t\u1ea5t c\u00e0i \u0111\u1eb7t tr\u00ean th\u00ec SpamAssassin s\u1ebd t\u1ef1 restart l\u1ea1i, v\u00e0 b\u1ea1n c\u1ea7n truy c\u1eadp b\u1ea3ng qu\u1ea3n tr\u1ecb Direct Admin c\u1ee7a m\u00ecnh t\u1ea1i ph\u1ea7n User Lever &#8211; t\u00ecm \u0111\u1ebfn ph\u1ea7n SpamAssassin.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2279\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215431.png\" alt=\"\" width=\"1280\" height=\"674\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215431.png 1280w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215431-300x158.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215431-768x404.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215431-1024x539.png 1024w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>B\u1ea1n c\u1ea7n b\u1eadt : SpamAssassin tr\u00ean giao di\u1ec7n v\u00e0 thi\u1ec7t \u0111\u1eb7t c\u00e1c c\u1ea5u h\u00ecnh.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2280\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215449.png\" alt=\"\" width=\"1021\" height=\"925\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215449.png 1021w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215449-300x272.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/09\/UCScreenshot20190923215449-768x696.png 768w\" sizes=\"(max-width: 1021px) 100vw, 1021px\" \/>B\u00ean trong s\u1ebd c\u00f3 c\u00e1c th\u00f4ng tin c\u1ea5u h\u00ecnh b\u1eb1ng Ti\u1ebfng Anh, b\u1ea1n c\u00f3 th\u1ec3 t\u00f9y ch\u1ec9nh theo y\u00eau c\u1ea7u c\u1ee7a m\u00ecnh \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng t\u1ed1t nh\u1ea5t, n\u1ebfu b\u1ea1n kh\u00f4ng c\u00f3 v\u1ed1n t\u1eeb v\u1ef1ng t\u1ed1t th\u00ec vi\u1ec7c s\u1eed d\u1ee5ng <strong>Google D\u1ecbch<\/strong> trong tr\u01b0\u1eddng h\u1ee3p n\u00e0y s\u1ebd t\u1ed1t nh\u1ea5t cho b\u1ea1n v\u00ec n\u00f3 c\u0169ng s\u1ebd c\u1ea3i thi\u1ec7n kh\u1ea3 n\u0103ng s\u1eed d\u1ee5ng cho b\u1ea1n h\u01a1n v\u1ec1 t\u01b0\u01a1ng lai.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SpamAssassin l\u00e0 g\u00ec? Nh\u01b0 c\u00e1i t\u00ean c\u1ee7a n\u00f3, SpamAssassin t\u1ea1m d\u1ecbch l\u00e0 s\u00e1t th\u1ee7 Spam, hi\u1ec3u n\u00f4m na l\u00e0 \u0111i gi\u1ebft nh\u1eefng b\u1ee9c th\u01b0 spam (r\u00e1c r\u01b0\u1edfi). SpamAssassin \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng r\u1ed9ng r\u00e3i b\u1edfi s\u1ef1 h\u1ee3p t\u00e1c c\u1ee7a nhi\u1ec1u b\u00ean nh\u01b0 m\u1ed9t d\u1ef1 \u00e1n m\u00e3 ngu\u1ed3n m\u1edf l\u00e0m n\u00ean m\u1ed9t b\u1ed9 l\u1ecdc th\u01b0 \u0111\u1ec3 x\u00e1c [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2279,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[23],"class_list":["post-2278","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-control-panel-direct-admin"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=2278"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2278\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/2279"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=2278"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=2278"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=2278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}