This is a step by step process to quickly setup Mailman.
1) ssh into POSIX based system
2)To install Mailman from source, you will need an ANSI C compiler to build Mailman's security wrappers. The GNU C compiler gcc(http://gcc.gnu.org/) works well.
3)cat /etc/*-release => Ubuntu 13.01 -> Saucy Salamander
4)sudo apt-get install apache2
5)sudo apt-get install mailman (use tab to select OK)
6)Thus, if a mail address on the local host is foo@example.org, the
│ correct value for this option would be example.org.
│
│ System mail name: <insert_sys_mail_name_here>
7)Mailserver installation: Postfix
Step 1 is activate the MTA option on the mailman config file (/etc/mailman/mm_cfg.py). Write or uncomment this line: MTA = 'Postfix'
8)sudo /usr/lib/mailman/bin/genaliases
9)Run the script to generate aliases. This depends on the MTA being set correctly in mm_cfg.py:
sudo /usr/lib/mailman/bin/genaliases
You can use the postconf command to add the necessary configuration to /etc/postfix/main.cf:
sudo postconf -e 'relay_domains = <domain_name>'
sudo postconf -e 'transport_maps = hash:/etc/postfix/transport'
sudo postconf -e 'mailman_destination_recipient_limit = 1'
sudo postconf -e 'alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases'
In /etc/postfix/master.cf double check that you have the following transport:
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
It calls the postfix-to-mailman.py script when a mail is delivered to a list.
10) sudo /etc/init.d/postfix restart
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix
11) sudo /usr/sbin/newlist m
1) ssh into POSIX based system
2)To install Mailman from source, you will need an ANSI C compiler to build Mailman's security wrappers. The GNU C compiler gcc(http://gcc.gnu.org/) works well.
3)cat /etc/*-release => Ubuntu 13.01 -> Saucy Salamander
4)sudo apt-get install apache2
5)sudo apt-get install mailman (use tab to select OK)
6)Thus, if a mail address on the local host is foo@example.org, the
│ correct value for this option would be example.org.
│
│ System mail name: <insert_sys_mail_name_here>
7)Mailserver installation: Postfix
Step 1 is activate the MTA option on the mailman config file (/etc/mailman/mm_cfg.py). Write or uncomment this line: MTA = 'Postfix'
8)sudo /usr/lib/mailman/bin/genaliases
9)Run the script to generate aliases. This depends on the MTA being set correctly in mm_cfg.py:
sudo /usr/lib/mailman/bin/genaliases
You can use the postconf command to add the necessary configuration to /etc/postfix/main.cf:
sudo postconf -e 'relay_domains = <domain_name>'
sudo postconf -e 'transport_maps = hash:/etc/postfix/transport'
sudo postconf -e 'mailman_destination_recipient_limit = 1'
sudo postconf -e 'alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases'
In /etc/postfix/master.cf double check that you have the following transport:
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
It calls the postfix-to-mailman.py script when a mail is delivered to a list.
10) sudo /etc/init.d/postfix restart
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix
11) sudo /usr/sbin/newlist m