Install Spamassassin, ClamAV, and Amavisd-new
You can just run emerge on these packages. Note that as of today, the mail-filter/spamassassin in Portage is still version 3.2.1, which is a bit old. If you want the latest, you can find the latest dev version from Gentoo mail-filter category packages page. To install the masked mail-filter/spamassassin-3.2.5, put the following line in /etc/portage/package.keywords:
Recent comments
8 weeks 5 days ago
9 weeks 4 days ago
20 weeks 4 days ago
21 weeks 6 days ago
30 weeks 5 days ago
30 weeks 6 days ago
31 weeks 6 days ago
32 weeks 5 days ago
32 weeks 5 days ago
32 weeks 6 days ago