Hi,
I have not done much work with JNDI but from your explanation it sounds like the host that your application is on is not allowed to send mail using that SMTP server. Is the SMTP server and Glassfish on different hosts? What MTA are you using?
[Message sent by forum member 'nayabinghi' (nayabinghi)]
http://forums.java.net/jive/thread.jspa?messageID=264928