If I recall correctly, the mail list stuff is not part of the M1 release, so you will need to use the latest from CVS. It comes in two flavours Memory (Configured via jboss-service.xml in the sar) and Entity (Stored in underlying Db).
Not sure if the memory version is 100% thread safe - it is meant primarily for testing, so use the entity version. The tables are ENTITYMAILLIST and ENTITYMAILLISTMEMBER, look at the config for the memory one to find the acceptable values.
Be warned though, that this stuff is still kind of in alpha stage.
eventually we should have more of a high level API for mail-based applciations.
is there any doc for jboss mail at all? I found the one on jboss mail page has broken link to the doc. Any sample code for jboss mail?
You need to look harder:
also notice the big fat link ("wiki: JBossMail pages") on this page:
which is linked off of "projects" on the main page.
there is even this page:
which explicitly describes installing it step by step.