hmLoadTopic({
hmKeywords:"Bayesian,Bayesian Classification,Bayesian Learning,Spam,Spam Bayesian Learning,Spam Classification,Spam Directory,Spam False negative classification,Spam False positive classification,Spam Non-spam directory",
hmTitle:"Bayesian Classification",
hmDescription:"Bayesian Classification is unavailable when you have configured MDaemon to use another server\'s MDaemon Spam Daemon (MDSpamD) for Spam Filter processing. All Bayesian learn",
hmPrevLink:"sf_spam_filtering.html",
hmNextLink:"sf_bayesian_advanced_options.html",
hmParentLink:"sf_spam_filter.html",
hmBreadCrumbs:"<a href=\"security_menu.html\">Security Menu<\/a> &gt; Spam Filter &gt; <a href=\"sf_spam_filter.html\">Spam Filter<\/a>",
hmTitlePath:"Security Menu > Spam Filter > Spam Filter > Bayesian Classification",
hmHeader:"<h1 class=\"p_Heading1\" style=\"page-break-after: avoid;\"><span class=\"f_Heading1\">Bayesian Classification<\/span><\/h1>\n\r",
hmBody:"<p class=\"p_BodyText_Center\"><img style=\"margin:0 auto 0 auto;width:32.5000rem;height:25.6250rem;border:none\" src=\".\/images\/spam-filter_bayesian.png\"\/><\/p>\n\r<p style=\"margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><span style=\"font-family: Arial,Helvetica,sans-serif; color: #000000;\">&nbsp;<\/span><\/p>\n\r<p style=\"margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><span style=\"font-family: Arial,Helvetica,sans-serif; color: #000000;\">&nbsp;<\/span><\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\">Bayesian Classification is unavailable when you have configured MDaemon to use another server\'s MDaemon Spam Daemon (MDSpamD) for Spam Filter processing. All Bayesian learning will be performed on the other server. See the <a href=\"sf_mdspamd.html\" class=\"topiclink\">Spam Daemon<\/a> screen for more information.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">The Spam Filter supports Bayesian learning, which is a statistical process that can optionally be used to analyze spam and non-spam messages in order to increase the reliability of spam recognition over time. You can designate a folder for spam messages and non-spam message that will can be scanned manually or automatically at regular intervals. All of the messages in those folders will be analyzed and indexed so that new messages can be compared to them statistically in order to determine the likelihood that they are spam. The Spam Filter can then increase or decrease a message<\/span><span style=\"font-family: \'Times New Roman\',Times,Georgia,serif; color: #010100;\">\'<\/span><span class=\"f_BodyText\">s spam score based upon the results of its Bayesian comparison.<\/span><\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\">The Spam Filter will not apply a Bayesian classification to messages until a Bayesian analysis has been performed on the number of spam and non-spam messages designated on the <a href=\"sf_bayesian_advanced_options.html\" class=\"topiclink\">Bayesian Auto-learning<\/a> screen. This is necessary in order for the Spam Filter to have a sufficient pool of statistics to draw from when making the Bayesian comparison. Once you have given the system these messages to analyze, it will be sufficiently equipped to begin applying the results of a Bayesian comparison to each incoming message<\/span><span style=\"font-family: \'Times New Roman\',Times,Georgia,serif;\">\'<\/span><span class=\"f_Notes\">s spam score. By continuing to analyze even more messages the Bayesian classifications will become more accurate over time.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_DialogSectionHeading\" style=\"page-break-after: avoid;\"><span class=\"f_DialogSectionHeading\">Bayesian Classification<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Enable Bayesian classification<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Click this check box if you want each message<\/span><span style=\"font-family: \'Times New Roman\',Times,Georgia,serif; color: #010100;\">\'<\/span><span class=\"f_ControlIndent\">s spam score to be adjusted based on a comparison to the currently known Bayesian statistics.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Schedule Bayesian learning for midnight each night<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">When this option is active, once each day at midnight the Spam Filter will analyze and then delete all messages contained in the spam and non-spam folders specified below. If you wish to schedule Bayesian learning for some other time interval then clear this option and use the<\/span><span class=\"f_ControlIndent\"> <\/span><span style=\"font-family: Arial,Helvetica,sans-serif; font-style: italic; color: #010100;\">Schedule Bayesian learning for once every [xx] hours<\/span><span class=\"f_ControlIndent\"> option below. If you do not wish Bayesian learning to ever occur automatically, then clear this option and specify &quot;0&quot; hours in the option below.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Schedule Bayesian learning for once every<\/span><span class=\"f_ControlHeading\"> [xx] hours (0=never)<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">If you wish Bayesian learning to occur at some time interval other than once each night at midnight, then clear the above option and specify a number of hours in this option instead. Each time that number of hours has elapsed, the Spam Filter will analyze and then delete all messages contained in the spam and non-spam folders specified below. If you do not wish Bayesian learning to ever occur automatically, then clear the above option and specify &quot;0&quot; hours in this option.<\/span><\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\">If for some reason you do not want the messages to be deleted after they are analyzed then you can prevent that by copying <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">LEARN.BAT<\/span><span class=\"f_Notes\"> to <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">MYLEARN.BAT<\/span><span class=\"f_Notes\"> in the <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">\\MDaemon\\App\\<\/span><span class=\"f_Notes\"> subfolder and then deleting the two lines that begin with &quot;<\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">if exist<\/span><span class=\"f_Notes\">&quot; near the bottom in that file. When the <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">MYLEARN.BAT<\/span><span class=\"f_Notes\"> file is present in that folder MDaemon will use it instead of <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">LEARN.BAT<\/span><span class=\"f_Notes\">. See <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">SA-Learn.txt<\/span><span class=\"f_Notes\"> in your <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\">\\MDaemon\\SpamAssassin\\<\/span><span class=\"f_Notes\"> subfolder for more information.<\/span><\/p>\n\r<p class=\"p_Notes\"><span class=\"f_Notes\">For more detailed information on heuristic spam filtering technology and Bayesian learning, visit:<\/span><br \/>\n\r<span class=\"f_Notes\">&nbsp;<\/span><br \/>\n\r<span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace;\"><a href=\"http:\/\/www.spamassassin.org\/doc\/sa-learn.html\" target=\"_blank\" class=\"weblink\">http:\/\/www.spamassassin.org\/doc\/sa-learn.html<\/a><\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Don<\/span><span style=\"font-size: 0.80rem; font-family: \'Times New Roman\',Times,Georgia,serif; font-weight: bold;\">\'<\/span><span class=\"f_ControlHeading\">t learn from messages larger than<\/span><span class=\"f_ControlHeading\"> [xx] bytes (0=no limit)<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Use this option to designate a maximum message size for Bayesian analysis. Messages larger this value will not be analyzed. Specify &quot;0&quot; in this option if you do not wish to implement any size restriction.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Learn<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Click this button to initiate a manual Bayesian analysis of the designated folders rather than waiting for the automatic analysis.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Enable spam and ham forwarding addresses<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Click this check box if you wish to allow users to forward spam and non-spam (ham) messages to designated addresses so that the Bayesian system can learn from them. The default addresses that MDaemon will use are &quot;<\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace; color: #010100;\">SpamLearn@&lt;domain&gt;<\/span><span class=\"f_ControlIndent\">&quot; and &quot;<\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace; color: #010100;\">HamLearn@&lt;domain&gt;<\/span><span class=\"f_ControlIndent\">&quot;. Messages sent to these addresses must be received via SMTP from a session that is authenticated using SMTP AUTH. Further, MDaemon expects the messages to be forwarded to the above addresses as attachments of type &quot;<\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace; color: #010100;\">message\/rfc822<\/span><span class=\"f_ControlIndent\">&quot;. Any message of another type that is sent to these email addresses will not be processed.<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">You can change the addresses MDaemon uses by adding the following key to the <\/span><span style=\"font-size: 1.10rem; font-family: \'Courier New\',Courier,monospace; color: #010100;\">CFilter.INI<\/span><span class=\"f_ControlIndent\"> file:<\/span><\/p>\n\r<p class=\"p_Code2\"><span class=\"f_Code2\">[SpamFilter]<\/span><\/p>\n\r<p class=\"p_Code2\"><span class=\"f_Code2\">SpamLearnAddress=MySpamLearnAddress@<\/span><\/p>\n\r<p class=\"p_Code2_LastItem\"><span class=\"f_Code2_LastItem\">HamLearnAddress=MyNonSpamLearnAddress@<\/span><\/p>\n\r<p class=\"p_ControlIndent2\"><span style=\"font-weight: bold;\">Note:<\/span><span class=\"f_ControlIndent2\"> the last character of these values must be &quot;@&quot;.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Create<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Click this button to create spam and non-spam <a href=\"public-shared-folders_overview.html\" class=\"topiclink\">Public IMAP Folders<\/a> automatically, and to configure MDaemon to use them. The following folders will be created:<\/span><\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0.3125rem 0.8750rem 3.1250rem;\"><table style=\"border:none; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:19.8125rem; padding:0; border:none\"><p class=\"p_BodyText\"><span class=\"f_T_Code\">\\Bayesian Learning.IMAP\\<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:20.8750rem; padding:0; border:none\"><p class=\"p_ControlIndent\"><span class=\"f_BodyText\">Root IMAP folder<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:19.8125rem; padding:0; border:none\"><p class=\"p_BodyText\"><span class=\"f_T_Code\">\\Bayesian Learning.IMAP\\Spam.IMAP\\<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:20.8750rem; padding:0; border:none\"><p class=\"p_ControlIndent\"><span class=\"f_BodyText\">This folder is for false negatives (spam that doesn\'t score high enough to get flagged as such).<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<tr>\n\r<td style=\"vertical-align:top; width:19.8125rem; padding:0; border:none\"><p class=\"p_BodyText\"><span class=\"f_T_Code\">\\Bayesian Learning.IMAP\\Non-Spam.IMAP\\<\/span><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:20.8750rem; padding:0; border:none\"><p class=\"p_ControlIndent\"><span class=\"f_BodyText\">This folder is for false positives (non-spam messages that erroneously score high enough to get flagged as spam).<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">By default, access permission to these folders is only granted to local users of local domains and is limited to Lookup and Insert. The postmaster<\/span><span style=\"font-family: \'Times New Roman\',Times,Georgia,serif; color: #010100;\">\'<\/span><span class=\"f_ControlIndent\">s default permissions are Lookup, Read, Insert, and Delete.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Path to known spam folder (false negatives):<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">This is the path to the folder that will be used for Bayesian analysis of known spam messages. Only copy messages to this folder which you consider to be spam. You should not automate the process of copying messages to this folder unless doing so via the <a href=\"sf_bayesian_advanced_options.html\" class=\"topiclink\">Bayesian Auto-learning<\/a> or <a href=\"spam_traps.html\" class=\"topiclink\">Spam Honeypots<\/a> options. Automating this process by some other means could potentially cause non-spam messages to be analyzed as spam, which would decrease the reliability of the Bayesian statistics.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Path to known non-spam folder (false positives):<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">This is the path to the folder that will be used for Bayesian analysis of messages that are definitely <\/span><span style=\"font-family: Arial,Helvetica,sans-serif; font-weight: bold; color: #010100;\">not<\/span><span class=\"f_ControlIndent\"> spam. Only messages that you do <\/span><span style=\"font-family: Arial,Helvetica,sans-serif; font-weight: bold; color: #010100;\">not<\/span><span class=\"f_ControlIndent\"> consider to be spam should be copied to this folder. You should not automate the process of copying messages to this folder unless doing so via the <a href=\"sf_bayesian_advanced_options.html\" class=\"topiclink\">Bayesian Auto-learning<\/a> options. Automating this process by some other means could potentially cause spam messages to be analyzed as non-spam, which would decrease the reliability of the Bayesian statistics.<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Pub Folder<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Click one of these buttons to designate one of your existing Public Folders as the Bayesian directory. This is an easy way for your users to place their messages incorrectly categorized as spam or non-spam into your Bayesian directories for analysis. Note, however, that giving access to more people increases the likelihood that some messages will be put into the wrong folders thus skewing the statistics and decreasing reliability.<\/span><\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\">If you rename a Public folder via a mail client, Windows Explorer, or some other means, then you must manually reset this path to the appropriate new folder name. If you rename a folder but do not change its path here, the Spam Filter will continue to use this path for the Bayesian folder instead of the new one.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_SeeAlso\" style=\"page-break-after: avoid; border-right: none; border-bottom: none; border-left: none;\"><span class=\"f_SeeAlso\">See:<\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"sf_bayesian_advanced_options.html\" class=\"topiclink\">Bayesian Auto-learning<\/a><\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"spam_traps.html\" class=\"topiclink\">Spam Honeypots<\/a><\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">&nbsp;<\/span><\/p>\n\r"
})
