diff options
Diffstat (limited to '')
-rw-r--r-- | admin/www/mailman-install/node13.html | 206 |
1 files changed, 0 insertions, 206 deletions
diff --git a/admin/www/mailman-install/node13.html b/admin/www/mailman-install/node13.html deleted file mode 100644 index a3627647..00000000 --- a/admin/www/mailman-install/node13.html +++ /dev/null @@ -1,206 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> -<link rel="STYLESHEET" href="mailman-install.css" type='text/css' /> -<link rel="first" href="mailman-install.html" title='GNU Mailman - Installation Manual' /> -<link rel='last' href='about.html' title='About this document...' /> -<link rel='help' href='about.html' title='About this document...' /> -<link rel="next" href="postfix-virtual.html" /> -<link rel="prev" href="node12.html" /> -<link rel="parent" href="node12.html" /> -<link rel="next" href="postfix-virtual.html" /> -<meta name='aesop' content='information' /> -<title>6.1.1 Integrating Postfix and Mailman</title> -</head> -<body> -<DIV CLASS="navigation"> -<div id='top-navigation-panel' xml:id='top-navigation-panel'> -<table align="center" width="100%" cellpadding="0" cellspacing="2"> -<tr> -<td class='online-navigation'><a rel="prev" title="6.1 Using the Postfix" - href="node12.html"><img src='previous.png' - border='0' height='32' alt='Previous Page' width='32' /></A></td> -<td class='online-navigation'><a rel="parent" title="6.1 Using the Postfix" - href="node12.html"><img src='up.png' - border='0' height='32' alt='Up One Level' width='32' /></A></td> -<td class='online-navigation'><a rel="next" title="6.1.2 Virtual domains" - href="postfix-virtual.html"><img src='next.png' - border='0' height='32' alt='Next Page' width='32' /></A></td> -<td align="center" width="100%">GNU Mailman - Installation Manual</td> -<td class='online-navigation'><img src='blank.png' - border='0' height='32' alt='' width='32' /></td> -<td class='online-navigation'><img src='blank.png' - border='0' height='32' alt='' width='32' /></td> -<td class='online-navigation'><img src='blank.png' - border='0' height='32' alt='' width='32' /></td> -</tr></table> -<div class='online-navigation'> -<b class="navlabel">Previous:</b> -<a class="sectref" rel="prev" href="node12.html">6.1 Using the Postfix</A> -<b class="navlabel">Up:</b> -<a class="sectref" rel="parent" href="node12.html">6.1 Using the Postfix</A> -<b class="navlabel">Next:</b> -<a class="sectref" rel="next" href="postfix-virtual.html">6.1.2 Virtual domains</A> -</div> -<hr /></div> -</DIV> -<!--End of Navigation Panel--> - -<H3><A NAME="SECTION001611000000000000000"> -6.1.1 Integrating Postfix and Mailman</A> -</H3> - -<P> -You can integrate Postfix and Mailman such that when new lists are created, or -lists are removed, Postfix's alias database will be automatically updated. -The following are the steps you need to take to make this work. - -<P> -In the description below, we assume that you've installed Mailman in the -default location, i.e. <span class="file">/usr/local/mailman</span>. If that's not the case, -adjust the instructions according to your use of <b class="program">configure</b>'s -<b class="programopt">--prefix</b> and <b class="programopt">--with-var-prefix</b> options. - -<P> -<div class="note"><b class="label">Note:</b> - -If you are using virtual domains and you want Mailman to honor your virtual -domains, read the <A href="postfix-virtual.html#postfix-virtual">6.1</A> section below first! -</div> - -<P> - -<UL> -<LI>Add this to the bottom of the <span class="file"><var>$prefix</var>/Mailman/mm_cfg.py</span> - file: - -<P> -<div class="verbatim"><pre> - MTA = 'Postfix' -</pre></div> - -<P> -The MTA variable names a module in the <span class="file">Mailman/MTA</span> directory - which contains the mail server-specific functions to be executed when a - list is created or removed. - -<P> -</LI> -<LI>Look at the <span class="file">Defaults.py</span> file for the variables - <var>POSTFIX_ALIAS_CMD</var> and <var>POSTFIX_MAP_CMD</var> command. Make sure - these point to your <b class="program">postalias</b> and <b class="program">postmap</b> programs - respectively. Remember that if you need to make changes, do it in - <span class="file">mm_cfg.py</span>. - -<P> -</LI> -<LI>Run the <b class="program">bin/genaliases</b> script to initialize your - <span class="file">aliases</span> file. - -<P> -<div class="verbatim"><pre> - % cd /usr/local/mailman - % bin/genaliases - </pre></div> - -<P> -Make sure that the owner of the <span class="file">data/aliases</span> and - <span class="file">data/aliases.db</span> file is <code>mailman</code>, that the group owner - for those files is <code>mailman</code>, or whatever user and group you used - in the configure command, and that both files are group writable: - -<P> -<div class="verbatim"><pre> - % su - % chown mailman:mailman data/aliases* - % chmod g+w data/aliases* - </pre></div> - -<P> -</LI> -<LI>Hack your Postfix's <span class="file">main.cf</span> file to include the following path in - your <var>alias_maps</var> variable: - -<P> -<div class="verbatim"><pre> - /usr/local/mailman/data/aliases -</pre></div> - -<P> -Note that there should be no trailing <code>.db</code>. Do not include this - in your <var>alias_database</var> variable. This is because you do not want - Postfix's <b class="program">newaliases</b> command to modify Mailman's - <span class="file">aliases.db</span> file, but you do want Postfix to consult - <span class="file">aliases.db</span> when looking for local addresses. - -<P> -You probably want to use a <code>hash:</code> style database for this entry. - Here's an example: - -<P> -<div class="verbatim"><pre> - alias_maps = hash:/etc/postfix/aliases, - hash:/usr/local/mailman/data/aliases -</pre></div> - -<P> -</LI> -<LI>When you configure Mailman, use the - <b class="programopt">--with-mail-gid=mailman</b> switch; this will be the default - if you configured Mailman after adding the <code>mailman</code> owner. - Because the owner of the <span class="file">aliases.db</span> file is <code>mailman</code>, - Postfix will execute Mailman's wrapper program as uid and gid - <code>mailman</code>. - -<P> -</LI> -</UL> - -<P> -That's it! One caveat: when you add or remove a list, the <span class="file">aliases.db</span> -file will updated, but it will not automatically run <b class="program">postfix reload</b>. -This is because you need to be root to run this and suid-root scripts are not -secure. The only effect of this is that it will take about a minute for -Postfix to notice the change to the <span class="file">aliases.db</span> file and update its -tables. - -<P> - -<DIV CLASS="navigation"> -<div class='online-navigation'> -<p></p><hr /> -<table align="center" width="100%" cellpadding="0" cellspacing="2"> -<tr> -<td class='online-navigation'><a rel="prev" title="6.1 Using the Postfix" - href="node12.html"><img src='previous.png' - border='0' height='32' alt='Previous Page' width='32' /></A></td> -<td class='online-navigation'><a rel="parent" title="6.1 Using the Postfix" - href="node12.html"><img src='up.png' - border='0' height='32' alt='Up One Level' width='32' /></A></td> -<td class='online-navigation'><a rel="next" title="6.1.2 Virtual domains" - href="postfix-virtual.html"><img src='next.png' - border='0' height='32' alt='Next Page' width='32' /></A></td> -<td align="center" width="100%">GNU Mailman - Installation Manual</td> -<td class='online-navigation'><img src='blank.png' - border='0' height='32' alt='' width='32' /></td> -<td class='online-navigation'><img src='blank.png' - border='0' height='32' alt='' width='32' /></td> -<td class='online-navigation'><img src='blank.png' - border='0' height='32' alt='' width='32' /></td> -</tr></table> -<div class='online-navigation'> -<b class="navlabel">Previous:</b> -<a class="sectref" rel="prev" href="node12.html">6.1 Using the Postfix</A> -<b class="navlabel">Up:</b> -<a class="sectref" rel="parent" href="node12.html">6.1 Using the Postfix</A> -<b class="navlabel">Next:</b> -<a class="sectref" rel="next" href="postfix-virtual.html">6.1.2 Virtual domains</A> -</div> -</div> -<hr /> -<span class="release-info">Release 2.1, documentation updated on December 13, 2005.</span> -</DIV> -<!--End of Navigation Panel--> - -</BODY> -</HTML> |