-----Original Message----- From: Giulio Troccoli [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 11:23 AM To: server-user@james.apache.org Subject: James mailing lists
Hi everybody, I would like to create few mailing lists (actually 4) on my email server using James. I already use James for "normal" email and it works fine. I might be wrong, but it look like that everything can be nicely done using james-listmanager.xml, james-liststores.xml and miResources.xml, and uncommenting the entities listserverConfig and listserverStores in config.xml. Am I right is this? Is it really possible to do it this way? I'm sure there are other ways, but I like this one as I keep all the settings for the mailing lists in a single place. I have changed james-listmanager.xml and james-liststores.xml in a way that I think is correct (showed at the end), but I'm not sure how to change miResources.xml in the part that says at the beginning <matchers> <matcher for="custom" match="My Custom List"/> </matchers> If I send an email to the mailing list I don't have anything back and I would expect an error saying that I have not subscribed to the list. The mail is successfully spooled (as the smtpserver log file says) and everything seems fine by the log, but no error email. Here is the content of james-listmanager.xml <mailet match="[EMAIL PROTECTED]" class="CommandListservManager"> <!-- CHECKME! --> <!--resources--> <resources>/usr/james-2.2.0/apps/james/conf/miResources.xml</resources> <!-- general information --> <listName>menudelgiorno</listName> <displayName>Menu Del Giorno</displayName> <listOwner>[EMAIL PROTECTED]</listOwner> <repositoryName>menudelgiorno</repositoryName> <listDomain>localhost</listDomain> <!-- the packages where the commands can be loaded from --> <commandpackages> <commandpackage>org.apache.james.transport.mailets.listservcommands</com mandpackage> </commandpackages> <!-- all the available commands for this command. --> <commands> <command name="subscribe" class="Subscribe"/> <command name="subscribe-confirm" class="SubscribeConfirm"/> <command name="unsubscribe" class="UnSubscribe"/> <command name="unsubscribe-confirm" class="UnSubscribeConfirm"/> <command name="error" class="ErrorCommand"/> <command name="owner" class="Owner"/> <command name="info" class="Info"/> </commands> </mailet> <!-- the processor for this list serv --> <mailet match="[EMAIL PROTECTED]" class="CommandListservProcessor"> <membersonly>false</membersonly> <attachmentsallowed>false</attachmentsallowed> <replytolist>false</replytolist> <repositoryName>menudelgiorno</repositoryName> <subjectprefix>Menu Del Giorno</subjectprefix> <autobracket>true</autobracket> <listOwner>[EMAIL PROTECTED]</listOwner> <listName>menudelgiorno</listName> </mailet> And of james-liststores.xml <repository name="menudelgiorno" class="org.apache.james.userrepository.UsersFileRepository"> <destination URL="file://var/lists/menudelgiorno/"/> </repository> Thanks Giulio >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hi Giulio, If you change the line: <membersonly>false</membersonly> to true it should keep non-members from sending to the list and give an error message (email) when they do. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]