You can check Lumisoft Mail Server. The license is FREEWARE.
General:
* SMTP/POP3/IMAP4/WebMail
* IP access filtering
* User mailbox size limit
* Supports XML or MSSQL databases
* Nice GUI for administation
* Well commented source code included
SMTP:
* All basic smtp features
* Supports multiple domains
* Supports multiple e-address for one mailbox
* Supports aliases(Mailing lists). Supports public and private
(needs authentication) lists.
* Supports email routing. eg *ivar* pattern routes all addresses containing
ivar to specified mailbox or remote address
* SMTP AUTH (LOGIN CRAM-MD5) (supported authentication types)
* SMTP SIZE, PIPELINING, 8BITMIME, CHUNCKING support
* SMTP custom message filters
* Relay can be controlled by IP access or authentication
POP3:
* All basic pop3 features
* APOP command for secure authentication
* POP3 AUTH (LOGIN CRAM-MD5) (supported authentication types)
* POP3 remote accounts
WebMail (ASP.NET):
* Standalone webmail, can be used any with IMAP based mailserver
* Supports XML or MSSQL databases
* Multiple UI languages