I used as a reference mostly
http://james.apache.org/server/2.3.1/mailing_lists.html, but also the FAQ
entry, the mailet explanations on the documentation and a brief research on the
mailing list. Here it goes:
How to configure a mailing list?
The process of creating the mailing list is simple and consists in writing two
mailets and a repository to your config.xml.
Note that in all the code shown here, you should replace LISTNAME by the name
you want for the list, and DOMAIN by your domain name.
The first mailet you need to set is an instance of the [Avalon Listserv
Manager|1] mailet; it will handle subscribing and unsubscribing. The
[CommandForListserv|2] matcher is used to invoke match messages containing
commands for the mailing list:
LISTNAME
The commands to the mailing list would be given in the form of [EMAIL
PROTECTED], to subscribe and [EMAIL PROTECTED], to unsubscribe the mailing list.
The second mailet is an instance of the [Avalon Listserv|3] mailet. It receives
messages for the list and distributes them. The [RecipientIs|4] matcher is used
to match messages intended for the mailing list.
LISNAME
Asides from repositoryName, there are other possible configurations. All should
be used as value, inside . You can find a list at
http://james.apache.org/server/2.3.1/provided_mailets.html#AvalonListserv .
The mailing list mailets need a repository to store the subscriber list. There
is a separate repository for each mailing list, and they are completely
independent of the user repository used by James to manage e-mail accounts.
This is configured in the block of config.xml.
The following illustrates a file based repository, using the
UsersFileRepository class.
The following illustrates a database based repository using JDBC with the
ListUsersJdbcRepository class. Notice that there will be a single table, lists,
created in the db://maildb resource defined elsewhere. There are currently two
columns: the list name and the list subscriber.
file://conf/sqlResources.xml
Note that the destination URL is a child element when configuring a file based
repository, but an attribute when configuring a database based repository. This
inconsistency will be addressed in a future version of James.
[1]
http://james.apache.org/server/2.3.1/provided_mailets.html#AvalonListservManager
[2]
http://james.apache.org/server/2.3.1/provided_matchers.html#CommandForListserv
[3] http://james.apache.org/server/2.3.1/provided_mailets.html#AvalonListserv
[4] http://james.apache.org/server/2.3.1/provided_matchers.html#RecipientIs
I used [this|notation] for what should be links in a final version. So, what do
you think of the document?
Thanks, Alessandro
--
DELGADO, Alessandro
adelgado1313 [at] gmail [dot] com
Rio de Janeiro, RJ - BRASIL
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]