MailStore Server is one of the leading email archiving solutions for SMB.
For private use there is a free tool for email archiving furthermore: MailStore Home.