You can turn require-auth off in jboss-service.xml. However then you'd be operating as an open relay and spammers would use you. This restriction is ONLY for UN-authenticated users. Meaning if I connect to your mail server, I can send YOU a mail regardless. I can't send email@example.com a mail using YOUR mail server.
When put in entries for domain, can only send from or to that domain. So, for example, put in e2.net as domain. Can send from e2.net and receive the e-mail. Can sent to e2.net, but instead of getting to e2.net, shows up in my inbox. If try to sent from domain not listed within domain element, get:
The e-mail account does not exist at the organization this message
was sent to. Check the e-mail address, or contact the recipient
directly to find out the correct address.
< iss05.interliant.com #5.1.1 SMTP; 550 Not Authorized>
This was my bad. the dev-deploy target on the build.xml wasn't including the remote-delivery mdb's jboss.xml descriptor. You can just copy jboss-mail/src/ejb/remotedeliverymdb-jboss.xml to $JBOSS_HOME/server/default/deploy/mail.ear/remotedeliverymdb.jar/META-INF and then touch applciation.xml. BTW, sorry for spamming you with a hundred test messages :-) Anyone using the regular deploy target shouldn't have been affected by this build bug.