The following are a serie on "Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1)" in howtoforge:
In /etc/make.conf, add the following to USE
imap libwww maildir sasl ssl
In /etc/portage/package.use, add the following lines: