Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need to test SMTP email sending capability that I just added to my java app. So far, I only tested it using my private Gmail account. It works fine.

Now I would like to test various settings: SSL, no SSL, TLS, no TLS, change ports, require authenticaton or no authentication, etc. This is because this app will soon go to customers, and I presume they all have different SMTP settings. I'd like to make sure the app works in majority of cases.

How should I test my app email sending capabilities?

Should I set-up some SMTP server on my local Windows 7 machine?

Which way to go?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The only way you can test all the possible combinations is to set up or connect to servers that use them all. There is simply no other way. If you're going to test this on your workstation then don't set it up under Windows 7. Install Virtualbox (or whatever other virtualisation system you like) and install virtual machines that have the various configurations you want to test against.

share|improve this answer
    
Thanks. Once I set up let's say Linux inside a virtual machine, shouldn't I be able to set up SMTP and configure it the way I want? –  Danijel Oct 10 '12 at 12:33
    
Correct. I suggest you start by creating a base install of whatever OS you want to use, together with an SMTP server, then save a snapshot of it. You can then revert to that snapshot each time you need a new configuration and just make the required changes, rather than having to do a new install each time. It there is a chance you may want to repeat these tests in the future you could also export and save each configured version before reverting to the snapshot. –  John Gardeniers Oct 10 '12 at 16:40
    
OK. Shouldn't I be able to reconfigure SMTP without reinstalling whole OS? Isn't there a settings where I can define SSL or TLS for example? Does that really require total reinstall? –  Danijel Oct 10 '12 at 19:52
    
Perhaps you should reread my previous comment. Yes, you can reconfigure but by taking it back to the snapshot you will have a cleaner base to work with. –  John Gardeniers Oct 10 '12 at 21:36
    
"Shouldn't I be able to reconfigure SMTP without reinstalling whole OS?" –  Danijel Oct 10 '12 at 22:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.