Name | Modified | Size | Downloads / Week |
---|---|---|---|
SharemailMailets.jar | 2009-10-05 | 5.2 kB | |
james-jalls.sar | 2009-10-05 | 4.3 MB | |
jalls-readme.txt | 2009-10-04 | 3.2 kB | |
Totals: 3 Items | 4.3 MB | 0 |
JALLS - JAva Ldap List Server JALLS in an mailet for the Apache James mail server which enables you to use you existing groups in an LDAP directory as mailing lists. JALLS looks up the group based on the mail address, retrives the mail addresses of all the members of that group and then sends each of them a mail. It is known to work with Novell eDirectory and OpenLDAP, but should work with any LDAP directory that allows you to query group membership as an attribute of the group. Quick start 1. Download and install Java 6 from java.sun.com 2. Download the James binary distribution from http://james.apache.org/download.cgi (latest version at time of writing is 2.3.2). Unpack it to a directory 3. Download the james-jalls.sar from sourceforge, this is simply the 2.3.2 james sar archive with the JALLS mailet added. 4. Copy james-jalls.sar to the apps directory in the root of the directory where you unpacked James. In this directory rename james.sar to james.sar.dist. Rename james-jalls.sar to james.sar 5. Update the config.xml file in apps/james/SAR-INF to include sections to enable and configure the JALLS mailet (a complete sample config is available in the subversion respository) Change the mailetpackages stanza so that it looks like this: <mailetpackages> <mailetpackage>org.apache.james.transport.mailets</mailetpackage> <mailetpackage>org.apache.james.transport.mailets.smime</mailetpackage> <mailetpackage>com.sharemail.james.mailet</mailetpackage> <!--add this line to enable JALLS--> </mailetpackages> Add a configuration stanza to the root processor: <mailet match="RecipientIsRegex=(.*)@james.sharemail.com$" class="LDAPListMailet"> <LdapBindUrl>ldap://127.0.0.1/</LdapBindUrl> <!-- connection URL for the LDAP server --> <LdapBindDn>cn=admin,o=users</LdapBindDn> <!-- dn of the user to bind as, must have rights to query the group --> <LdapBindPassword>password</LdapBindPassword><!-- password of the user to bind as --> <GroupObjectClass>groupOfNames</GroupObjectClass><!-- objectClass of groups in LDAP, used to narrow the search --> <GroupNameAttribute>cn</GroupNameAttribute><!-- names of attribute holding the name of the group which maches the mail address (the bit before the @) --> <SearchContext>o=groups</SearchContext><!-- where in the LDAP directory to start the search for groups --> <MemberAttributeName>member</MemberAttributeName><!-- name of the attribute on a group object which holds the DNs of members --> <MailAttributeName>mail</MailAttributeName><!-- name of the attribute that holds the mail address for user objects --> <passThrough>FALSE</passThrough><!-- whether mail processing should continue after the JALLS mailet is finished --> </mailet> This configuration will search for a matching group for any mail that is address to <group name>@james.sharemail.com and resend the mail to all its members. Please note that you may well want to add restrictions on who can mail the group. Thsi can be achieved by configuring standard James mailets - see the James documentation. 6. Start James with bin/run.sh