{"id":232,"date":"2008-03-12T09:57:48","date_gmt":"2008-03-12T00:57:48","guid":{"rendered":"http:\/\/mike.md.tsukuba.ac.jp\/terui\/blog\/?p=232"},"modified":"2021-12-27T08:54:32","modified_gmt":"2021-12-26T23:54:32","slug":"spamassasin","status":"publish","type":"post","link":"https:\/\/nbsigh2.com\/?p=232","title":{"rendered":"spamassasin"},"content":{"rendered":"<p>\uff12\u6708\u521d\u65ec\u304b\u3089\u3069\u3093\u3069\u3093spam mail \u306e\u8b58\u5225\u7387\u304c\u308f\u308b\u304f\u306a\u3063\u3066\u304d\u305f\u3002<br \/>\n\u305d\u3053\u3067\u3001threshold \u3092\uff13\u306b\u4e0b\u3052\u3066\u307f\u305f\u3002<br \/>\n\u3055\u3089\u306b\u3000\/etc\/mail\/spamassassin\/local.cf \u306b<br \/>\nwhitelist_from #@mike.md.tsukuba.ac.jp *@kiban.md.tsukuba.ac.jp<br \/>\n\u3092\u66f8\u304d\u52a0\u3048\u305f\u3002\u3064\u307e\u308amike \u3068kiben\u304b\u3089\u306e\u30e1\u30fc\u30eb\u306f\u7121\u6761\u4ef6\u306bspam \u3068\u5224\u5b9a\u3057\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3060\u3002<br \/>\nSpamtrainer \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c1.8.5 \u306b\u4e0a\u304c\u3063\u3066\u3044\u305f\u306e\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3002<del datetime=\"2021-12-26T23:50:30+00:00\">\u3067\u3082\u3063\u3066\uff1b<br \/>\n<a href=\"https:\/\/nbsigh\/?m=200704\" target=\"_blank\" rel=\"noopener\">\u3053\u3053\u3092\u53c2\u8003<\/a>\u306b \uff082007\/4\/21 \u571f\u66dc\u65e5\u306e\u8a18\u4e8b\uff09<\/del><br \/>\nroot#<em><strong> \/usr\/sbin\/spamtrainer -f<\/strong><\/em><br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n| |<br \/>\n| spamtrainer |<br \/>\n| |<br \/>\n| Version 1.8.5 |<br \/>\n| |<br \/>\n| Copyright (c) 2005 &#8211; 2007 |<br \/>\n| Athanasios Alexandrides &lt;tools@topicdesk.com&gt; |<br \/>\n| |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\nIf necessary, this will create the missing symbolic link in OS X 10.4.x.<br \/>\nIt will also fix other configuration issues in the default installation,<br \/>\nwhich prevent spamassassin from properly working with additional domains.<br \/>\nAll files modified by this routine will be first backed up in their<br \/>\nrespective directories<br \/>\nRead the &#8216;Caveats&#8217; chapter in the included documentation for more information.<br \/>\nWould you like to proceed? (yes\/no)<br \/>\n<em><strong>yes<\/strong><\/em><br \/>\nStopping amavisd&#8230;<br \/>\nIf you use Tiger Server 10.4.7 or higher, this may produce:<br \/>\n&#8216;Workaround Bonjour: Unknown error: 0&#8217;.<br \/>\nIt is safe to ignore it.<br \/>\nThe symbolic link from<br \/>\n\/var\/amavisd\/.spamassassin to \/var\/clamav\/.spamassassin<br \/>\nhas been verified and\/or fixed<br \/>\namavisd.conf needed no changes.<br \/>\nlocal.cf needed no changes.<br \/>\nStarting amavisd&#8230;<br \/>\nIf you use Tiger Server 10.4.7 or higher, this may produce:<br \/>\n&#8216;Workaround Bonjour: Unknown error: 0&#8217;.<br \/>\nIt is safe to ignore it.<br \/>\nroot# Workaround Bonjour: Unknown error: 0<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3060\u304b\u3089\u554f\u984c\u306a\u304f\u7d42\u4e86\u3002\u3067\u6b21\u306b\uff1b<br \/>\nroot# <em><strong>\/usr\/sbin\/spamtrainer -i<\/strong><\/em><br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n| |<br \/>\n| spamtrainer |<br \/>\n| |<br \/>\n| Version 1.8.5 |<br \/>\n| |<br \/>\n| Copyright (c) 2005 &#8211; 2007 |<br \/>\n| Athanasios Alexandrides &lt;tools@topicdesk.com&gt; |<br \/>\n| |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\nChecking if there is a startup item for &#8216;learn_junk_mail&#8217; or &#8216;spamtrainer&#8217;<br \/>\nThere IS NO plist for learn_junk_mail<br \/>\nThere IS a cron job for learn_junk_mail, but it is DISABLED<br \/>\n\uff08cron\u306ejunkmail\u5b66\u7fd2\u304c\u52d5\u3044\u3066\u3044\u306a\u3044\u305e\u3000\u3060\u3063\u3066\uff09<br \/>\nWould you like me to re-enable it for you and remove &#8216;spamtrainer&#8217; (yes\/no)<br \/>\nYou will lose &#8216;spamtrainer&#8217; functionality<br \/>\n<em><strong>yes<\/strong><\/em><br \/>\n&#8216;learn_junk_mail&#8217; cron job has been enabled&#8217;<br \/>\n&#8216;spamtrainer&#8217; cron job has been removed&#8217;<br \/>\nYou can re-enable it by running &#8216;spamtrainer -i&#8217;<br \/>\nThere IS NO plist for spamtrainer<br \/>\nThere IS NO cron job for spamtrainer<br \/>\n\uff08cron \u306bspamtrainer \u304c\u767b\u9332\u3055\u308c\u3066\u306a\u3044\u305e\u3000\u3060\u3063\u3066\uff09<br \/>\nif you want to use &#8216;spamtrainer&#8217; it is recommended that this be added<br \/>\nWould you like me to enable it for you (yes\/no)<br \/>\n<em><strong>yes<\/strong><\/em><br \/>\nWhat time would you like the job to run (24-hour format)?<br \/>\nPlease enter the hour (1)<br \/>\n<em><strong> 1<\/strong><\/em><br \/>\nPlease enter the minutes (0)<br \/>\n<em><strong> 0<\/strong><\/em><br \/>\nWould you like SPAM\/HAM messages to be deleted after the learn process? (n)<br \/>\n<em><strong> y<\/strong><\/em><br \/>\nWould you like to log bayes stats into \/var\/log\/spamtrainer.log? (n)<br \/>\n<em><strong> y<\/strong><\/em><br \/>\nEnter name of mail store with SPAM\/HAM mailboxes? Enter for default (default)<br \/>\n<em><strong> default<\/strong><\/em><br \/>\nEnter name of mailbox with SPAM? Enter for default (junkmail)<br \/>\n<em><strong> junkmail<\/strong><\/em><br \/>\nEnter name of mailbox with HAM? Enter for default (notjunkmail)<br \/>\n<em><strong> notjunkmail<\/strong><\/em><br \/>\nThe following cron job for &#8216;spamtrainer&#8217; has been prepared<br \/>\n0 1 * * * \/usr\/sbin\/spamtrainer -p default -j junkmail -n notjunkmail -d -l<br \/>\nWould you like to add it? (yes\/no)<br \/>\n<em><strong> yes<\/strong><\/em><br \/>\nThe following cron job for &#8216;spamtrainer&#8217; has been enabled&#8217;<br \/>\n0 1 * * * \/usr\/sbin\/spamtrainer -p default -j junkmail -n notjunkmail -d -l<br \/>\nroot#<br \/>\n\u3067\u304a\u3057\u307e\u3044\u3002 \u3061\u306a\u307f\u306bspamtrainer \u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306f\uff1b<br \/>\n# man spamtrainer<br \/>\nspamtrainer(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BSD General Commands Manual\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 spamtrainer(1)<br \/>\n<strong>NAME<\/strong><br \/>\n<strong> spamtrainer<\/strong> &#8212; automated training of SpamAssassin database.<br \/>\n<strong>SYNOPSIS<\/strong><br \/>\n<strong> spamtrainer <\/strong>[<strong>-pdljnsabchifrv<\/strong>] [<strong>path<\/strong>] [<strong>partition_name<\/strong>] [<strong>file_name<\/strong>]<br \/>\n[options]<br \/>\n<strong>DESCRIPTION<\/strong><br \/>\n<strong>spamtrainer<\/strong> helps Mail Administrators in updating and maintaining their<br \/>\nSpamAssassin database.<br \/>\nWhen run, it will read the designated HAM and SPAM mailboxes, update the<br \/>\nSpamAssassin databases and delete mail that has been learned from.<br \/>\nIt will also check for updates. It is recommended that available updates<br \/>\nbe installed.<br \/>\nThe options are as follows:<br \/>\n<strong>-p<\/strong> [path]<br \/>\nSpecify a mail partition or store other than default<br \/>\n<strong> -d\u00a0\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0 Delete read\/learned mailboxes<br \/>\n<strong>-x <\/strong>[number_of_days]<br \/>\nSpecify how old mail must be to be deleted<br \/>\n<strong>-l\u00a0\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0 Log bayes stats into \/var\/log\/spamtrainer.log<br \/>\n<strong>-j <\/strong>[name]<br \/>\nSpecify the name of the mailbox containing junk<br \/>\n<strong> -n <\/strong>[name]<br \/>\nSpecify the name of the mailbox containing good mail<br \/>\n<strong>-t<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Use top level \/ shared folder instead of user folder<br \/>\n<strong>-b<\/strong> filename<br \/>\nBackup spamassassin bayes database to file<br \/>\n<strong>-r<\/strong> filename<br \/>\nRestore spamassassin bayes database from file<br \/>\n<strong>-s<\/strong> [path]<br \/>\nSpecify the path to the sa-learn program<br \/>\n<strong>-c\u00a0\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0 Clean\/purge the SpamAssassin database<br \/>\n<strong>-h\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0 Display help<br \/>\n<strong>-i\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0 Check and install a cron job for this script.<br \/>\n<strong>-f\u00a0\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0 Fix the amavisd\/spamassassin configuration on OS X 10.4.x<br \/>\n<strong>-a\u00a0\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0 Add rulesets on OS X 10.5.x and OS X 10.4.x<br \/>\n<strong>-v\u00a0<\/strong>\u00a0\u00a0\u00a0\u00a0\u00a0 Display version information.<br \/>\nAlternatively you can create a cron job that will run spamtrainer auto-<br \/>\nmatically at a given time.<br \/>\n<strong>EXAMPLES<\/strong><br \/>\n&#8212; Install startup item:<br \/>\n<strong>spamtrainer -i<\/strong><br \/>\n&#8212; Train with default values:<br \/>\n<strong>spamtrainer<\/strong><br \/>\n&#8212; Train with given partition NAME:<br \/>\n<strong>spamtrainer -p<\/strong> mymailpartition<br \/>\n&#8212; Train with given partition NAME and delete processed mail:<br \/>\n<strong>spamtrainer -p<\/strong> mymailpartition -d<br \/>\n&#8212; Train with given partition NAME, mailbox names and delete:<br \/>\n<strong>spamtrainer -p<\/strong> mymailpartition -j myjunkmailbox -n mynotjunkmailbox -d<br \/>\n<strong>FILES<\/strong><br \/>\n\/usr\/sbin\/spamtrainer<br \/>\n<strong>DIAGNOSTICS<\/strong><br \/>\nThe <strong>spamtrainer<\/strong> utility exits 0 on success, and &gt;0 if an error occurs.<br \/>\nSEE ALSO<br \/>\ncrontab(1), crontab(5)<br \/>\nAUTHORS<br \/>\nAthanasios Alexandrides &lt;tools@topicdesk.com&gt;<br \/>\nMac OSX\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 October 26, 2007\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Mac OSX<br \/>\n(END)<br \/>\n\u3068\u3044\u305f\u3063\u3066simple\u306a\u306e\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232"}],"version-history":[{"count":4,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":22060,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions\/22060"}],"wp:attachment":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}