User Tools

Site Tools


configuring_mailman_for_ubuntu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
configuring_mailman_for_ubuntu [2007/01/24 16:38]
adam created
configuring_mailman_for_ubuntu [2007/01/24 16:43]
adam
Line 2: Line 2:
  
 Taken from [[http://freemars.org/howto/mailman.html]] Taken from [[http://freemars.org/howto/mailman.html]]
- 
- 
  
 Draft - Started 17 December 2005 Draft - Started 17 December 2005
Line 16: Line 14:
  
 There is only one package you'll need to add - mailman. Use Synaptic Package Manager or apt-get to add it to your machine. There is only one package you'll need to add - mailman. Use Synaptic Package Manager or apt-get to add it to your machine.
- 
- 
  
 It's my belief the Ubuntu install files leave you with the wrong file ownerships, so if you haven't already opened a terminal window do so and become root It's my belief the Ubuntu install files leave you with the wrong file ownerships, so if you haven't already opened a terminal window do so and become root
Line 35: Line 31:
  
 The Mailman configuration files are in /etc/mailman. Use your favorite text editor to edit /etc/mailman/mm_cfg.py. You'll want to check/edit/add the following lines: The Mailman configuration files are in /etc/mailman. Use your favorite text editor to edit /etc/mailman/mm_cfg.py. You'll want to check/edit/add the following lines:
-MTA=None # No MTA processing req'd for Ubuntu/virtual/postfix-to-mailman.py 
  
-IMAGE_LOGOS = '/mmimages/' 
- 
-DEFAULT_EMAIL_HOST = 'example.com' 
-DEFAULT_URL_HOST = 'example.com' 
  
 +   MTA=None # No MTA processing req'd for Ubuntu/virtual/postfix-to-mailman.py
 +   
 +   IMAGE_LOGOS = '/mmimages/'
 +   
 +   DEFAULT_EMAIL_HOST = 'example.com'
 +   DEFAULT_URL_HOST = 'example.com'
 +   
 I'm not sure if you need this line - can someone tell me? I'm not sure if you need this line - can someone tell me?
-DEB_LISTMASTER = 'postmaster@example.com' 
  
-Apache 2 config files are in /etc/apache2The Apache authors think you should put anything that looks like a module in mods-available and mods-enabled. Go ahead and create a new file: /etc/apache2/mods-available/mailman.conf+   DEB_LISTMASTER = 'postmaster@example.com'
  
-ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ +Apache 2 config files are in /etc/apache2. The Apache authors think you should put anything that looks like a module in mods-available and mods-enabled. Go ahead and create a new file: /etc/apache2/mods-available/mailman.conf
-ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/+
  
-<Directory /usr/lib/cgi-bin/mailman/> +   ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ 
-   AllowOverride None +   ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/ 
-   Options ExecCGI +    
-   Order allow,deny +   <Directory /usr/lib/cgi-bin/mailman/> 
-   Allow from all +      AllowOverride None 
-</Directory> +      Options ExecCGI 
-Alias /pipermail/ /var/lib/mailman/archives/public/ +      Order allow,deny 
-<Directory /var/lib/mailman/archives/public> +      Allow from all 
-   Options Indexes MultiViews FollowSymLinks +   </Directory> 
-   AllowOverride None +   Alias /pipermail/ /var/lib/mailman/archives/public/ 
-   Order allow,deny +   <Directory /var/lib/mailman/archives/public> 
-   Allow from all +      Options Indexes MultiViews FollowSymLinks 
-</Directory>+      AllowOverride None 
 +      Order allow,deny 
 +      Allow from all 
 +   </Directory>
  
 Optional - pipermail is one of those directory names which hangs around for historical reasons but makes little sense to users. You might want to add a more sensible-sounding alias for the mailing list archives. Optional - pipermail is one of those directory names which hangs around for historical reasons but makes little sense to users. You might want to add a more sensible-sounding alias for the mailing list archives.
-Alias /archives/ /var/lib/mailman/archives/public/ + 
-<Directory /var/lib/mailman/archives/public> +   Alias /archives/ /var/lib/mailman/archives/public/ 
-   Options Indexes MultiViews FollowSymLinks +   <Directory /var/lib/mailman/archives/public> 
-   AllowOverride None +      Options Indexes MultiViews FollowSymLinks 
-   Order allow,deny +      AllowOverride None 
-   Allow from all +      Order allow,deny 
-</Directory>+      Allow from all 
 +   </Directory>
  
 Now add a symlink to this file so Apache will use your new Mailman aliases the next time it starts: Now add a symlink to this file so Apache will use your new Mailman aliases the next time it starts:
-# cd /etc/apache2/mods-enabled + 
-# ln -s /etc/apache2/mods-available/mailman.conf mailman.conf+   # cd /etc/apache2/mods-enabled 
 +   # ln -s /etc/apache2/mods-available/mailman.conf mailman.conf 
 All your configuration files are now set. Activate everything by restarting your services: All your configuration files are now set. Activate everything by restarting your services:
-# /etc/init.d/apache2 restart + 
-# /etc/init.d/postfix reload +   # /etc/init.d/apache2 restart 
-# /etc/init.d/mailman start+   # /etc/init.d/postfix reload 
 +   # /etc/init.d/mailman start 
 Create your first list Create your first list
  
 Mailman doesn't have anything to do until there is at least one list for it to act on, so let's make one: Mailman doesn't have anything to do until there is at least one list for it to act on, so let's make one:
-# newlist mailman+ 
 +   # newlist mailman 
 You'll be asked for an administrator email address - give it yours - and a password. If all goes well you should immediately get an email welcoming you to your new list. The email will have a URL where you can go and experiment with the web-based mailman configuration. There's just one thing that won't work -- emails sent to the list will not work. On to the final section of this howto. You'll be asked for an administrator email address - give it yours - and a password. If all goes well you should immediately get an email welcoming you to your new list. The email will have a URL where you can go and experiment with the web-based mailman configuration. There's just one thing that won't work -- emails sent to the list will not work. On to the final section of this howto.
 Adding MySQL aliases Adding MySQL aliases
  
 If you've installed phpmyadmin as Ivar suggests you can use a GUI interface, otherwise you'll edit your MySQL database through the command line. Insert the following entries into the aliases table of the maildb database: If you've installed phpmyadmin as Ivar suggests you can use a GUI interface, otherwise you'll edit your MySQL database through the command line. Insert the following entries into the aliases table of the maildb database:
-mail destination + 
-mailman@example.com mailman@lists.example.com +   mail destination 
-mailman-admin@example.com mailman-admin@lists.example.com +   mailman@example.com                 mailman@lists.example.com 
-mailman-bounces@example.com mailman-bounces@lists.example.com +   mailman-admin@example.com         mailman-admin@lists.example.com 
-mailman-confirm@example.com mailman-confirm@lists.example.com +   mailman-bounces@example.com         mailman-bounces@lists.example.com 
-mailman-join@example.com mailman-join@lists.example.com +   mailman-confirm@example.com         mailman-confirm@lists.example.com 
-mailman-leave@example.com mailman-leave@lists.example.com +   mailman-join@example.com         mailman-join@lists.example.com 
-mailman-owner@example.com mailman-owner@lists.example.com +   mailman-leave@example.com         mailman-leave@lists.example.com 
-mailman-request@example.com mailman-request@lists.example.com +   mailman-owner@example.com         mailman-owner@lists.example.com 
-mailman-subscribe@example.com mailman-subscribe@lists.example.com +   mailman-request@example.com         mailman-request@lists.example.com 
-mailman-unsubscribe@example.com mailman-unsubscribe@lists.example.com+   mailman-subscribe@example.com        mailman-subscribe@lists.example.com 
 +   mailman-unsubscribe@example.com mailman-unsubscribe@lists.example.com
  
 Your 'mailman' list should be operational. Your 'mailman' list should be operational.
- 
-    I can't recommend one of these books over the other. The Dent book has good reference material in Apendicies A and B. The Hildebrandt/Koetter book is almost twice as thick and includes many examples and code snippets. Take your pick. 
- 
-How to set up a mail server on a GNU / Linux system 
-    This is Ivar Abrahamsen's HOWTO for setting up a MySQL-based mail system for multiple domains and many users. If you don't need a setup as complex as his example, you won't need to do all the stuff I'm suggesting either. 
- 
  
configuring_mailman_for_ubuntu.txt · Last modified: 2016/11/25 22:38 (external edit)