Mailman with Postfix
Configuration in debian
- ADD TO:
- Blink
- Del.icio.us
- Digg
- Furl
- Google
- Simpy
- Spurl
- Y! MyWeb
What is mailman?
Mailman is free software for managing electronic mail discussion
and e-newsletter lists. Mailman is integrated with the web,
making it easy for users to manage their accounts and for list
owners to administer their lists. Mailman supports built-in
archiving, automatic bounce processing, content filtering,
digest delivery, spam filters, and more.
Mailman Features
http://www.gnu.org/software/mailman/features.html
Download Mailman
http://www.gnu.org/software/mailman/download.html
Mailman Documentation
http://www.gnu.org/software/mailman/docs.html
Mailman Faq
http://www.python.org/cgi-bin/faqw-mm.py?req=index
Install Mailman in
Debian
#apt-get install mailman
This will install the latest version of mailman
Now if you want to install postfix in debian follow this link
http://www.debianhelp.co.uk/postfix.htm
after installation of postfix you need to do the
following things
Edit /etc/postfix/main.cf
Ensure that the following line exist: owner_request_special = no
Ensure that in virtual_maps there's this entry: hash:/var/lib/mailman/data/virtual-mailman
Ensure that in alias_maps there's this entry: hash:/var/lib/mailman/data/aliases
Save & quit this file
Now you need to edit Mailman's config file
Edit /etc/mailman/mm_cfg.py
Ensure that the following line exist: MTA = "Postfix"
Ensure that the following line exist
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['my.domain1.com',
'my.domain2.com', 'my.domain3.com']
Save & quit
If you want to add new list to mailman
Type newlist <list_name>@<my.domain1.com>, and answer the
questions.
Type /usr/lib/mailman/bin/genaliases, which will update /var/lib/mailman/data/aliases
and var/lib/mailman/data/virtual-mailman accordingly
Now restart mailman to take our new settings
#/etc/init.d/mailman force-reload
Mailman will integrate itself into your webserver if you're
running Apache or Apache2
If you want
install apache2 in debian follow this link
http://www.debianhelp.co.uk/apache2.htm
For example you can view the mailing list page
that describes your new sheep list by visiting the following
URL:
http://my.domain1.com/cgi-bin/mailman/listinfo/debianhelp
The archives will not be setup properly yet, to do that you
should add the following two lines to the bottom of your apache
configuration file:
Alias /pipermail/ /var/lib/mailman/archives/public/
Alias /images/mailman/ /usr/share/images/mailman/
Once you do that and restart your webserver you can view the
archive pages for your new list by visiting the following URL:
http://my.domain1.com/pipermail/debianhelp/
Users can add and remove themselves to the list by visiting the
webpages and entering their email address, or by sending a
message to the addresses
debianhelp-subscribe@example.com # Add themselves
debianhelp-unsubscribe@example.com # Remove themselves
Troubleshooting Mailman
check again for TYPOS mistakes.
If spam headers (X-Spam) are not present in the incoming emails,
make sure that your domain is in local_domains_acl list, which
is in /etc/amavis/amavisd.conf file.
If you're having problems with Amavis and not sure where to
start, here's a clue - instead of starting amavis the usual ay
(/etc/init.d/amavis start), type this instead: */usr/sbin/amavisd-new
debug*
Then if you trying sending an email through it, you'l be able to
see the details, how it processed that email, and therefore
hopefully you'll be able to spot anything that went wrong.
For more troubleshooting check this link
http://www.gnu.org/software/mailman/mailman-install/troubleshooting.html