SpamAssassin employs a multi-faceted approach to detect spam. It uses rule-based scoring, Bayesian filtering, blacklists, and heuristics to evaluate the content and metadata of incoming emails. Each email is given a score based on these criteria, and if the score exceeds a certain threshold, the email is marked as spam.