Re: Mailman and Postfix question
-------- Original Message -------- Subject: Re: Mailman and Postfix question From: "Yogesh Subhash Talekar" <yogesh@unipune.ernet.in> Date: Thu, May 6, 2004 2:11 pm To: <james@hdcs.com.au>
Mailman Installation and Configuration Howto:
- Make sure that all software required to run mailman is already installed (python etc)
- Remove old mailman with: #rpm e mailman
- Remove the directory: # rm rf /var/lib/mailman
- Again create empty directory mailman: #mkdir /var/lib/mailman
- Make sure that a user mailman and group mailman exists
- Set permissions of /var/lib/mailman with setgid: #chown mailman.mailman /var/lib/mailman
chmod a+rx ,g+ws /var/lib/mailman
- Create /var/mailman to hold mailman archives, list configs, etc: # mkdir /var/mailman ; chgrp mailman /var/mailman
chmod a+rx,g+ws /var/mailman
- Configure and build mailman as user mailman:
su - mailman
$ tar zxf /tmp/mailman-2.1.x.tgz; cd mailman-2.1.x $ ./configure --prefix=/var/lib/mailman --with-var-prefix=/var/mailman --with-cgi-gid=nogroup $ make install 9. As root do following: Create a file /etc/httpd/mailman.conf with following contents: ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/ Alias /archives/ /var/mailman/archives/public/ Alias /pipermail/ /var/mailman/archives/public/ <Directory /var/mailman/archives> Options +FollowSymLinks </Directory>
And the add following line to the bottom of the file suse_include.conf (or httpd.conf): Include /etc/httpd/mailman.conf
Also copy the mailmans icons to Apache: cp /var/lib/mailman/icons/* /srv/www/icons/
Setup crontab file required for mailman:
cat ~mailman/cron/crontab.in | sed -e 's# /# mailman /#' >
/etc/cron.d/mailman # chmod 600 /etc/cron.d/mailman 13. If required add following mailman aliases to /etc/aliases and then run newliases command: mailman: root mailman-owner: mailman
Add a site-wide list mailman with command: /var/lib/mailman/bin/newlist mailman And also give one email ID for administrator
Add entry for /var/lib/mailman/bin/mailmanctl daemon in /etc/rc.d/ and /etc/rc3.d/ so that the daemon start when machine boots
Set the mailman password (e.g. to mydomain321):
/var/lib/mailman/bin/mmsitepass mydomain321
Add the mailman alias map to postfix-out, so edit /etc/postfix-out/main.cf and add hash:/var/mailman/data/aliases to the alias_maps line and run 'postfix reload' (Remove anyother hash map labeled as mailman if the corresponding file does not exist)
Set the mailman delivery scripts to be executable:
chmod +x /var/lib/mailman/scripts/*
- Change following line in /var/lib/mailman/Mailman/Defaults.py as follows: DEFAULT_EMAIL_HOST = 'mydomainmail.com' DEFAULT_URL_HOST = '57.193.32.72'
Install and configure Apache:
Check weather its is already installed with rpm qa | grep apache
# mkdir /var/log/httpd
# chown nobody.nobody /var/log/httpd/
Start apache using # /etc/rc.d/apache start
Creating a new list:
Run /var/lib/mailman/bin/newlist and answer prompts accordingly. If your are adding a new list named test@mydomainmail.com, it will output following lines on the screen: test: "|/var/lib/mailman/mail/mailman post test" test-admin: "|/var/lib/mailman/mail/mailman admin test" test-bounces: "|/var/lib/mailman/mail/mailman bounces test" test-confirm: "|/var/lib/mailman/mail/mailman confirm test" test-join: "|/var/lib/mailman/mail/mailman join test" test-leave: "|/var/lib/mailman/mail/mailman leave test" test-owner: "|/var/lib/mailman/mail/mailman owner test" test-request: "|/var/lib/mailman/mail/mailman request test" test-subscribe: "|/var/lib/mailman/mail/mailman subscribe test" test-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe test"
Login as user mailman (important) and Add these lines to /var/mailman/data/aliases and then run $ /usr/sbin/postalias /var/mailman/data/aliases
Edit the file /var/mailman/data/sitelist.cfg to suit your requirements. You can also save it as mailman-list.cfg to have configuration of mailman list or save it as any-other-list.cfg to save configuration specific to that list.
Then you can configure the this new list called mailman using: /var/lib/mailman/bin/config_list -i /var/mailman/data/sitelist.cfg mailman
Syntax is:/path/to/config_list -i /var/mailman/data/any-other-list.cfg listname
Changes for working with Postfix:
- Add following two lines to main.cf owner_request_special = no unknown_local_recipient_reject_code = 550
- Add this to the bottom of the $prefix/Mailman/mm_cfg.py file: MTA = 'Postfix'
- Look at the Defaults.py file for the variables POSTFIX_ALIAS_CMD and POSTFIX_MAP_CMD command. Make sure these point to your postalias and postmap programs respectively. Remember that if you need to make changes, do it in mm_cfg.py
- Virtual Domains: We are setting up lists.mydomainmail.com for mailing lists
- Add a line lists.mydomainmail.com DOMAIN to /etc/postfix-out/virtual 6. In main.cf add line virtual_maps = hash:/etc/postfix-out/virtual, hash:/var/mailman/data/virtual-mailman
- Set POSTFIX_STYLE_VIRTUAL_DOMAINS variable accordingly in mm_cfg.py
For Web-based Admin Interface: links http://localhost/mailman/admin/ylist
Hello everybody :-),
Very very very newbie here, I am looking at using mailman with my postfix setup and I looked through some of the howto's on the net on how to set it up but they don't seem very newbie friendly, can anyone suggest a very basic howto to setup mailman with postfix, I just need it for 1 list for a few email addresses on a very simple setup.
Thank you in advance.
James
--yogesh
++++++++++++++++++++++++++++++++++++++++++++++++ One RAID to backup them all, one RAID to find them, one RAID to bring them all and in the darkness bind them. ++++++++++++++++++++++++++++++++++++++++++++++++
--yogesh
++++++++++++++++++++++++++++++++++++++++++++++++ One RAID to backup them all, one RAID to find them, one RAID to bring them all and in the darkness bind them. ++++++++++++++++++++++++++++++++++++++++++++++++
participants (1)
-
Yogesh Subhash Talekar