On Fri, May 4, 2012 at 12:54 AM, Barry Warsaw <[email protected]> wrote:
> On May 03, 2012, at 09:20 PM, David wrote: > > >... I need a good tutorial on setting up the development environment, > > For me, it depends on whether you want to develop mm3 or install it. > I want to install and run it and play with it like a user. I'm not a python developer (at least not yet, and not sure if I'll ever get that far). > If instead you want to run Mailman 3, I recommend using virtualenv and > skipping buildout. > OK. Thanks for the advice. I'll detail my steps in case it helps someone else. (I also have a few questions mixed in below.) Here's what I did: install Ubuntu 12.04 create DNS records ssh into Ubuntu server sudo apt-get install build-essential python-dev python-virtualenv cd /opt/ wget https://launchpad.net/mailman/3.0/3.0.0b1/+download/mailman-3.0.0b1.tar.gz tar -xf mailman-3.0.0b1.tar.gz mkdir mailman3 (for virtualenv - see note below about correcting my directory names; this should have been named mailman3_venv) # virtualenv /opt/mailman3/ (New python executable in /opt/mailman3/bin/python) I do recommend creating an etc/mailman.cfg to customize various aspects of > Mailman before you start. Take a look at src/mailman/config/schema.cfg and > .../mailman.cfg for the default settings. > # nano /etc/mailman.cfg done sudo apt-get install postfix openssl-blacklist ssl-cert # nano /etc/postfix/main.cf ***************** QUESTION ********************* Are the following paths correct??? transport_maps = hash:/opt/mailman3/var/data/postfix_lmtp local_recipient_maps = hash:/opt/mailman3/var/data/postfix_lmtp ******************************************************* After modifying main.cf, be sure to run '/etc/init.d/postfix reload'. root@li437-28:/etc/postfix# /etc/init.d/postfix reload * Reloading Postfix configuration... [ OK ] # source /opt/mailman3/bin/activate python setup.py install Finished processing dependencies for mailman==3.0.0b1 NOTE: After doing all this, I see that I named my directories wrong. I think I'll repeat it and name the extracted tarball directory mailman3/ and the virtualenv directory mailman3_venv/ next time. Now you can run `mailman info` to get some basic information about how your > system is configured, (mailman3)root@localhost:/opt/mailman-3.0.0b1# mailman info GNU Mailman 3.0.0b1 (The Twilight Zone) Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] config file: /etc/mailman.cfg db url: sqlite:////opt/mailman-3.0.0b1/var/data/mailman.db REST root url: http://mailman3.example.com:80/3.0/ REST credentials: yyyyyyyyyyyy:xxxxxxxxxxxxx > `mailman start` to start the system, etc. > (mailman3)root@li437-28:/opt/mailman-3.0.0b1# mailman start Starting Mailman's master runner Cheers, > -Barry > Thank you! That's a great help. I also came across this useful tutorial: Python Ecosystem - An Introduction http://mirnazim.org/writings/python-ecosystem-introduction/ Next Questions: 1. what are the first tests I should perform after starting mailman? 2. a tutorial for setting up Posterious? Thanks again. _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9
