The following documentation describes the steps to teach the Bayesian classifier in spam recognition. The Bayesian classifier can be used on either an email storage server (where email recipients have local accounts) or on an email gateway. The difference in operation will be discussed later.