Perform the following steps to deploy SpamAssassin:
Install and configure SpamAssassin. Refer to the SpamAssassin software documentation for installation and configuration information. See also SpamAssassin Options.
Load and configure the SpamAssassin client library. This involves specifying the client library, libspamass.so, and configuration file to the MTA (you must create this file). See Loading and Configuring the Spam Filtering Software Client Library
Specify what messages to filter for spam. Messages can be filtered by user, domain, or channel. See Specifying the Messages to Be Filtered
Specify what actions to take on spam messages. Spam can be discarded, filed into a folder, tagged on the subject line, and so on. See Specifying Actions to Perform on Spam Messages
Set miscellaneous filter configuration parameters as desired. See Table 14–2