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
2 weeks 5 days ago
3 weeks 6 days ago
7 weeks 4 days ago
32 weeks 4 days ago
33 weeks 3 days ago
44 weeks 3 days ago
45 weeks 5 days ago
1 year 2 weeks ago
1 year 2 weeks ago
1 year 3 weeks ago