[Mailman-Users] Re: Mailman and Postfix question

Yogesh Subhash Talekar yogesh at unipune.ernet.in
Fri May 7 10:19:03 CEST 2004

-------- Original Message --------
Subject: Re: Mailman and Postfix question
From: "Yogesh Subhash Talekar" <yogesh at unipune.ernet.in>
Date: Thu, May 6, 2004 2:11 pm
To: <james at hdcs.com.au>

Mailman Installation and Configuration Howto:

1.	Make sure that all software required to run mailman is already
installed (python etc)
2.	Remove old mailman with: #rpm –e mailman
3.	Remove the directory: # rm –rf /var/lib/mailman
4.	Again create empty directory mailman: #mkdir /var/lib/mailman
5.	Make sure that a user “mailman” and group “mailman” exists
6.	Set permissions of /var/lib/mailman with setgid:
#chown mailman.mailman /var/lib/mailman
# chmod a+rx ,g+ws /var/lib/mailman
7.	Create /var/mailman to hold mailman archives, list configs, etc: #
mkdir /var/mailman ; chgrp mailman /var/mailman
# chmod a+rx,g+ws /var/mailman
8.	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
$ 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

10.	And the add following line to the bottom of the file
suse_include.conf (or httpd.conf): Include /etc/httpd/mailman.conf

11.	Also copy the mailman’s icons to Apache:
cp /var/lib/mailman/icons/* /srv/www/icons/

12.	Setup crontab file required for mailman:
# cat ~mailman/cron/crontab.in | sed -e 's# /# 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

14.	Add a site-wide list mailman with command:
/var/lib/mailman/bin/newlist mailman
And also give one email ID for administrator

15.	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

16.	Set the mailman password (e.g. to mydomain321):
# /var/lib/mailman/bin/mmsitepass mydomain321

17.	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)

18.	Set the mailman delivery scripts to be executable:
# chmod +x /var/lib/mailman/scripts/*

19.	Change following line in /var/lib/mailman/Mailman/Defaults.py as
follows: DEFAULT_EMAIL_HOST = 'mydomainmail.com'

Install and configure Apache:

1.	Check weather its is already installed with “rpm –qa | grep apache”
2.	# mkdir /var/log/httpd
3.	# chown nobody.nobody /var/log/httpd/
4.	Start apache using # /etc/rc.d/apache start

Creating a new list:

1.	Run /var/lib/mailman/bin/newlist and answer prompts accordingly. If
your are adding a new list named “test at 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"

2.	Login as user mailman (important) and Add these lines to
/var/mailman/data/aliases and then run
“$ /usr/sbin/postalias /var/mailman/data/aliases”
3.	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.
4.	Then you can configure the this new list called “mailman” using:
/var/lib/mailman/bin/config_list  -i /var/mailman/data/sitelist.cfg
5.	Syntax is:”/path/to/config_list  -i
/var/mailman/data/any-other-list.cfg listname”

Changes for working with Postfix:

1.	Add following two lines to main.cf
owner_request_special = no
unknown_local_recipient_reject_code = 550
2.	Add this to the bottom of the $prefix/Mailman/mm_cfg.py file:
  	MTA = 'Postfix'
3.	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
4.	Virtual Domains: We are setting up “lists.mydomainmail.com” for
mailing lists
5.	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”
7.	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


One RAID to backup them all, one RAID to find them, one RAID to bring
them all and in the darkness bind them.


One RAID to backup them all, one RAID to find them, one RAID to bring them
all and in the darkness bind them.

More information about the Mailman-Users mailing list