Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Using hMailServer for Functional tests
PostPosted: 2010-08-02 02:21 
New user
New user

Joined: 2010-08-01 23:04
Posts: 1
Admittedly while I know generally what I want to accomplish, I am not sure exactly what I takes to do it.

I have a system of programs that send emails to various users based on options flag.

Testing all the option flags combinations is getting tedious and I would like to automate it, however the testing is done inside a VPN with firewalls . . . no outside contact with the Intranet, much less the Internet (though I believe ports associated with DNS lookup are open). So if I am going to send/receive emails inside this environment I need to provide the mail servers.

Additionally, I would like to do a fresh install each time the functional test is run . . . not leave a server setup inside the VPN full time.

So I need to:

1. setup and configure a server from the command line, including adding all user accounts

2. run the tests which send email and then later verify that the email was received

3. Throw it all away 10 minutes later

Is hMailServer a tool that can do this or should I look elsewhere? (If so where?)

Given hMailServer is free, what is the licensing like? Can I use it in a business setting without compromising the licensing on our company software?

Frank


Top
 Profile  
 
 Post subject: Re: Using hMailServer for Functional tests
PostPosted: 2010-08-02 04:37 
Developer
Developer

Joined: 2010-04-24 23:16
Posts: 6165
Location: Michigan, USA
Hi Frank,
I'd imagine you should be able to do all that with hmail as the mail server.. hmail has COM support (to do MANY things from vbscript/php/etc from command line if needed) plus if you are careful you can modify the SQL database directly if needed.
Here is some info:
http://www.hmailserver.com/documentatio ... om_objects
http://www.hmailserver.com/documentatio ... unt_create
http://www.hmailserver.com/documentatio ... ce_scripts

As far as "Throwing it all away" would deleting the Data folder (all emails are stored there) and creating a new hmail database suffice? Could always uninstall hmail & reinstall it if needed but not sure of your exact requirements. I actually have virtual machines setup with everything fresh & have undo enabled so I can easily close it & clear undo to start back at square one easily (for testing) without need to install everything again so not sure if that'd be useful to you.

As far as licensing, hmail4 was open source under GPL but hmail5 is closed source & still free. martin (the author) has announced hmail5.4 will be open again but not announced exact licensing. I was trying to find the license on this site but have been unable to but you can download the latest version & open License.rtf that is included with it if you want to read the entire text. I'd paste here but it is VERY long.
http://www.hmailserver.com/?page=download
Hope that helps.
Bill

_________________
hMailServer build LIVE on my servers: 5.4-B2014050402
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420
Urgent? Bored? JOIN US ON IRC!
DOGE ME: DSqtEcqP3Qv6Tj2XrGNpDmEUkSBcpBsuWk


Top
 Profile  
 
 Post subject: Re: Using hMailServer for Functional tests
PostPosted: 2010-08-02 09:03 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 11906
Location: 'The Outback' Australia
I'd also look at virtualisation.

Get a hmailserver ready to do what you want, then virtualise it.
Copy the virtual disk, and run it. To trash just delete it. Copy again for a new run (always leaving one ready to be copied again).

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group