Gentoo Archives: gentoo-doc-cvs

From: Sven Vermeulen <swift@××××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: virt-mail-howto.xml
Date: Wed, 21 May 2008 19:39:45
Message-Id: E1JyuA2-0000Kq-7h@stork.gentoo.org
1 swift 08/05/21 19:39:42
2
3 Modified: virt-mail-howto.xml
4 Log:
5 Coding style
6
7 Revision Changes Path
8 1.59 xml/htdocs/doc/en/virt-mail-howto.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml?rev=1.59&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml?rev=1.59&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml?r1=1.58&r2=1.59
13
14 Index: virt-mail-howto.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v
17 retrieving revision 1.58
18 retrieving revision 1.59
19 diff -u -r1.58 -r1.59
20 --- virt-mail-howto.xml 24 Aug 2007 18:59:45 -0000 1.58
21 +++ virt-mail-howto.xml 21 May 2008 19:39:42 -0000 1.59
22 @@ -1,5 +1,5 @@
23 <?xml version='1.0' encoding='UTF-8'?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.58 2007/08/24 18:59:45 swift Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/virt-mail-howto.xml,v 1.59 2008/05/21 19:39:42 swift Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 <guide link="/doc/en/virt-mail-howto.xml">
29 @@ -70,9 +70,9 @@
30 </p>
31
32 <p>
33 -The following packages are used in this setup: apache, courier-imap, courier-authlib
34 -postfix, mod_php, phpmyadmin, squirrelmail, cyrus-sasl, mysql, php, and
35 -mailman.
36 +The following packages are used in this setup: apache, courier-imap,
37 +courier-authlib postfix, mod_php, phpmyadmin, squirrelmail, cyrus-sasl, mysql,
38 +php, and mailman.
39 </p>
40
41 <p>
42 @@ -164,7 +164,7 @@
43 # <i>/usr/bin/newaliases</i>
44 <comment>(This will install the new aliases. You only need to do this
45 when you update or install aliases.)</comment>
46 -
47 +
48 # <i>/etc/init.d/postfix start</i>
49 </pre>
50
51 @@ -238,11 +238,11 @@
52
53 <p>
54 Next we're going to install cyrus-sasl. Sasl is going to play the role of
55 -actually passing your auth variables to courier-auth, which will in turn pass that
56 -information to mysql for authentication of smtp users. For this howto, we'll
57 -not even try to verify that sasl is working until mysql is set up and contains
58 -a test user. Which is fine since we'll be authenticating against mysql in the
59 -end anyway.
60 +actually passing your auth variables to courier-auth, which will in turn pass
61 +that information to mysql for authentication of smtp users. For this howto,
62 +we'll not even try to verify that sasl is working until mysql is set up and
63 +contains a test user. Which is fine since we'll be authenticating against
64 +mysql in the end anyway.
65 </p>
66
67 <pre caption="Configuring and installing the cyrus-sasl ebuild">
68 @@ -338,10 +338,9 @@
69 mangled by postfix and be unable to auth.)</comment>
70
71 smtpd_recipient_restrictions =
72 - permit_sasl_authenticated,
73 - permit_mynetworks,
74 - reject_unauth_destination
75 -
76 + permit_sasl_authenticated,
77 + permit_mynetworks,
78 + reject_unauth_destination
79
80 <comment>(The next two options enable outgoing encryption.)</comment>
81 smtp_use_tls = yes
82 @@ -455,18 +454,17 @@
83
84 # <i>/usr/bin/mysql_install_db</i>
85 <comment>(After this command runs follow the onscreen directions
86 -for adding a root password with mysql, otherwise your db will
87 +for adding a root password with mysql, otherwise your db will
88 be wide open.)</comment>
89
90 # <i>/etc/init.d/mysql start</i>
91 # <i>mysqladmin -u root -p create mailsql</i>
92 # <i>mysql -u root -p mailsql &lt; genericmailsql.sql</i>
93 -
94 # <i>mysql -u root -p mysql</i>
95 mysql> <i>GRANT SELECT,INSERT,UPDATE,DELETE</i>
96 - -> <i>ON mailsql.*</i>
97 - -> <i>TO mailsql@localhost</i>
98 - -> <i>IDENTIFIED BY '$password';</i>
99 + -> <i>ON mailsql.*</i>
100 + -> <i>TO mailsql@localhost</i>
101 + -> <i>IDENTIFIED BY '$password';</i>
102 Query OK, 0 rows affected (0.02 sec)
103
104 mysql> <i>FLUSH PRIVILEGES;</i>
105 @@ -495,19 +493,19 @@
106 </ul>
107
108 <pre caption="alias table sample">
109 -id alias destination
110 -1 root foo@×××.com
111 -2 postmaster foo@×××.com
112 +id alias destination
113 +1 root foo@×××.com
114 +2 postmaster foo@×××.com
115 </pre>
116
117 <pre caption="user table sample">
118 <comment>(Line wrapped for clarity.)</comment>
119 id email clear name uid gid homedir \
120 - maildir quota postfix
121 + maildir quota postfix
122 10 foo@×××××××××××.com $password realname virtid virtid /home/vmail \
123 - /home/vmail/virt-domain.com/foo/.maildir/ y
124 + /home/vmail/virt-domain.com/foo/.maildir/ y
125 13 foo@×××.com $password realname localid localid /home/foo \
126 - /home/foo/.maildir/ y
127 + /home/foo/.maildir/ y
128 </pre>
129
130 <p>
131 @@ -522,8 +520,8 @@
132 </pre>
133
134 <pre caption="virtual table sample">
135 -id email destination
136 -3 root@×××××××××××.com other@×××××.address
137 +id email destination
138 +3 root@×××××××××××.com other@×××××.address
139 </pre>
140
141 </body>
142 @@ -573,7 +571,7 @@
143 # <i>cp /etc/ssl/misc/new.cert.cert /etc/apache2/ssl/</i>
144 # <i>cp /etc/ssl/misc/new.cert.key /etc/apache2/ssl/</i>
145 # <i>cd /etc/apache2/vhosts.d</i>
146 -<comment>(Check if you have an ssl-vhost template already.
147 +<comment>(Check if you have an ssl-vhost template already.
148 Copy that one instead of the default_vhost if that is the case)</comment>
149 # <i>cp 00_default_vhost.conf ssl-vhost.conf</i>
150 # <i>nano -w ssl-vhost.conf</i>
151 @@ -685,65 +683,65 @@
152 # <i>nano -w /etc/postfix/mysql-aliases.cf</i>
153 # mysql-aliases.cf
154
155 -user = mailsql
156 -password = $password
157 -dbname = mailsql
158 -table = alias
159 -select_field = destination
160 -where_field = alias
161 -hosts = unix:/var/run/mysqld/mysqld.sock
162 +user = mailsql
163 +password = $password
164 +dbname = mailsql
165 +table = alias
166 +select_field = destination
167 +where_field = alias
168 +hosts = unix:/var/run/mysqld/mysqld.sock
169 </pre>
170
171 <pre caption="/etc/postfix/mysql-relocated.cf">
172 # <i>nano -w /etc/postfix/mysql-relocated.cf</i>
173 # mysql-relocated.cf
174
175 -user = mailsql
176 -password = $password
177 -dbname = mailsql
178 -table = relocated
179 -select_field = destination
180 -where_field = email
181 -hosts = unix:/var/run/mysqld/mysqld.sock
182 +user = mailsql
183 +password = $password
184 +dbname = mailsql
185 +table = relocated
186 +select_field = destination
187 +where_field = email
188 +hosts = unix:/var/run/mysqld/mysqld.sock
189 </pre>
190
191 <pre caption="/etc/postfix/mysql-transport.cf (optional)">
192 -# <i>nano -w /etc/postfix/mysql-transport.cf</i>
193 +# <i>nano -w /etc/postfix/mysql-transport.cf</i>
194 # mysql-transport.cf
195
196 -user = mailsql
197 -password = $password
198 -dbname = mailsql
199 -table = transport
200 -select_field = destination
201 -where_field = domain
202 -hosts = unix:/var/run/mysqld/mysqld.sock
203 +user = mailsql
204 +password = $password
205 +dbname = mailsql
206 +table = transport
207 +select_field = destination
208 +where_field = domain
209 +hosts = unix:/var/run/mysqld/mysqld.sock
210 </pre>
211
212 <pre caption="/etc/postfix/mysql-virtual-gid.cf (optional)">
213 # <i>nano -w /etc/postfix/mysql-virtual-gid.cf</i>
214 # mysql-virtual-gid.cf
215
216 -user = mailsql
217 +user = mailsql
218 password = $password
219 -dbname = mailsql
220 +dbname = mailsql
221 table = users
222 select_field = gid
223 where_field = email
224 additional_conditions = and postfix = 'y'
225 -hosts = unix:/var/run/mysqld/mysqld.sock
226 +hosts = unix:/var/run/mysqld/mysqld.sock
227 </pre>
228
229 <pre caption="/etc/postfix/mysql-virtual-maps.cf">
230 # <i>nano -w /etc/postfix/mysql-virtual-maps.cf</i>
231 # mysql-virtual-maps.cf
232
233 -user = mailsql
234 +user = mailsql
235 password = $password
236 dbname = mailsql
237 table = users
238 select_field = maildir
239 -where_field = email
240 +where_field = email
241 additional_conditions = and postfix = 'y'
242 hosts = unix:/var/run/mysqld/mysqld.sock
243 </pre>
244 @@ -757,7 +755,7 @@
245 dbname = mailsql
246 table = users
247 select_field = uid
248 -where_field = email
249 +where_field = email
250 additional_conditions = and postfix = 'y'
251 hosts = unix:/var/run/mysqld/mysqld.sock
252 </pre>
253 @@ -766,13 +764,13 @@
254 # <i>nano -w /etc/postfix/mysql-virtual.cf</i>
255 # mysql-virtual.cf
256
257 -user = mailsql
258 -password = $password
259 -dbname = mailsql
260 -table = virtual
261 -select_field = destination
262 -where_field = email
263 -hosts = unix:/var/run/mysqld/mysqld.sock
264 +user = mailsql
265 +password = $password
266 +dbname = mailsql
267 +table = virtual
268 +select_field = destination
269 +where_field = email
270 +hosts = unix:/var/run/mysqld/mysqld.sock
271 </pre>
272
273 <p>
274 @@ -789,7 +787,7 @@
275 local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
276
277 virtual_transport = virtual
278 -<comment>(The domains listed by the mydestination should not be listed in
279 +<comment>(The domains listed by the mydestination should not be listed in
280 the virtual_mailbox_domains parameter)</comment>
281 virtual_mailbox_domains = virt-domain.com, $other-virtual-domain.com
282
283 @@ -892,7 +890,7 @@
284 <pre caption="mailman config: mm_cfg.py">
285 # <i>nano -w /usr/local/mailman/Mailman/mm_cfg.py</i>
286 MTA = "Postfix"
287 -POSTFIX_STYLE_VIRTUAL_DOMAINS = ['virt-domain.com', 'virt.domain2.com']
288 +POSTFIX_STYLE_VIRTUAL_DOMAINS = ['virt-domain.com', 'virt.domain2.com']
289 add_virtualhost('www.virt.domain.com', 'virt.domain.com')
290 add_virtualhost('www.virt.domain2.com', 'virt.domain2.com')
291 <comment>(This is required for your virtual domains for mailman to function.)</comment>
292 @@ -947,12 +945,12 @@
293 <comment>(Read README.POSTFIX.gz for details on this.)</comment>
294
295 alias_maps =
296 - hash:/usr/local/mailman/data/aliases,
297 - mysql:/etc/postfix/mysql-aliases.cf
298 + hash:/usr/local/mailman/data/aliases,
299 + mysql:/etc/postfix/mysql-aliases.cf
300
301 virtual_alias_maps =
302 - hash:/usr/local/mailman/data/virtual-mailman,
303 - mysql:/etc/postfix/mysql-virtual.cf
304 + hash:/usr/local/mailman/data/virtual-mailman,
305 + mysql:/etc/postfix/mysql-virtual.cf
306 <comment>(This adds mailman alias file support to postfix
307 You may of course use the mysql tables for this,
308 but I hate doing that by hand. Also, if you are not
309
310
311
312 --
313 gentoo-doc-cvs@l.g.o mailing list