How to install mailman 2.x on CentOS 7#
Intro#
Mailman is a simple lightweight mailing list manager.
Prerequisites#
yum install ntp
systemctl enable ntpd
systemctl start ntpd
yum update
vi /etc/hostname
lists.university.edu
reboot
Install and configure mailman#
yum install epel-release
yum install mailman
Edit /usr/lib/mailman/Mailman/Defaults.py with the following:
DEFAULT_EMAIL_HOST = 'lists.university.edu'
DEFAULT_URL_HOST = 'lists.university.edu'
DEFAULT_URL_PATTERN = 'https://%s/mailman/cgi-bin/'
Then edit /etc/mailman/mm_cfg.py with:
[...]
DEFAULT_URL_PATTERN = 'http://%s/'
[...]
DEFAULT_EMAIL_HOST = 'lists.university.edu'
[...]
DEFAULT_URL_HOST = 'lists.university.edu'
Configure postfix for sending emails#
Configure postfix's main.cf
vi /etc/postfix/main.cf
inet_interfaces = lists.university.edu, localhost
mydestination = $myhostname, localhost.$mydomain, localhost, lists.university.edu
Configure postfix's master.cf, uncomment the last lines in the file so as to have:
vi /etc/postfix/master.cf
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
And then restart postfix
systemctl restart ###postfix or master###
Add your first mailing list#
Add stuff here...