|
2
|
1 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
2 |
? ]
|
|
|
3 |
|
|
|
4 |
Copyright (C) 1998 Bruce Guenter
|
|
0
|
5 |
|
|
2
|
6 |
VMailMgr Frequently Asked Questions.
|
|
|
7 |
|
|
|
8 |
1. Building and Installing
|
|
|
9 |
_________________________________________________________________
|
|
|
10 |
|
|
|
11 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
12 |
? ]
|
|
0
|
13 |
|
|
2
|
14 |
1.1 What compiler and libraries do I need to build vmailmgr?
|
|
0
|
15 |
|
|
2
|
16 |
You will need a working C and C++ compiler and linker. You will not
|
|
|
17 |
need any C++ libraries. The package is being developed under Linux
|
|
|
18 |
using egcs and glibc version 2, and may rely on some gcc/g++
|
|
|
19 |
extensions.
|
|
|
20 |
_________________________________________________________________
|
|
0
|
21 |
|
|
2
|
22 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
23 |
? ]
|
|
|
24 |
|
|
|
25 |
1.2 Does vmailmgr work with shadow passwords?
|
|
0
|
26 |
|
|
2
|
27 |
This package should work without changes both with and without shadow
|
|
|
28 |
passwords as long as the shadow password libraries are present when
|
|
|
29 |
this package is built. The configure script will detect what method of
|
|
|
30 |
shadow passwords are being used and the programs will be built
|
|
|
31 |
accordingly.
|
|
|
32 |
_________________________________________________________________
|
|
|
33 |
|
|
|
34 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
35 |
? ]
|
|
|
36 |
|
|
|
37 |
1.3 Does vmailmgr support IMAP?
|
|
0
|
38 |
|
|
2
|
39 |
Yes, vmailmgr supports Courier-IMAP. Some minor steps are needed to
|
|
|
40 |
make them work, the steps are in the next section of this file.
|
|
|
41 |
_________________________________________________________________
|
|
|
42 |
|
|
|
43 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
44 |
? ]
|
|
0
|
45 |
|
|
2
|
46 |
2. Setup and Configuration
|
|
|
47 |
_________________________________________________________________
|
|
0
|
48 |
|
|
2
|
49 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
50 |
? ]
|
|
0
|
51 |
|
|
2
|
52 |
2.1 What other software is needed to run vmailmgr?
|
|
0
|
53 |
|
|
2
|
54 |
VMailMgr is based around qmail's handling of virtual users, and as
|
|
|
55 |
such requires qmail for its operation. If you wish to use the init
|
|
|
56 |
file to start/stop vmailmgrd or are installing the RPM package,
|
|
|
57 |
supervise-scripts version 2.2 (or later, available at
|
|
|
58 |
http://untroubled.org/supervise-scripts/) and daemontools 0.60 (or
|
|
|
59 |
later, available at http://untroubled.org/rpms/daemontools/) packages
|
|
|
60 |
are required. If you need to use the vmailmgrd daemon, you will also
|
|
|
61 |
need the unixserver program, from the ucspi-unix package, available at
|
|
|
62 |
http://untroubled.org/ucspi-unix/.
|
|
0
|
63 |
|
|
2
|
64 |
If you want to use the autoresponse feature, I recommend the use of my
|
|
|
65 |
own autoresponder program, qmail-autoresponder available at
|
|
|
66 |
http://untroubled.org/qmail-autoresponder/.
|
|
|
67 |
_________________________________________________________________
|
|
0
|
68 |
|
|
2
|
69 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
70 |
? ]
|
|
|
71 |
|
|
|
72 |
2.2 How do I record the output of vmailmgrd with syslog?
|
|
0
|
73 |
|
|
2
|
74 |
Output from vmailmgrd can be recorded by either splogger (part of
|
|
|
75 |
qmail) or with the logger that comes with several flavours of UNIX. To
|
|
|
76 |
use splogger, pipe the output of vmailmgrd into the command `splogger
|
|
|
77 |
vmailmgrd'. This will timestamp each entry and tag them with the word
|
|
|
78 |
`vmailmgrd'. By default, splogger logs to facility 2 (mail). To use
|
|
|
79 |
logger, pipe the output of vmailmgrd into the command `logger -t
|
|
|
80 |
vmailmgrd -p mail.notice'. See the respective man pages of these two
|
|
|
81 |
programs for more information.
|
|
0
|
82 |
|
|
2
|
83 |
Note: The use of syslog for logging messages is strongly discouraged
|
|
|
84 |
due to problems with inefficent and buggy implementation of syslog.
|
|
|
85 |
_________________________________________________________________
|
|
0
|
86 |
|
|
2
|
87 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
88 |
? ]
|
|
|
89 |
|
|
|
90 |
2.3 How do I record the output of vmailmgrd with multilog?
|
|
0
|
91 |
|
|
2
|
92 |
Make a directory into which the output will go, for example
|
|
|
93 |
`/var/log/vmailmgrd'. Pipe the output of vmailmgrd into the command
|
|
|
94 |
`multilog t /var/log/vmailmgrd'. See the documentation for multilog
|
|
|
95 |
for more information on how to adjust its output.
|
|
|
96 |
_________________________________________________________________
|
|
|
97 |
|
|
|
98 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
99 |
? ]
|
|
|
100 |
|
|
|
101 |
2.4 How do I setup VMmailMgr IMAP support?
|
|
0
|
102 |
|
|
2
|
103 |
VMailMgr supports Courier-IMAP, but Courier-IMAP does not auto detect
|
|
|
104 |
VMailMgr. This means that some minor work is required for making the
|
|
|
105 |
two work together.
|
|
|
106 |
|
|
|
107 |
* You must copy `/usr/local/bin/authvmailmgr' to
|
|
|
108 |
`/usr/lib/courier-imap/libexec/authlib/authvmailmgr'.
|
|
|
109 |
* Then modify the AUTHMODULES statement in
|
|
|
110 |
`/usr/lib/courier-imap/etc/imapd.config' and add authvmailmgr as
|
|
|
111 |
the first authentication module.
|
|
|
112 |
_________________________________________________________________
|
|
0
|
113 |
|
|
2
|
114 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
115 |
? ]
|
|
|
116 |
|
|
|
117 |
2.5 Upgrading from Previous Versions
|
|
0
|
118 |
|
|
2
|
119 |
If you are upgrading from an older version, you may need to make some
|
|
|
120 |
changes to your system before or after doing the upgrade. The
|
|
|
121 |
following table outlines the necessary changes. Note that you need to
|
|
|
122 |
follow the instructions for all later versions of the software.
|
|
|
123 |
_________________________________________________________________
|
|
0
|
124 |
|
|
2
|
125 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
126 |
? ]
|
|
|
127 |
|
|
|
128 |
2.5.1 Upgrading from version 0.96.6 or earlier
|
|
|
129 |
|
|
|
130 |
The vmailmgrd daemon needs to be run by unixserver, as opposed to
|
|
|
131 |
being a stand-alone program previously.
|
|
|
132 |
_________________________________________________________________
|
|
|
133 |
|
|
|
134 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
135 |
? ]
|
|
|
136 |
|
|
|
137 |
2.5.2 Upgrading from version 0.96.2 or earlier
|
|
0
|
138 |
|
|
2
|
139 |
Make sure the vmailmgrd daemon and vmailmgr CGIs are disabled before
|
|
|
140 |
upgrading, and upgrade them along with the main package. Changes were
|
|
|
141 |
made to the daemon interface that will cause adding users and aliases
|
|
|
142 |
to flake out. As well, the listdomain interface was completely redone.
|
|
|
143 |
_________________________________________________________________
|
|
|
144 |
|
|
|
145 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
146 |
? ]
|
|
0
|
147 |
|
|
2
|
148 |
2.5.3 Upgrading from version 0.94 or earlier, using the POP bulletin facility
|
|
|
149 |
|
|
|
150 |
The POP bulletin facility has been moved into a stand-alone program
|
|
|
151 |
that needs to be executed through checkvpw-postsetuid.
|
|
|
152 |
_________________________________________________________________
|
|
|
153 |
|
|
|
154 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
155 |
? ]
|
|
0
|
156 |
|
|
2
|
157 |
2.5.4 Upgrading from version 0.93 or earlier
|
|
|
158 |
|
|
|
159 |
If you do not use the CGIs, you no longer need to run the vmailmgrd
|
|
|
160 |
daemon.
|
|
|
161 |
_________________________________________________________________
|
|
0
|
162 |
|
|
2
|
163 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
164 |
? ]
|
|
|
165 |
|
|
|
166 |
2.5.5 Upgrading from version 0.92.2 or earlier
|
|
0
|
167 |
|
|
2
|
168 |
The configuration changed from reading a single file to reading a set
|
|
|
169 |
of files in a directory. Read the configuration documentation and run
|
|
|
170 |
the program vconf2dir.
|
|
|
171 |
_________________________________________________________________
|
|
0
|
172 |
|
|
2
|
173 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
174 |
? ]
|
|
0
|
175 |
|
|
2
|
176 |
2.5.6 Upgrading from version 0.90.2 or earlier
|
|
0
|
177 |
|
|
2
|
178 |
The name of the user to which mail to an unknown user is delivered
|
|
|
179 |
changed from `*' to `+'. If you were using this feature, either change
|
|
|
180 |
all your domains to accomodate this change, or set the
|
|
|
181 |
`default-username' config file to contain `*'.
|
|
|
182 |
_________________________________________________________________
|
|
0
|
183 |
|
|
2
|
184 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
185 |
? ]
|
|
|
186 |
|
|
|
187 |
2.5.7 Upgrading from version 0.88 or earlier
|
|
0
|
188 |
|
|
2
|
189 |
The file format of the virtual password tables has changed from plain
|
|
|
190 |
text files to CDB tables. You will need to suspend local deliveries
|
|
|
191 |
before upgrading, and run the program vpasswd2cdb as each base user
|
|
|
192 |
after upgrading, before re-enabling local deliveries.
|
|
|
193 |
_________________________________________________________________
|
|
0
|
194 |
|
|
2
|
195 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
196 |
? ]
|
|
|
197 |
|
|
|
198 |
2.6 How do I configure qmail+patches to use vmailmgr for POP?
|
|
0
|
199 |
|
|
2
|
200 |
Put the string checkvpw into the file
|
|
|
201 |
`/etc/qmail/control/checkpassword' and restart qmail-pop3d by typing
|
|
|
202 |
`/etc/rc.d/init.d/pop3d restart'.
|
|
|
203 |
_________________________________________________________________
|
|
0
|
204 |
|
|
2
|
205 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
206 |
? ]
|
|
0
|
207 |
|
|
2
|
208 |
2.7 How do I allow clients to relay SMTP through me?
|
|
0
|
209 |
|
|
2
|
210 |
Download and install relay-ctrl from
|
|
|
211 |
http://untroubled.org/relay-ctrl/. It works with vmailmgr, for both
|
|
|
212 |
POP3 and IMAP clients.
|
|
|
213 |
_________________________________________________________________
|
|
|
214 |
|
|
|
215 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
216 |
? ]
|
|
|
217 |
|
|
|
218 |
3. Usage
|
|
|
219 |
_________________________________________________________________
|
|
0
|
220 |
|
|
2
|
221 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
222 |
? ]
|
|
0
|
223 |
|
|
2
|
224 |
3.1 I can only use one IP address. How do I log in as a virtual user?
|
|
0
|
225 |
|
|
2
|
226 |
There are two ways to log in without using multiple IP addresses.
|
|
0
|
227 |
|
|
2
|
228 |
* The first way is to log in as `userSEPvirtual.domain.org', where
|
|
|
229 |
`user' is the mailbox name of the virtual user, SEP is one of `@'
|
|
|
230 |
or `:' (by default, this is configurable in the `/etc/vmailmgr/'
|
|
|
231 |
directory), and `virtual.domain.org' is the virtual domain's name,
|
|
|
232 |
as listed in `/var/qmail/control/virtualdomains'.
|
|
|
233 |
* The second way is to use the internal form of the mailbox name --
|
|
|
234 |
that is, `baseuser-user', where `user' is the same as above, and
|
|
|
235 |
`baseuser' is the username of the managing user.
|
|
|
236 |
For example, `/var/qmail/control/virtualdomains' contains
|
|
|
237 |
`testdomain.org:testuser', user `testuser' exists, and has set up
|
|
|
238 |
a virtual mailbox with the name `v'. The separators variable in
|
|
|
239 |
`/etc/vmailmgr/' contains `@:'. This virtual user could log in as
|
|
|
240 |
`v@testdomain.org', `v:testdomain.org', or `testuser-v'.
|
|
|
241 |
_________________________________________________________________
|
|
0
|
242 |
|
|
2
|
243 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
244 |
? ]
|
|
|
245 |
|
|
|
246 |
3.2 How do I get all misdirected mail sent to me?
|
|
|
247 |
|
|
|
248 |
In the `vmailmgr/' configuration directory, there is an entry called
|
|
|
249 |
`default-username'. If mail to a virtual domain does not match any
|
|
|
250 |
users or aliases in that domain, it is delivered to the name listed in
|
|
|
251 |
this configuration item if it exists (which defaults to `+'). To make
|
|
|
252 |
this deliver to you, simply type:
|
|
0
|
253 |
|
|
|
254 |
|
|
2
|
255 |
vaddalias + me
|
|
|
256 |
_________________________________________________________________
|
|
|
257 |
|
|
|
258 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
259 |
? ]
|
|
|
260 |
|
|
|
261 |
3.3 How can I put system accounts in a virtual domain?
|
|
0
|
262 |
|
|
2
|
263 |
System accounts are those listed in `/etc/password' (or
|
|
|
264 |
`/var/qmail/users/cdb'). The system accounts are accessable, either
|
|
|
265 |
though SMTP or POP3 or IMAP, as `name@DOMAIN', where DOMAIN is listed
|
|
|
266 |
in `/var/qmail/control/locals'.
|
|
|
267 |
|
|
|
268 |
Virtual accounts exist only as an artifact of vmailmgr management.
|
|
|
269 |
They are accessable as `name@DOMAIN', where DOMAIN is listed in
|
|
|
270 |
`/var/qmail/control/virtualdomains'.
|
|
0
|
271 |
|
|
2
|
272 |
You cannot mix accounts within a domain between system and virtual
|
|
|
273 |
domains. If the domain is in `control/locals', all accounts for that
|
|
|
274 |
domain must be system accounts. If it is in `control/virtualdomains',
|
|
|
275 |
all accounts for that domain must be virtual accounts. Also,
|
|
|
276 |
`control/locals' overrides `control/virtualdomains': if the domain is
|
|
|
277 |
in `locals', `virtualdomains' is ignored.
|
|
0
|
278 |
|
|
2
|
279 |
As an aside, if the domain is neither in `locals' nor in
|
|
|
280 |
`virtualdomains', qmail will reject incoming messages, and vmailmgr
|
|
|
281 |
will treat it as local.
|
|
|
282 |
_________________________________________________________________
|
|
0
|
283 |
|
|
2
|
284 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
285 |
? ]
|
|
0
|
286 |
|
|
2
|
287 |
4. Troubleshooting
|
|
|
288 |
_________________________________________________________________
|
|
0
|
289 |
|
|
2
|
290 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
291 |
? ]
|
|
|
292 |
|
|
|
293 |
4.1 Bind error message from vmailmgrd.
|
|
|
294 |
|
|
|
295 |
If vmailmgrd reports
|
|
|
296 |
|
|
|
297 |
vmailmgrd: bind: no such file or directory
|
|
0
|
298 |
|
|
2
|
299 |
when you start it up, it means that can't create its socket file. By
|
|
|
300 |
default, it will try to create the socket file `/tmp/.vmailmgrd'. You
|
|
|
301 |
must ensure that `/tmp/' is writable, or that the socket is created in
|
|
|
302 |
some other place by setting socket-file in the configuration.
|
|
|
303 |
_________________________________________________________________
|
|
0
|
304 |
|
|
2
|
305 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
306 |
? ]
|
|
0
|
307 |
|
|
2
|
308 |
4.2 Error sending to an alias: qmail-queue exited with an error!
|
|
0
|
309 |
|
|
2
|
310 |
If qmail reports
|
|
0
|
311 |
|
|
2
|
312 |
deferral: vdeliver: qmail-queue exited with an error!
|
|
0
|
313 |
|
|
2
|
314 |
check where your qmail is installed. On Debian systems, you will need
|
|
|
315 |
to type `ls -s /usr/sbin /var/qmail/bin', since they've installed the
|
|
|
316 |
qmail binaries into `/usr/sbin'.
|
|
|
317 |
_________________________________________________________________
|
|
0
|
318 |
|
|
2
|
319 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
320 |
? ]
|
|
|
321 |
|
|
|
322 |
4.3 Running vmailmgrd fails.
|
|
|
323 |
|
|
|
324 |
When run by itself, vmailmgrd will report
|
|
|
325 |
|
|
|
326 |
Timed out waiting for remote
|
|
0
|
327 |
|
|
2
|
328 |
vmailmgrd needs to be run from unixserver, part of the ucspi-unix
|
|
|
329 |
package available at http://untroubled.org/ucspi-unix/.
|
|
|
330 |
_________________________________________________________________
|
|
0
|
331 |
|
|
2
|
332 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
333 |
? ]
|
|
0
|
334 |
|
|
2
|
335 |
4.4 POP3 or IMAP logins take 30 seconds or longer.
|
|
|
336 |
|
|
|
337 |
This is almost certainly a DNS lookup problem. Make sure that DNS
|
|
|
338 |
lookups aren't timing out, that lookups on all your IP addresses
|
|
|
339 |
aren't failing, and that you can lookup remote addresses as well.
|
|
0
|
340 |
|
|
2
|
341 |
If you are using tcpserver for the head end to qmail-pop3d, then you
|
|
|
342 |
may want to add the following 2 switches to the command line: `-R' and
|
|
|
343 |
`-H'. The former prevents tcpserver from attempting to obtain
|
|
|
344 |
TCPREMOTEINFO from the remote host. This eliminates an ident lookup
|
|
|
345 |
that may be being blocked or silently dropped by a firewall. The
|
|
|
346 |
latter prevents tcpserver from doing a DNS lookup on the remote IP.
|
|
|
347 |
_________________________________________________________________
|
|
0
|
348 |
|
|
2
|
349 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
350 |
? ]
|
|
0
|
351 |
|
|
2
|
352 |
5. Miscellaneous
|
|
|
353 |
_________________________________________________________________
|
|
|
354 |
|
|
|
355 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
356 |
? ]
|
|
0
|
357 |
|
|
2
|
358 |
5.1 How do I get in contact with other users?
|
|
0
|
359 |
|
|
2
|
360 |
There is a mailing list run by the author. To subscribe, send an
|
|
|
361 |
e-mail (content and subject line is ignored) to
|
|
|
362 |
vmailmgr-subscribe@lists.untroubled.org.
|
|
0
|
363 |
|
|
2
|
364 |
Remember that if you have a problem that you want us to diagnose, we
|
|
|
365 |
need to know the following important details:
|
|
|
366 |
1. The output of qmail-showctl
|
|
|
367 |
2. The contents of the vmailmgrd log for the attempt you are trying
|
|
|
368 |
to diagnose
|
|
|
369 |
3. The contents of the qmail and smtpd logs for a failed delivery
|
|
|
370 |
attempt
|
|
|
371 |
4. The contents of the pop3d logs for a failed login attempt
|
|
|
372 |
5. The complete command line with which vmailmgrd and qmail-pop3d was
|
|
|
373 |
invoked
|
|
0
|
374 |
|
|
2
|
375 |
Please do not contact the author directly with vmailmgr questions.
|
|
|
376 |
_________________________________________________________________
|
|
0
|
377 |
|
|
2
|
378 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
379 |
? ]
|
|
|
380 |
|
|
|
381 |
5.2 Are development version of vmailmgr available anywhere?
|
|
0
|
382 |
|
|
2
|
383 |
Yes, they are available through anonymous CVS. To access the CVS
|
|
|
384 |
server, set your CVSROOT to
|
|
|
385 |
:pserver:cvs@bruce-guenter.dyndns.org:/CVS, log in with an empty
|
|
|
386 |
password, and check out the vmailmgr module.
|
|
|
387 |
_________________________________________________________________
|
|
0
|
388 |
|
|
2
|
389 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
390 |
? ]
|
|
|
391 |
|
|
|
392 |
5.3 How does incoming email get handled?
|
|
0
|
393 |
|
|
2
|
394 |
Incoming email is first received by the qmail SMTP daemon and inserted
|
|
|
395 |
into the qmail queue. Then qmail-send examines the email envelope
|
|
|
396 |
(which details the recipient address or addresses) to determine how to
|
|
|
397 |
dispatch the message. It looks up the domain name of each recipient in
|
|
|
398 |
`/var/qmail/control/virtualdomains', and prefixes the user name with
|
|
|
399 |
the string that it finds. It then looks up the resulting user name in
|
|
|
400 |
the system password table (or in `/var/qmail/users/cdb' if it exists)
|
|
|
401 |
to find the base user name and home directory (which I will call
|
|
|
402 |
$HOME). It then looks for the file `$HOME/.qmail-VIRTUAL'. If that's
|
|
|
403 |
not found, it looks for the file `$HOME/.qmail-default', which will
|
|
|
404 |
contain an instruction to pipe the message to vdeliver.
|
|
0
|
405 |
|
|
2
|
406 |
This is where vmailmgr first enters the picture. The virtual user name
|
|
|
407 |
is sent to vdeliver through environment variables. It looks in the
|
|
|
408 |
configuration files (in `$HOME/.vmailmgr' and then in `/etc/vmailmgr')
|
|
|
409 |
to determine the location of the password table, and looks up the
|
|
|
410 |
virtual user name in the table to determine delivery instructions. If
|
|
|
411 |
the name is not found, the message is bounced and delivery ends.
|
|
|
412 |
Otherwise, it then looks for the vdeliver-predeliver script in the
|
|
|
413 |
configuration directories (in reverse order) and executes any that are
|
|
|
414 |
found. It then delivers the message to all the listed destinations --
|
|
|
415 |
an optional mailbox directory and zero or more forwarding addresses.
|
|
|
416 |
Finally, it looks for the vdeliver-postdeliver script and executes any
|
|
|
417 |
that are found.
|
|
|
418 |
_________________________________________________________________
|
|
0
|
419 |
|
|
2
|
420 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
421 |
? ]
|
|
0
|
422 |
|
|
2
|
423 |
5.4 How does outgoing email get handled?
|
|
0
|
424 |
|
|
2
|
425 |
Outgoing email is not handled by vmailmgr. For details on outgoing
|
|
|
426 |
email handling, check the qmail documentation.
|
|
|
427 |
_________________________________________________________________
|
|
|
428 |
|
|
|
429 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
430 |
? ]
|
|
|
431 |
|
|
|
432 |
5.5 What about security of CGI and PHP functions?
|
|
0
|
433 |
|
|
2
|
434 |
The socket used by the daemon is a UNIX-domain socket (as opposed to
|
|
|
435 |
Internet-domain), meaning you need local access on the computer to
|
|
|
436 |
open up a connection. The path for this socket is run-time
|
|
|
437 |
configurable.
|
|
0
|
438 |
|
|
2
|
439 |
The daemon forks a new connection for each connection, up to a
|
|
|
440 |
configurable maximum (at which point it stops listening, IIRC, I
|
|
|
441 |
should verify this). The idea of threading has been completely
|
|
|
442 |
discarded to avoid a bug in a command creeping in and making the whole
|
|
|
443 |
server break.
|
|
0
|
444 |
|
|
2
|
445 |
The protocol spoken over the socket is explicitly bounded to at most
|
|
|
446 |
64kB of data, and all data is prefixed by a size. Static-sized buffers
|
|
|
447 |
are only used with static-sized reads, and therefore can't be
|
|
|
448 |
overflowed with stack-smashing tricks.
|
|
|
449 |
|
|
|
450 |
The daemon commands setuid to the appropriate user as soon as the base
|
|
|
451 |
user has been verified, to avoid doing any more than necessary as
|
|
|
452 |
root, as well as to avoid the possibility of tricking the daemon into
|
|
|
453 |
reading a file another user wouldn't normally have access to.
|
|
|
454 |
|
|
|
455 |
To help avoid DoS on the local computer, a 1-second alarm is set as
|
|
|
456 |
soon as the connection is received, and is only cleared once all the
|
|
|
457 |
data has been read. If it takes longer than 1 second to read the data
|
|
|
458 |
from the socket, the server process exits.
|
|
|
459 |
_________________________________________________________________
|
|
|
460 |
|
|
|
461 |
[ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [
|
|
|
462 |
? ]
|
|
|
463 |
|
|
|
464 |
5.6 What are the differences between vmailmgr and vpopmail?
|
|
0
|
465 |
|
|
2
|
466 |
The primary difference between vmailmgr and vpopmail is the use of
|
|
|
467 |
base users. With vmailmgr there is one base user for each virtual
|
|
|
468 |
domain. With vpopmail, there is one base user for the entire virtual
|
|
|
469 |
domain system.
|
|
|
470 |
_________________________________________________________________
|
|
|
471 |
|
|
|
472 |
[Top] [Contents] [Index] [ ? ]
|
|
|
473 |
|
|
|
474 |
Table of Contents
|
|
0
|
475 |
|
|
2
|
476 |
1. Building and Installing
|
|
0
|
477 |
|
|
2
|
478 |
1.1 What compiler and libraries do I need to build vmailmgr?
|
|
|
479 |
1.2 Does vmailmgr work with shadow passwords?
|
|
|
480 |
1.3 Does vmailmgr support IMAP?
|
|
0
|
481 |
|
|
2
|
482 |
2. Setup and Configuration
|
|
|
483 |
2.1 What other software is needed to run vmailmgr?
|
|
|
484 |
2.2 How do I record the output of vmailmgrd with syslog?
|
|
|
485 |
2.3 How do I record the output of vmailmgrd with multilog?
|
|
|
486 |
2.4 How do I setup VMmailMgr IMAP support?
|
|
|
487 |
2.5 Upgrading from Previous Versions
|
|
0
|
488 |
|
|
2
|
489 |
2.5.1 Upgrading from version 0.96.6 or earlier
|
|
|
490 |
2.5.2 Upgrading from version 0.96.2 or earlier
|
|
|
491 |
2.5.3 Upgrading from version 0.94 or earlier, using the POP
|
|
|
492 |
bulletin facility
|
|
|
493 |
2.5.4 Upgrading from version 0.93 or earlier
|
|
|
494 |
2.5.5 Upgrading from version 0.92.2 or earlier
|
|
|
495 |
2.5.6 Upgrading from version 0.90.2 or earlier
|
|
|
496 |
2.5.7 Upgrading from version 0.88 or earlier
|
|
0
|
497 |
|
|
2
|
498 |
2.6 How do I configure qmail+patches to use vmailmgr for POP?
|
|
|
499 |
2.7 How do I allow clients to relay SMTP through me?
|
|
|
500 |
3. Usage
|
|
|
501 |
3.1 I can only use one IP address. How do I log in as a virtual user?
|
|
|
502 |
3.2 How do I get all misdirected mail sent to me?
|
|
|
503 |
3.3 How can I put system accounts in a virtual domain?
|
|
0
|
504 |
|
|
2
|
505 |
4. Troubleshooting
|
|
|
506 |
4.1 Bind error message from vmailmgrd.
|
|
|
507 |
4.2 Error sending to an alias: qmail-queue exited with an error!
|
|
|
508 |
4.3 Running vmailmgrd fails.
|
|
|
509 |
4.4 POP3 or IMAP logins take 30 seconds or longer.
|
|
0
|
510 |
|
|
2
|
511 |
5. Miscellaneous
|
|
|
512 |
5.1 How do I get in contact with other users?
|
|
|
513 |
5.2 Are development version of vmailmgr available anywhere?
|
|
|
514 |
5.3 How does incoming email get handled?
|
|
|
515 |
5.4 How does outgoing email get handled?
|
|
|
516 |
5.5 What about security of CGI and PHP functions?
|
|
|
517 |
5.6 What are the differences between vmailmgr and vpopmail?
|
|
|
518 |
_________________________________________________________________
|
|
0
|
519 |
|
|
2
|
520 |
[Top] [Contents] [Index] [ ? ]
|
|
|
521 |
|
|
|
522 |
Short Table of Contents
|
|
0
|
523 |
|
|
2
|
524 |
1. Building and Installing
|
|
|
525 |
2. Setup and Configuration
|
|
|
526 |
3. Usage
|
|
|
527 |
4. Troubleshooting
|
|
|
528 |
5. Miscellaneous
|
|
|
529 |
_________________________________________________________________
|
|
0
|
530 |
|
|
2
|
531 |
[Top] [Contents] [Index] [ ? ]
|
|
0
|
532 |
|
|
2
|
533 |
About this document
|
|
0
|
534 |
|
|
2
|
535 |
This document was generated by Bruce.Guenter.dyndns.org on December,
|
|
|
536 |
29 2004 using texi2html
|
|
0
|
537 |
|
|
2
|
538 |
The buttons in the navigation panels have the following meaning:
|
|
0
|
539 |
|
|
2
|
540 |
Button Name Go to From 1.2.3 go to
|
|
|
541 |
[ < ] Back previous section in reading order 1.2.2
|
|
|
542 |
[ > ] Forward next section in reading order 1.2.4
|
|
|
543 |
[ << ] FastBack previous or up-and-previous section 1.1
|
|
|
544 |
[ Up ] Up up section 1.2
|
|
|
545 |
[ >> ] FastForward next or up-and-next section 1.3
|
|
|
546 |
[Top] Top cover (top) of document
|
|
|
547 |
[Contents] Contents table of contents
|
|
|
548 |
[Index] Index concept index
|
|
|
549 |
[ ? ] About this page
|
|
0
|
550 |
|
|
2
|
551 |
where the Example assumes that the current position is at
|
|
|
552 |
Subsubsection One-Two-Three of a document of the following structure:
|
|
|
553 |
* 1. Section One
|
|
0
|
554 |
|
|
2
|
555 |
* 1.1 Subsection One-One
|
|
0
|
556 |
|
|
2
|
557 |
* ...
|
|
0
|
558 |
|
|
2
|
559 |
1.2 Subsection One-Two
|
|
|
560 |
* 1.2.1 Subsubsection One-Two-One
|
|
|
561 |
* 1.2.2 Subsubsection One-Two-Two
|
|
|
562 |
* 1.2.3 Subsubsection One-Two-Three <== Current Position
|
|
|
563 |
* 1.2.4 Subsubsection One-Two-Four
|
|
0
|
564 |
|
|
2
|
565 |
1.3 Subsection One-Three
|
|
|
566 |
* ...
|
|
0
|
567 |
|
|
2
|
568 |
1.4 Subsection One-Four
|
|
|
569 |
_________________________________________________________________
|
|
0
|
570 |
|
|
2
|
571 |
This document was generated by Bruce.Guenter.dyndns.org on December,
|
|
|
572 |
29 2004 using texi2html
|