For unit tests I'm not really sure, but one test could be to see if you can construct 
a Mail object with an empty from address and if SMTPSender can send that.

For real-world testing I think you would need two machines running smtp servers on 
port 25. At least one of them would need to be running JBoss.

My setup for testing the addition of standard headers was:

a) Our dev server at work has a live IP address
b) My home adsl line has a live IP address

I modified the hosts file of a) to point kabathome.com to the IP of b), and set up an 
smtp server (the one that comes with IIS, but it could have been JBoss too) on a). On 
b) I am running JBoss SMTP on standard port 25. When connecting to a) with a client 
and sending mails to [EMAIL PROTECTED] it goes to b). I had to set up JBoss Mail on a) 
to have kabathome.com as one of the local domains.

If you are sending from a) to b) and want to bounce back to a), I think you could 
expand this a bit, something along the lines of: 

Make b)'s hosts file point the domain of the senders address back to a) to resolve the 
return IP address. In my setup there is no POP server on a), but you could use a 
protocol analyzer to see what is sent on port 25. This one is free: 
http://analyzer.polito.it

Cheers,

Kab

PS If  you find an easier way let me know.... :-)

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827508#3827508";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827508>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to