What's a good mail server for development use?

2019-02-04 13:30发布

I'm doing some development which will involve reacting to emails, and I'd like to use a local IMAP mail server for this.

I currently use Devnull SMTP server for testing of sending emails, but this just logs and discards messages, it doesn't do IMAP for checking incoming emails/mailboxes.

I don't need/want a full-blown server, just something lightweight I can easily start/stop as required.

Multi-platform is preferred, but feel free to provide answer for specific platforms also.

(A POP3-based server would also be acceptable for development use, since I'll be supporting both in my code anyway.)

6条回答
Viruses.
2楼-- · 2019-02-04 13:47

Check out courier for unix-based machines. I've run it for quite some time on a linux machine, and it's very nice. You can easily enable/disable the features you want, including SMTP, POP, IMAP, SMTP Auth, SSL versions of protocols, etc.

查看更多
你好瞎i
3楼-- · 2019-02-04 13:54

Mdaemon is an excellent windows MTA. Lots of good reasons to use it in production too. Another different option is to use Gammadyne mailer in server mode.

查看更多
来,给爷笑一个
4楼-- · 2019-02-04 13:55

Take a look at hMailServer.

查看更多
何必那么认真
5楼-- · 2019-02-04 14:00

exim works nice even in windows via cygwin.

查看更多
Explosion°爆炸
6楼-- · 2019-02-04 14:06

Mercury Mail Server is a full featured mail server (minus webmail), however it is very light and should meet your need: Mercury Mail Server

Edit: Forgot to mention Windows/Netware only

查看更多
贼婆χ
7楼-- · 2019-02-04 14:07

I consider JAMES the best mail server for development. And its portable too. Fully written in Java.

查看更多
登录 后发表回答