📄 vpopmail5.abw
字号:
<p><H4></p><p>Vpasswd/cdb options</H4></p><p><H5>--enable-ucspi-dir=dir Directory where the compiled ucspi package</p><p>is.</H5></p><p><DL></p><p> <DD>Set the directory where the ucspi-tcp package is located. By</p><p> default this is set to ../ucspi-tcp-0.84. Vpopmail uses headers in</p><p> this directory and uses two .a files.</DD></DL></p><p><H4></p><p>Logging options</H4></p><p><H5>--enable-logging=e|y|n Turn on (y) or off (n) logging to syslog</p><p>or (e) only log errors </p><p></H5></p><p><DL></p><p> <DD>Set the level of logging. By default it only logs pop</p><p> authentication errors. You can turn off all logging by setting it to</p><p> no. And you can log all pop authentications by setting it to yes.</DD></DL></p><p><H5></p><p>--enable-log-name=vpopmail set syslog name.</H5></p><p><DL></p><p> <DD>Over ride the default vpopmail syslog name.</DD></DL></p><p><H4></p><p>User/group options</H4></p><p><H5>--enable-vpopuser=vpopmail user vchkpw was installed as.</H5></p><p><DL></p><p> <DD>If for some reason you want to install this package under a</p><p> different user name, use this option.</DD></DL></p><p><H5></p><p>--enable-vpopgroup=vchkpw group vchkpw was installed as.</H5></p><p><DL></p><p> <DD>If for some reason you want to install this package under a</p><p> different group name, use this option.</DD></DL></p><p><H5></p><p>--enable-admin-email=email-address e-mail of system administrator.</H5></p><p><DL></p><p> <DD>Override the default email administrator address.</DD></DL></p><p><H4></p><p>Directory and file location options</H4></p><p><H5>--enable-tcpserver-file=/etc/tcp.smtp File where tcpserver -x</p><p>relay information is stored.</H5></p><p><DL></p><p> <DD>Set the file name of your tcp.smtp file. By default the</p><p> configure program looks in /etc and then in /etc/tcprules.d</p><p> directories.</DD></DL></p><p><H5></p><p>--enable-qmaildir=dir directory where qmail is installed.</H5></p><p><DL></p><p> <DD>If you installed qmail into a directory other than /var/qmail,</p><p> use this option.</DD></DL></p><p><H5></p><p>--enable-tcprules-prog=/usr/local/bin/tcprules where is your tcprules</p><p>program.</H5></p><p><DL></p><p> <DD>If you installed the tcprules program into a directory other</p><p> than /usr/local/bin, use this option.</DD></DL></p><p><H5></p><p>--enable-apop-file=/etc/apop-secrets directory where apop secrerts</p><p>are stored.</H5></p><p><DL></p><p> <DD>Over ride the default location of the apop-secrets file.</DD></DL></p><p><H4></p><p>Other options</H4></p><p><H5>--enable-apop=y|n Enable or disable apop authentication. </p><p></H5></p><p><DL></p><p> <DD>Disable apop by setting this option to no. The default is yes</p><p> (pop and apop).</DD></DL></p><p><H5></p><p>--enable-passwd=y|n Enable or disable /etc/passwd (or shadow)</p><p>authentication. </p><p></H5></p><p><DL></p><p> <DD>Over ride the automatic configuration. By default the</p><p> configuration program will automatically detect if you are using</p><p> passwd and shadow passwords. By setting this option to no, you will</p><p> disable all /etc/passwd authentication.</DD></DL></p><p><H3></p><p>Qmail and Virtual domains</H3></p><p><P>Qmail has an idea of email domains that are &quot;local&quot; and</p><p>&quot;virtual&quot;. Local domains are ones which primarily match</p><p>against /etc/passwd. Virtual domains match against domains listed in</p><p>the qmail control file &quot;virtualdomains&quot;. Vpopmail makes use</p><p>of the qmail users/assign file and virtualdomains file. The</p><p>users/assign file gets compiled into a users/cdb file. It is a hashed</p><p>database to speed searches for patterns. If a pattern is matched then</p><p>qmail delivers the email to the directory defined in the file using</p><p>the uid and gid which as also defined. Vpopmail makes use of this</p><p>method to have qmail deliver all virtual domain email as the single</p><p>uid/gid vpopmail/vchkpw. It also uses it to direct delivery to a</p><p>vpopmail/domains/&lt;virtualdomain&gt; directory.</P></p><p><P>Once qmail-local gets the information from the users/assign file</p><p>it performs standard .qmail file processing in the directory. Normal</p><p>.qmail-&lt;user&gt; files can be used for forwarding, aliases or</p><p>invoking programs such as ezmlm. If no matches are found qmail-local</p><p>looks for a .qmail-default file. This is the last stage in</p><p>qmail-locals delivery mechansim. Vpopmail uses this file to invoke</p><p>the vdelivermail program. This program takes two parameters, the</p><p>first is not used (it is there for backward compatibility). The</p><p>second parameter is the default delivery if a virtual domain user can</p><p>not be found. Basicly, it can be a directory to deliver the email to,</p><p>an email address to forward the email to, the string</p><p>&quot;bounce-no-mailbox&quot; to bounce the mail back to the sender</p><p>or the string &quot;delete&quot; to drop/delete the mail.</P></p><p><P>Once vdelivermail is started up, it uses the core vpopmail api</p><p>calls to check for a virtual domain user. If the user exists, the</p><p>email is delivered into their directory. If vpopmail was configured</p><p>for hard quotas (default is yes with 50Meg quota), then the size of</p><p>the users current email files in their Maildir/new and Maildir/cur</p><p>directories are counted. If the user is over quota the email is</p><p>bounced back to the user with a bounce message that can be</p><p>customized. If the message is 1Kbytes or smaller the email will</p><p>always be delivered. This is so system administration programs can</p><p>always get a message through to the user. </p><p></P></p><p><H3>Converting current user accounts</H3></p><p><P>The vconvert program can convert email accounts from one format</p><p>into another format. Conversion can be between /etc/passwd, vpasswd</p><p>files, mysql (small version) and mysql (large version. </p><p></P></p><p><P>Most current vpopmail users would probably be interested in how to</p><p>convert current domains into mysql domains. To make it simple to</p><p>convert an entire machine to mysql, use the following command:</p><p>vconvert -c -s This will go through all the domains in</p><p>~vpopmail/domains directory and read each vpasswd file and load the</p><p>contents into the vpopmail.vpopmail mysql table. The vpasswd file is</p><p>left untouched for safety. Vconvert can also be run against one or</p><p>more domains at a time. This is done by running the command as so:</p><p>vconvert \c \s domain1 domain2 ...</P></p><p><P>To convert all users (except root and system accounts) into a</p><p>mysql domain run the following command: vconvert -e -s domain. This</p><p>reads all /etc/passwd accounts and creates mysql entries using their</p><p>passwords. The passwords can be in either /etc/passwd or /etc/shadow.</p><p>These passwords should work under vchkpw authentication program. </p><p></P></p><p><H3>Security and pop server under tcpserver</H3></p><p><P>If all of your pop email accounts are under virtual domains, you</p><p>can increase the security of your pop server by running it under the</p><p>uid and gid of vpopmail/vchkpw using the tcpserver -u and -g options.</P></p><p><H3>Commands</H3></p><p><P STYLE="margin-bottom: 0in"><BR></p><p></P></p><p><H3>Quota's</H3></p><p><P STYLE="margin-bottom: 0in"><BR></p><p></P></p><p><H3>Bouncing mail</H3></p><p><P STYLE="margin-bottom: 0in"><BR></p><p></P></p><p><H3><a name="directorystructure">Directory structure</a></H3></p><p><H4>Overall vpopmail directory structure</H4></p><p><P>Vpopmail gets it's own home directory. Under this directory there</p><p>are the following:</P></p><p><DL></p><p> <DD>bin - contains all the binaries</DD><DD></p><p> lib - contains the libvpopmail.a file</DD><DD></p><p> include - contains the C header files</DD><DD></p><p> users - for backward compatibility for people who mix /etc/passwd</p><p> users with vpopmail users in one domain</DD><DD></p><p> domains - where all the virtual domains are kept.</DD></DL></p><p><H4></p><p>Virtual domain user directory structure</H4></p><p><P>Vpopmail uses an adaptive directory structure based on a state</p><p>file &quot;.dir-control&quot; which is automatically managed by the</p><p>core vpopmail api functions &quot;vadduser&quot; and &quot;vdeluser&quot;.</p><p>For sites with 100 users or less, all user directories are stored in</p><p>the virtual domain directory. For sites that go above 100 users the</p><p>adaptive directory structure goes into effect. The basic idea is to</p><p>break up the user Maildir directories across multple directories and</p><p>sub directories so that there are never more than 100 user</p><p>directories in a single directory.</P></p><p><P>The default directory setup allows for 62 directories in 3 levels</p><p>and 100 user directories per directory. The total number of user</p><p>directories is equal to 100 + (62 * 100) + (62 * 62 * 100) + (62 * 62</p><p>* 62 * 100) = over 24 million directories. This should be more than</p><p>sufficent for any site and probably goes beyond the technology of</p><p>directory structures. </p><p></P></p><p><P>If you are going to be storing large numbers of user directories,</p><p>make sure you set your file system to have a higher than normal</p><p>percentage of inodes. </p><p></P></p><p><P>Vpopmail will automatically create these directories and sub</p><p>directories as needed and populate each directory with up to 100 user</p><p>accounts. As soon as a directory reaches 100 users it will create the</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -