| 1 |
<html> |
| 2 |
<body> |
| 3 |
|
| 4 |
<h2><a href="cvm.html">CVM</a></h2> |
| 5 |
|
| 6 |
<h1>The cvm-qmail Module</h1> |
| 7 |
|
| 8 |
<h2>Synopsis:</h2> <p>qmail configuration lookup module</p> |
| 9 |
|
| 10 |
<h2>Credentials:</h2> |
| 11 |
|
| 12 |
<p>None, only operates as a lookup module.</p> |
| 13 |
|
| 14 |
<h2>Description:</h2> |
| 15 |
|
| 16 |
<p>This module uses the standard qmail configuration files to determine |
| 17 |
if an address is valid, using the same lookups that qmail would. It |
| 18 |
first checks <tt>control/locals</tt> and then |
| 19 |
<tt>control/virtualdomains</tt> to determine if the domain is valid, and |
| 20 |
to determine the prefix to add to virtual domain usernames. If the |
| 21 |
domain is not found, it fails with <a href="facts.html">OUTOFSCOPE</a> |
| 22 |
set to true. It then looks up the resulting username |
| 23 |
in <tt>users/cdb</tt> (or the system password table if the CDB does not |
| 24 |
exist) to determine the correct home directory. If the address would |
| 25 |
require a <tt>.qmail-something</tt> file, it ensures that that file |
| 26 |
exists as well, doing <tt>-default</tt> checks as necessary. If the |
| 27 |
address is not deliverable based on these checks, it fails |
| 28 |
with <a href="facts.html">OUTOFSCOPE</a> set to false.</p> |
| 29 |
|
| 30 |
<h2>Configuration Variables:</h2> |
| 31 |
|
| 32 |
<dl> |
| 33 |
|
| 34 |
<dt><tt>$CVM_QMAIL_ASSUME_LOCAL</tt> (optional)</dt> <dd>If set, all |
| 35 |
domains not found in <tt>control/virtualdomains</tt> are assumed to be |
| 36 |
local domains.</dd> |
| 37 |
|
| 38 |
<dt><tt>$CVM_QMAIL_CHECK_PERMS</tt> (optional)</dt> <dd>If set, the CVM |
| 39 |
will check that the <tt>.qmail</tt> file is accessible by temporarily |
| 40 |
switching to the target user ID. If <tt>$CVM_QMAIL_CHECK_PERMS</tt> |
| 41 |
starts with a "<tt>-</tt>" and the lookup fails because access was |
| 42 |
denied, then the lookup is rejected with a permanent error, otherwise a |
| 43 |
temporary I/O error is returned.</dd> |
| 44 |
|
| 45 |
<dt><tt>$CVM_QMAIL_LOOKASIDE</tt> (optional)</dt> <dd>This variable |
| 46 |
contains a list of program names, separated by spaces. If one of these |
| 47 |
program names is found as a program delivery in the <tt>.qmail</tt> |
| 48 |
file, cvm-qmail will fail the lookup with |
| 49 |
<a href="facts.html">OUTOFSCOPE</a> set to true. This is useful for |
| 50 |
chaining lookups to <a href="cvm-vmailmgr.html">cvm-vmailmgr</a> or |
| 51 |
other modules that correspond to programs that are executed |
| 52 |
from <tt>.qmail-default</tt> files.</dd> |
| 53 |
|
| 54 |
<dt><tt>$CVM_QMAIL_MISSINGDOMAIN</tt> (optional)</dt> <dd>If this is set |
| 55 |
and the domain name is not a local or virtual qmail domain, this domain |
| 56 |
name is substituted and the lookup succeeds. This allows for setups |
| 57 |
where domains listed in <tt>control/rcpthosts</tt> and |
| 58 |
<tt>control/morercpthosts.cdb</tt> (which are accepted by the SMTP |
| 59 |
receiver) are not listed as local or virtual domains. If this is set to |
| 60 |
an empty value, "<tt>localhost</tt>" is substituted. This has no effect |
| 61 |
if <tt>$CVM_QMAIL_ASSUME_LOCAL</tt> is set.</dd> |
| 62 |
|
| 63 |
<dt><tt>$CVM_QMAIL_MISSINGUSER</tt> (optional)</dt> <dd>When missing |
| 64 |
domain substitution is being done, the value of this variable is used to |
| 65 |
replace the username. The value must exist as a valid system user. |
| 66 |
Defaults to "<tt>alias</tt>" which will normally exist on all qmail |
| 67 |
systems.</dd> |
| 68 |
|
| 69 |
<dt><tt>$QMAIL_ROOT</tt> (optional)</dt> <dd>The root directory under |
| 70 |
which all the qmail configuration files are expected to be found. |
| 71 |
Defaults to "<tt>/var/qmail</tt>", which is the normal qmail install |
| 72 |
path.</dd> |
| 73 |
|
| 74 |
</dl> |
| 75 |
|
| 76 |
</body> |
| 77 |
</html> |