Install and configure mailman with xml-rpc functionality
- Be sure you have python installed
- Get mailman sources from http://mailman.sourceforge.net/download.html
- Get appropriate patch with xml-rpc support i.e. mailman-xmlrpc-2.1.7.patch
- Apply patch
- Build and install patched mailman to mailman directory i.e. MAILMAN_HOME=/usr/local/mailman
- Integrate mailman with your MTA see http://mailman.sourceforge.net/mailman-install/index.html for more details.
- Set site admin password using $MAILMAN_HOME/bin/mmsitepass
- Configure xmlrpc server adding following lines to $MAILMAN_HOME/Mailman/mm_cfg.py
Run Standalone XMLRPC Server.
Goto to ./Mailman directory in MAILMAN_HOME directory
Run xmlrpc server:
On a production grade system you should put run the server under a service wrapper, for example daemontools.
Configure Cyklotron2 Mailing List Mangager
- Create monitoring mail account to receive all messages coming to mailing list.
This address will be subscribed to all mailing lists created by Cyklotron2 system and all coming messages will be processed
and synchronized with forum. The account needs to be accessible through POP3 protocol.
- Configure additional mail session in Mail System to provide access to monitoring account.
Extract config/org.objectledge.mail.MailSystem.xml from the application archive into DATA_DIR_PATH/config, and edit it with the following contents, filling in apropriate domain, host name and password.
<config>
<system_email>system@yourdomain</system_email>
<sessions>
... (if config already exists there should go some session definitions...)
<session name="list-monitoring">
<property name="transport.protocol">pop3</property>
<property name="pop3.host">mailhost.yourdomain</property>
<property name="pop3.auth">true</property>
<property name="pop3.user">list-monitoring</property>
<credentials>
<credential protocol="pop3" username="list-monitoring" password="*****"/>
</credentials>
</session>
</sessions>
</config>
- Configure MailmanMailingListsManager component.
create file DATA_DIR_PATH/config/org.objectledge.mail.MailmanMailingListsManager.xml with the following contents:
<config> <!-- mailman rpc server address --> <address>http://rpc.mailman.address:port/context/</address> <!-- mailman administrator password --> <password>mailman admin password</password> <!-- monitoring email address --> <monitoring_address>list-monitoring@yourdomain</monitoring_address> <!-- monitoring session defined in mail system --> <monitoring_session>list-monitoring</monitoring_session> </config>
- Enable MailmanMailingListsManager in the application configuration.
Extract config/container.xml from the application archive into DATA_DIR_PATH/config, find component entry for "org.objectledge.mail.MailingListManager" and change implementation class to "org.objectledge.mail.MailmanMailingListManager" (Cyklotron is shipped with "org.objectledge.mail.DummyMailingListManager" configured).
