hMailServer can be configured to behave as a dummy smtp, pop3 and/or imap server
These are instructions from http://csns.calstatela.edu/wiki/content/cysun/course_materials/hmailserver
During installation, choose:
- Full installation
- Use built-in database engine
- Run hMailServer Administrator
In hMailServer Administrator:
- Add a domain localhost.localdomain
- Add a catch-all address (Domain -> localhost.localdomain -> Advanced -> Catch-all address) , e.g. cysun@localhost.localdomain. If an email is sent to this domain but the address of the email does not match any existing account under this domain, the catch-all address will get this email.
- Add an account, e.g. cysun@localhost.localdomain .
- Under Settings -> Protocols -> SMTP -> Delivery of e-mail, specify the host name to be localhost .
- Under Advanced -> IP Ranges, delete Internet. This step is a safety measure to ensure that your email server will only be used locally. Under Advanced -> Auto-ban, uncheck Enabled so your account won't get automatically disabled if you mistype the password a few times.
I also downloaded and installed thunderbird to make it easier to manage emails on the server.