Setting up Bogofilter, a Bayesian Antispam for Postfix & Dovecot

How I migrated from SpamSieve to Bogofilter for spam filtering on my Postfix + Dovecot self-hosted email stack. Spam is now identified and moved to the Junk folder by my server.