Difference between revisions of "Amahi Mailman"

From Amahi Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{MessageBox|backgroundcolor = #FBB|
 
image =Warning.png|
 
heading =WARNING|
 
message = Fedora 14 is in maintenance mode.<br>[[Amahi 7]] is the latest stable release.}}
 
----
 
 
 
 
{{NeedsUpdate}}
 
{{NeedsUpdate}}
  
Line 27: Line 20:
 
* Create a web app in Amahi named '''mailman'''.
 
* Create a web app in Amahi named '''mailman'''.
 
* Open a terminal window, become '''root''', and run
 
* Open a terminal window, become '''root''', and run
{{Code|yum install mailman}}
+
yum install mailman
 
* Set your mailman site password:
 
* Set your mailman site password:
{{Code|/usr/lib/mailman/bin/mmsitepass _______}}
+
/usr/lib/mailman/bin/mmsitepass _______
 
* Add/edit the following into /usr/lib/mailman/Mailman/mm_cfg.py
 
* Add/edit the following into /usr/lib/mailman/Mailman/mm_cfg.py
{{Text|Text=DEFAULT_URL_HOST  = 'mailman.foo.com'
+
<pre>DEFAULT_URL_HOST  = 'mailman.foo.com'
 
DEFAULT_EMAIL_HOST = 'foo.com'
 
DEFAULT_EMAIL_HOST = 'foo.com'
 
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mailman.foo.com']
 
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mailman.foo.com']
 
VIRTUAL_HOSTS.clear()
 
VIRTUAL_HOSTS.clear()
 
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
 
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
MTA = 'Postfix'}}
+
MTA = 'Postfix'</pre>
 
(where foo.com is your domain name)
 
(where foo.com is your domain name)
 
* Make the following changes in /etc/postfix/main.cf
 
* Make the following changes in /etc/postfix/main.cf
Line 48: Line 41:
 
* Add the domain mailman.foo.com to the Email domain SQL table.
 
* Add the domain mailman.foo.com to the Email domain SQL table.
 
* Reload httpd and postfix.
 
* Reload httpd and postfix.
{{Code|service httpd reload
+
service httpd reload
service postfix reload}}
+
service postfix reload
 
* Create the main mailman list:
 
* Create the main mailman list:
{{Code|/usr/lib/mailman/bin/newlist mailman}}
+
/usr/lib/mailman/bin/newlist mailman
 
* NOTE:  I had permissions problems later.  So at this point fix your mailman permissions:
 
* NOTE:  I had permissions problems later.  So at this point fix your mailman permissions:
{{Code|/usr/lib/mailman/bin/check_perms -f}}
+
/usr/lib/mailman/bin/check_perms -f
 
* Start mailman.
 
* Start mailman.
{{Code|service mailman start}}
+
service mailman start
  
 
==== Conclusion ====
 
==== Conclusion ====
 
You should now be able to access mailman at:
 
You should now be able to access mailman at:
{{Link|http://mailman.foo.com/mailman}}
+
<nowiki>http://mailman.foo.com/mailman</nowiki>
  
 
==== Future Plans ====
 
==== Future Plans ====
 
Test this with Fedora 14.
 
Test this with Fedora 14.

Latest revision as of 02:07, 23 June 2020

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.


NOTE: This should only be attempted by advanced users.

DISCLAIMER: Although this has been tested, use at your own risk. I cannot guarantee that it will work for your system or not cause any serious problems.

Further DISCLAIMER: This tutorial is based on already having installed the Amahi Mail Server which uses Postfix and mySQL. Further it is for Fedora 12. It has NOT been tested on Fedora 14.

Purpose

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. See www.list.org for details.

How to Install

Here's the sequence of events to get mailman up and running:

  • Enable Advanced Settings in the Amahi Dashboard (Settings-->Settings)
  • Create a web app in Amahi named mailman.
  • Open a terminal window, become root, and run
yum install mailman
  • Set your mailman site password:
/usr/lib/mailman/bin/mmsitepass _______
  • Add/edit the following into /usr/lib/mailman/Mailman/mm_cfg.py
DEFAULT_URL_HOST   = 'mailman.foo.com'
DEFAULT_EMAIL_HOST = 'foo.com'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mailman.foo.com']
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
MTA = 'Postfix'

(where foo.com is your domain name)

  • Make the following changes in /etc/postfix/main.cf
    • Uncomment: recipient_delimiter = +
    • Append to virtual_alias_maps , hash:/etc/mailman/virtual-mailman
    • Append to alias_maps , hash:/etc/mailman/aliases
  • Edit /etc/httpd/conf.d/10nn-mailman.conf using /etc/httpd/conf.d/mailman.conf
    • Replace the <Directory> section in 10nn-mailman.conf with the total content of mailman.conf
    • Uncomment and edit the RedirectMatch line with the ServerAlias name.
  • Rename /etc/httpd/conf.d/mailman.conf to something NOT ending in .conf
  • Add the domain mailman.foo.com to the Email domain SQL table.
  • Reload httpd and postfix.
service httpd reload
service postfix reload
  • Create the main mailman list:
/usr/lib/mailman/bin/newlist mailman
  • NOTE: I had permissions problems later. So at this point fix your mailman permissions:
/usr/lib/mailman/bin/check_perms -f
  • Start mailman.
service mailman start

Conclusion

You should now be able to access mailman at:

http://mailman.foo.com/mailman

Future Plans

Test this with Fedora 14.