Is it possible to install the SMTP server that you can install in Windows Server 2008 in Windows 7? Or something similar?
I'm developing an application that will make use of it and I want to be able to test it and try it locally.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Since I needed this only for development, I ended up using smtp4dev, which is exactly what you need when developing an application that sends emails.
The project description:
Dummy SMTP server that sits in the system tray and does not deliver the received messages. The received messages can be quickly viewed, saved and the source/structure inspected. Useful for testing/debugging software that generates email.
For .NET applications on Windows, you can add the following to your web.config or app.config file to capture outgoing email into a local folder for viewing.
The specifiedPickupDirectory element needs to be customized with a path on your hard disk that allows the web site user or app pool writable permissions (e.g. Network Service or whatever the site is running under).
</configuration> <!-- other configuration elements --> <system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory pickupDirectoryLocation="C:\capture\mail" /> </smtp> </mailSettings> </system.net> </configuration>
hMailServer is the easiest way to get an SMTP service running on Windows 7 and Vista.
IIRC Windows 2008 includes the old SMTP service that came with IIS6 (you'll find it under the II6 compatibility/legacy section or the features/roles areas) though this is unlikely to appear in later Windows Server editions and isn't found in Vista at all so I would recommend against relying on it.
On older Windows versions I would recommend Cygwin's exim port, but I have had trouble with that on 2008 (last time I checked Vista and 2008 were not officially supported platforms though that may have changed by now, but I doubt 7 is supported yet).
A quick Google brings up hMailServer that seems to be free though no longer open source (you can still get the source for the older 4.x versions).
Other than that, you could add a basic Linux install somewhere on your network, perhaps in a virtual machine running on one of your existing machines or a little old PC you have spare. A very basic (no X) Debian install running Exim4 should fit in 64Mb.