{"id":73,"date":"2007-04-13T15:16:55","date_gmt":"2007-04-13T06:16:55","guid":{"rendered":"http:\/\/mike.md.tsukuba.ac.jp\/terui\/blog\/?p=73"},"modified":"2021-12-27T07:46:18","modified_gmt":"2021-12-26T22:46:18","slug":"spamassassin-training","status":"publish","type":"post","link":"https:\/\/nbsigh2.com\/?p=73","title":{"rendered":"spamassassin training"},"content":{"rendered":"<p>OSX\u306espam\u30e1\u30fc\u30eb\u5bfe\u7b56\u306b\u306fspamassassin \u304c\u3042\u3063\u3066\u3001\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u3088\u308c\u3070\u81ea\u52d5\u7684\u306b\u5b66\u7fd2\u3059\u308b\u304c\u3001\u5b66\u7fd2\u3057\u305f\u30e1\u30fc\u30eb\u3092\u5ec3\u68c4\u3057\u306a\u3044\u3000\u3068\u306a\u3063\u3066\u3044\u308b\u3002\u3084\u3063\u3066\u3089\u308c\u306a\u3044\u306e\u3067\u3000<a href=\"http:\/\/osx.topicdesk.com\/spamtrainer\/#download\">Spamtrainer<\/a> \u3092\u5c0e\u5165\u3057\u305f\u3002<br \/>\n\u89e3\u51cd\u3057\u3066\u3001\u7d20\u76f4\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<br \/>\nspammail notspammail \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u306f\u30de\u30cb\u30e5\u30a2\u30eb\u901a\u308a\u306b\u4f5c\u3063\u3066\u3042\u3063\u305f\u304b\u3089\u3001<br \/>\n\u307e\u305a\u3001Spamtrainer \u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u3057\u305f\u304c\u3063\u3066\u3001root \u6a29\u9650\u3067\u3001spamtrainer -f\u3092\u5b9f\u884c\u3002<br \/>\nroot# <em><strong>\/usr\/sbin\/spamtrainer -f<\/strong><\/em><br \/>\n<em>If 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><em><strong>yes<\/strong><\/em><br \/>\nStopping amavisd&#8230;<br \/>\nIf you use 10.4.7 or 10.4.8, 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 created<br \/>\nThe existing directory \/var\/amavisd\/.spamassassin has been<br \/>\nbacked up to \/var\/amavis\/.spamassassin_04132007-130258<br \/>\nThe existing file \/etc\/amavisd.conf has been<br \/>\nbacked up to \/etc\/amavisd.conf_back_04132007-130258<br \/>\n@local_domains_maps = ( 1 ); was added to amavisd.conf<br \/>\nThis ensures that additional domains will get processed<br \/>\nby the content filter as well.<br \/>\nThe existing file \/etc\/local.cf has been<br \/>\nbacked up to \/private\/etc\/mail\/spamassassin\/local.cf_back_04132007-130300<br \/>\nlocal.cf was fixed<br \/>\nThis ensures the settings are correct for your system.<br \/>\nStarting amavisd&#8230;<br \/>\nIf you use 10.4.7 or 10.4.8, 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\u6b21\u306b\u3001\u8aad\u307f\u8fbc\u3080\u30e1\u30fc\u30eb\u3068\u5b9f\u65bd\u3059\u308b\u6642\u9593\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081<br \/>\n\/usr\/sbin\/spamtrainer -i\u3000\u3092\u5b9f\u884c<br \/>\nroot# <em><strong>\/usr\/sbin\/spamtrainer -i<\/strong><\/em><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<br \/>\nIf you want to use &#8216;spamtrainer&#8217; it IS RECOMMENDED that this cron be disabled<br \/>\nWould you like me to disable it for you (yes\/no)<br \/>\n<em><strong>yes<\/strong><\/em><br \/>\n&#8216;learn_junk_mail&#8217; cron job has been disabled&#8217;<br \/>\nThere IS NO plist for spamtrainer<br \/>\nThere IS NO cron job for spamtrainer<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<strong><em>y<\/em><\/strong><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\u3053\u308c\u3067\u3000junkmail, notjunkmail \u3092\u6bce\u65e5\u5348\u524d\uff11\u6642\u306b\u8aad\u307f\u8fbc\u307f\u3001\u6d88\u53bb\u3059\u308b\u306f\u305a\uff0e\uff0e\uff0e<\/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-73","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/73","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=73"}],"version-history":[{"count":1,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":19597,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions\/19597"}],"wp:attachment":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}