1 |
hanno 08/07/04 13:33:43 |
2 |
|
3 |
Added: README.gentoo-r3 50_mailman.conf-r1 |
4 |
mailman-2.1.9-icons.patch |
5 |
Removed: README.gentoo |
6 |
Log: |
7 |
mailman bump to 2.1.11 |
8 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.25.8 i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-mail/mailman/files/README.gentoo-r3 |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/files/README.gentoo-r3?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/files/README.gentoo-r3?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: README.gentoo-r3 |
17 |
=================================================================== |
18 |
# Copyright 1999-2004 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/files/README.gentoo-r3,v 1.1 2008/07/04 13:33:42 hanno Exp $ |
21 |
|
22 |
Follow these instructions to finish setting up mailman. This file and the |
23 |
original ebuild were tweaked by me <lamer@g.o> but were graciously |
24 |
submitted by Joby Walker (YOU RULE!) |
25 |
2003 Jul 09: updated by Jesus Perez and re-tweaked by me <raker@g.o> |
26 |
for 2.1.x. |
27 |
|
28 |
Please view the documentation on Mailman at: http://www.list.org/ |
29 |
|
30 |
This documentation assumes you're using the default gentoo path |
31 |
(/usr/lib/mailman/), if you've changed it with MAILMAN_PREFIX, adjust them |
32 |
accordingly. |
33 |
|
34 |
1) If this is your first time installing mailman, after your "emerge mailman", |
35 |
you need to add -D MAILMAN to /etc/conf.d/apache or /etc/conf.d/apache2 and restart |
36 |
apache. |
37 |
|
38 |
2) In your /etc/conf.d/apache (for apache 1.x) |
39 |
or /etc/conf.d/apache2 (for apache 2.x) |
40 |
file add the additional option to the |
41 |
APACHE_OPTS or APACHE2_OPTS variable: |
42 |
|
43 |
-D MAILMAN |
44 |
|
45 |
3) Make sure mailman is a part of the cron group |
46 |
|
47 |
4) This must be done as user mailman: |
48 |
|
49 |
su - mailman |
50 |
|
51 |
Add the cron jobs: |
52 |
|
53 |
cd cron |
54 |
crontab crontab.in |
55 |
cd .. |
56 |
|
57 |
Create the site password: |
58 |
|
59 |
bin/mmsitepass |
60 |
|
61 |
and main list: |
62 |
|
63 |
bin/newlist mailman |
64 |
|
65 |
|
66 |
5) Change back to root: |
67 |
|
68 |
exit |
69 |
|
70 |
(Postfix users: read the notes at the end of this file before you continue) |
71 |
Add this to /etc/mail/aliases (and see point 9 for notes): |
72 |
mailman: "|/usr/lib/mailman/mail/mailman post mailman" |
73 |
mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" |
74 |
mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" |
75 |
mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" |
76 |
mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" |
77 |
mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" |
78 |
mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" |
79 |
mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" |
80 |
mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" |
81 |
mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman" |
82 |
|
83 |
For courier, the aliases have to go to /etc/courier/aliases and you have to skip |
84 |
the quotes. |
85 |
|
86 |
Run newaliases (only if you use sendmail). |
87 |
|
88 |
newaliases |
89 |
|
90 |
6) Start the mailman daemon: |
91 |
|
92 |
/etc/init.d/mailman start |
93 |
|
94 |
and add it to default runlevel (optional but recommended): |
95 |
|
96 |
rc-update add mailman default |
97 |
|
98 |
7) For each list created (either with web interface or with bin/newlist) |
99 |
this must be added to /etc/mail/aliases (see smrsh notes below) |
100 |
replace <list-name> with the name of the list: |
101 |
|
102 |
<list-name>: "|/usr/lib/mailman/mail/mailman post <list-name>" |
103 |
<list-name>-admin: "|/usr/lib/mailman/mail/mailman admin <list-name>" |
104 |
<list-name>-bounces: "|/usr/lib/mailman/mail/mailman bounces <list-name>" |
105 |
<list-name>-confirm: "|/usr/lib/mailman/mail/mailman confirm <list-name>" |
106 |
<list-name>-join: "|/usr/lib/mailman/mail/mailman join <list-name>" |
107 |
<list-name>-leave: "|/usr/lib/mailman/mail/mailman leave <list-name>" |
108 |
<list-name>-owner: "|/usr/lib/mailman/mail/mailman owner <list-name>" |
109 |
<list-name>-request: "|/usr/lib/mailman/mail/mailman request <list-name>" |
110 |
<list-name>-subscribe: "|/usr/lib/mailman/mail/mailman subscribe <list-name>" |
111 |
<list-name>-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe <list-name>" |
112 |
|
113 |
For courier, the aliases have to go to /etc/courier/aliases and you have to skip |
114 |
the quotes. |
115 |
|
116 |
Run newaliases: |
117 |
|
118 |
newaliases |
119 |
|
120 |
smrsh notes |
121 |
----------- |
122 |
(if you use sendmail, you are surely using srmsh) you must note that |
123 |
sendmail won't run any program outside of EBINDIR. I tried to change |
124 |
EBINDIR using,define(`confEBINDIR', `/usr/lib/mailman/mail')dnl in |
125 |
sendmail.mc but it didn't work, so mailman must be placed in EBINDIR, |
126 |
which in Gentoo is /usr/adm/sm.bin, so you must run as root: |
127 |
|
128 |
ln -s /usr/lib/mailman/mail/mailman /usr/adm/sm.bin/mailman |
129 |
|
130 |
And the lines in /etc/mail/aliases which refer to |
131 |
/usr/lib/mailman/mail/mailman must be changed to mailman: |
132 |
|
133 |
<list-name>: "|mailman post <list-name>" |
134 |
<list-name>-admin: "|mailman admin <list-name>" |
135 |
<list-name>-bounces: "|mailman bounces <list-name>" |
136 |
<list-name>-confirm: "|mailman confirm <list-name>" |
137 |
<list-name>-join: "|mailman join <list-name>" |
138 |
<list-name>-leave: "|mailman leave <list-name>" |
139 |
<list-name>-owner: "|mailman owner <list-name>" |
140 |
<list-name>-request: "|mailman request <list-name>" |
141 |
<list-name>-subscribe: "|mailman subscribe <list-name>" |
142 |
<list-name>-unsubscribe: "|mailman unsubscribe <list-name>" |
143 |
|
144 |
exim notes |
145 |
---------- |
146 |
You can write an exim stanza for the router and transport that looks something |
147 |
like (Derived from, and in part taken from cpanel): |
148 |
|
149 |
mailman_virtual_router: |
150 |
driver = accept |
151 |
require_files = /var/lib/mailman/lists/${lc::local_part}/config.pck |
152 |
local_part_suffix_optional |
153 |
local_part_suffix = -admin : \ |
154 |
-bounces : -bounces+* : \ |
155 |
-confirm : -confirm+* : \ |
156 |
-join : -leave : \ |
157 |
-owner : -request : \ |
158 |
-subscribe : -unsubscribe |
159 |
transport = mailman_virtual_transport |
160 |
|
161 |
mailman_virtual_transport: |
162 |
driver = pipe |
163 |
command = /usr/lib/mailman/mail/mailman \ |
164 |
'${if def:local_part_suffix \ |
165 |
{${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \ |
166 |
{post}}' \ |
167 |
${lc:$local_part} |
168 |
current_directory = /usr/lib/mailman |
169 |
home_directory = /usr/lib/mailman |
170 |
user = mailman |
171 |
group = mailman |
172 |
|
173 |
Note the double colon in the require files. See |
174 |
http://wiki.exim.org/FAQ/General_Debugging/Q0060 for more information. |
175 |
|
176 |
This should be modified if you're using the vhosts USE flag, specifically you |
177 |
need to modify the location of the config.pck file, to be |
178 |
${lc::local_part}-${lc::domain} instead of simply ${lc::local_part}, and for the |
179 |
transport you need to change the last part of the command in the same fashion. |
180 |
|
181 |
Other Helpful things to know... |
182 |
------------------------------- |
183 |
run "bin/check_perms -f" from the root mailman directory |
184 |
(/usr/lib/mailman) to check and fix permission problems. |
185 |
|
186 |
The INSTALL file is located in /usr/share/doc/mailman-$VERSION/ |
187 |
|
188 |
Postfix notes |
189 |
------------- |
190 |
If you're using Postfix, don't manually change your /etc/mail/aliases |
191 |
file, as described above. Instead, follow these instructions: |
192 |
|
193 |
http://list.org/mailman-install/node13.html |
194 |
|
195 |
This will set up Mailman and Postfix to automatically generate the new |
196 |
aliases when you create new lists. It will also make sure that Postfix |
197 |
uses the correct group ID when it's talking to Mailman, otherwise you |
198 |
will get security errors from Mailman. |
199 |
|
200 |
|
201 |
|
202 |
|
203 |
1.1 net-mail/mailman/files/50_mailman.conf-r1 |
204 |
|
205 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/files/50_mailman.conf-r1?rev=1.1&view=markup |
206 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/files/50_mailman.conf-r1?rev=1.1&content-type=text/plain |
207 |
|
208 |
Index: 50_mailman.conf-r1 |
209 |
=================================================================== |
210 |
<IfDefine MAILMAN> |
211 |
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/" |
212 |
<Directory "/usr/local/mailman/cgi-bin/"> |
213 |
AllowOverride None |
214 |
Options None |
215 |
Order allow,deny |
216 |
Allow from all |
217 |
</Directory> |
218 |
|
219 |
Alias /pipermail/ "/usr/local/mailman/archives/public/" |
220 |
<Directory "/usr/local/mailman/archives/public/"> |
221 |
AllowOverride None |
222 |
Options ExecCGI FollowSymLinks |
223 |
Order allow,deny |
224 |
Allow from all |
225 |
</Directory> |
226 |
|
227 |
Alias /mailman-icons/ "/usr/local/mailman/icons/" |
228 |
<Directory "/usr/local/mailman/icons/"> |
229 |
AllowOverride None |
230 |
Order allow,deny |
231 |
Allow from all |
232 |
</Directory> |
233 |
</IfDefine> |
234 |
|
235 |
|
236 |
|
237 |
1.1 net-mail/mailman/files/mailman-2.1.9-icons.patch |
238 |
|
239 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/files/mailman-2.1.9-icons.patch?rev=1.1&view=markup |
240 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/files/mailman-2.1.9-icons.patch?rev=1.1&content-type=text/plain |
241 |
|
242 |
Index: mailman-2.1.9-icons.patch |
243 |
=================================================================== |
244 |
diff -rau mailman-2.1.9-orig/Mailman/Defaults.py.in mailman-2.1.9-mailman-icons/Mailman/Defaults.py.in |
245 |
--- mailman-2.1.9-orig/Mailman/Defaults.py.in 2006-08-04 14:20:33.000000000 +0200 |
246 |
+++ mailman-2.1.9/Mailman/Defaults.py.in 2008-02-03 14:27:02.000000000 +0200 |
247 |
@@ -54,7 +54,7 @@ |
248 |
# disable Mailman's logo footer altogther, hack |
249 |
# Mailman/htmlformat.py:MailmanLogo(), which also contains the hardcoded links |
250 |
# and image names. |
251 |
-IMAGE_LOGOS = '/icons/' |
252 |
+IMAGE_LOGOS = '/mailman-icons/' |
253 |
|
254 |
# The name of the Mailman favicon |
255 |
SHORTCUT_ICON = 'mm-icon.png' |
256 |
|
257 |
|
258 |
|
259 |
-- |
260 |
gentoo-commits@l.g.o mailing list |