Debian and Ubuntu Linux Tutorials
October 5, 2006 4 Comments
Filed under General
Configuring Postfix with Mailman, has some simple steps to be followed up.
* Install mailman:
# apt-get install mailman
* When done type:
# newlist mailman
* Start mailman
# /etc/init.d/mailman start
* You should be able to see mailman running now. Visit: [WWW] http://www.yourwebsite.com/cgi-bin/mailman/admin
or
[WWW] http://localhost/cgi-bin/mailman/admin
* Because postfix is secendary choice for Debian we need to add few more stuff:
* Edit /etc/postfix/main.cf, and where you see “relay_domains” add lists.yourdomain.com. You would get something like this:
relay_domains = example.com, lists.example.com
* In same file add ,hash:/var/lib/mailman/data/aliases after alias_maps
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
* Now type:
# postconf -e “transport_maps = hash:/etc/postfix/transport” # postconf -e “mailman_destination_recipient_limit = 1″
* In /etc/postfix/master.cf add:
mailman unix – n n – – pipe flags=FR user=list argv=/var/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
* Edit or create /etc/postfix/transport. Add this line:
lists.example.com mailman:
* Then postmap it:
postmap /etc/postfix/transport
* Now edit /etc/mailman/mm_cfg.py and add:
MTA = ‘Postfix’ DEB_LISTMASTER = ‘postmaster@example.com’ POSTFIX_STYLE_VIRTUAL_DOMAIN = ['lists.example.com']
* Done. Now restart postfix, mailman
/etc/init.d/postfix reload /etc/init.d/mailman restart
* Create a mailing list:
newlist list_name
* If you want archives add this to /etc/apache2/apache2.conf
Alias /pipermail/ /var/lib/mailman/archives/public/ Alias /images/mailman/ /usr/share/images/mailman/
* Done. Go to
http://lists.yourwebsite.com/cgi-bin/mailman/listinfo/list_name/
Your Mailman with Postfix is configured.
On my debian box, the step:
————————— * In /etc/postfix/master.cf add:
mailman unix – n n – - pipe flags=FR user=list argv=/var/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} —————————
broke postfix so it wouldn’t start. I commented out those lines and restarted and reloaded postfix and everything worked.
Thanks for the nice guide.
you´re my hero!! thank you very, very much!
Hey, I have followed all mentioned points. But in that case i am not able to send any post to new created list. Subscribed users in list are also not getting mail.
Thanks
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.
Configuring Postfix with Mailman, has some simple steps to be followed up.
* Install mailman:
# apt-get install mailman
* When done type:
# newlist mailman
* Start mailman
# /etc/init.d/mailman start
* You should be able to see mailman running now. Visit: [WWW] http://www.yourwebsite.com/cgi-bin/mailman/admin
or
[WWW] http://localhost/cgi-bin/mailman/admin
* Because postfix is secendary choice for Debian we need to add few more stuff:
* Edit /etc/postfix/main.cf, and where you see “relay_domains” add lists.yourdomain.com. You would get something like this:
relay_domains = example.com, lists.example.com
* In same file add ,hash:/var/lib/mailman/data/aliases after alias_maps
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
* Now type:
# postconf -e “transport_maps = hash:/etc/postfix/transport”
# postconf -e “mailman_destination_recipient_limit = 1″
* In /etc/postfix/master.cf add:
mailman unix – n n – – pipe
flags=FR user=list
argv=/var/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
* Edit or create /etc/postfix/transport. Add this line:
lists.example.com mailman:
* Then postmap it:
postmap /etc/postfix/transport
* Now edit /etc/mailman/mm_cfg.py and add:
MTA = ‘Postfix’
DEB_LISTMASTER = ‘postmaster@example.com’
POSTFIX_STYLE_VIRTUAL_DOMAIN = ['lists.example.com']
* Done. Now restart postfix, mailman
/etc/init.d/postfix reload
/etc/init.d/mailman restart
* Create a mailing list:
newlist list_name
* If you want archives add this to /etc/apache2/apache2.conf
Alias /pipermail/ /var/lib/mailman/archives/public/
Alias /images/mailman/ /usr/share/images/mailman/
* Done. Go to
http://lists.yourwebsite.com/cgi-bin/mailman/listinfo/list_name/
Your Mailman with Postfix is configured.
On my debian box, the step:
—————————
* In /etc/postfix/master.cf add:
mailman unix – n n – - pipe
flags=FR user=list
argv=/var/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
—————————
broke postfix so it wouldn’t start. I commented out those lines and restarted and reloaded postfix and everything worked.
Thanks for the nice guide.
you´re my hero!! thank you very, very much!
Hey,
I have followed all mentioned points. But in that case i am not able to send any post to new created list. Subscribed users in list are also not getting mail.
Thanks