|
Blue Forest http://www.lslnet.com at 12:08 on July 28, 2006
A summary and discussion on vpopmail! ! Welcome!
Welcome to a discussion on vpopmail together with the management, development and application of knowledge in various areas, we hope to discuss this further increase the understanding of vpopmail! ! ! |
A summary and discussion on vpopmail! ! Welcome!
Management issued a patch on the first article vpopmail
Vpopmail handbook
Author : Ken Jones
Original link : http://inter7.com/vpopmail/vpopmail.html
English http://inter7.com owners :
Translator : Huang Lihong
Contact : kinki@freebsdchina.org
Chinese freebsdchina.org owners : (Please retain the copyright to reproduce the statement)
Quick Installation Guide
Fast installation vpopmail
Untie distributed packets vpopmail
Add vchkpw Group
Add vpopmail users and groups designated as vchkpw
. /configure
Make
Make install-strip
Mail domain and can now add virtual domain virtual mail users. And the use of vadddomain vadduser. . You also need to amend the pop server startup parameter to use vchkpw user authentication procedures.
. With all mail users into the domain of virtual mail users
We recommend that all mail domain are set up as virtual mail domain.
Configuration options
Common options
(1) Enable or dissable --enable-roaming-users=n|y after pop open relay is no authentication.Default
Yes to this option means that the allocation of the client IP address is added to a list of IP addresses, allowing for user authentication in their pop through the use of SMTP after transmittal of the letter. Clearopensmtp cron job : a server, the IP address from the list of certified more than three hours to remove the IP address. This option requires you to the operation of tcpserver SMTP, as well as x /etc/tcp.smtp.cdb parameters (or other document you placed tcp.smtp.cdb Path).
(2) Set and Enable --enable-hardquota=#|n hard quota or no quota for n
Pop installed disk quota for each user the maximum (hard). Default values for IEMG. When the user to achieve the maximum disk quotas, all new items will be returned to the user, together with a piece of information. Since the definition of this information can be customized. If you want to turn off disk quotas set up, the value can be set up as follows : NOQUOTA, such as --enable-hardquota=NOQUOTA
(3) --enable-default-domain=name Default domain name, the default is null
We recommend all mail to the virtual domain mail operation. You can set up one as a default. If you have only one domain, then place it as a default. Users can set up the default mail directly to the domain name user authentication that does not require the use of virtual mail users% domain name format.
(4) --enable-ip-alias-domains=y|n enable virutal domain reverse lookup via ip address lookup for virtual domains.
Default fields are used for each user based on virtual mail domain name. In other words : users must provide their own domain name contains the user name, user names such as : virtual mail domain%. It also set up --enable-default-domain option to be covered by this rule.
Vpopmail also supports IP-based virtual mail address domain. If this option is opened, the users did not provide %< virtual mail domain "; , Then connect to the server to users will rise to a reverse IP address inquiry. If the IP address can analytic server to a domain name, then the domain name as a mail vpopmail use that domain. For example :
Analysis of the IP address wxyz reverse test.com. They set up the pop server to the user IP address and begin to connect wxyz. Vpopmail receipt of this link, connecting to the server's IP address check. Do a reverse IP address inquiry test.com obtain the domain name. Joe sent by users as their pop, and vpopmail test.com used as a domain name.
You can mix based on names and IP addresses in the form of a virtual server.
(5) --enable-relay-clear-minutes=360 expire time after pop authentication for wireless users.
If the installation of a --enable-roamin-users=y option, the option should be retained clearopensmtp installed on the user's IP address in the long list. Default values is three hours.
Mysql option
(1) --enable-mysql=n|y use mysql, default is no
Mysql open authentication.
Editors : vmysql.h confirmed and installed mysql server name or IP address, and the mysql user mysql user passwords. Vpopmail mysql user must create the database and the database table generation competence.
(2) --enable-sqlincdir= Directory where sgl include files are.
Mysql installed documents include a list of locations. /usr/local/mysql Is to set up default values.
(3) where sgl libs are --enable-sqllibdir=/usr/lib/mysql Directory.
Mysql libmysqlclient.a set up a list of documents located. /usr/lib/mysql Acquiescence in the search.
(4) --enable-sqllibs=mysqlclient libraries for sgl linking.
Link installed at the reservoir. Acquiescence is libmysqlclient.a
(5) --enable-large-site=n|y Default is no, the tune for large numbers of users per domain
Acquiescence, vpopmail vpopmail placed all the domain information in a table. This is intended to safeguard many of the most effective methods mail sites. If you are running a large number of users at the site, you might want to set up the option to yes. If imposed yes, vpopmail virtual domain will be generated for each of a table. The main differences is that the domain name is not stored in a database, which contains a domain name because the table. 500,000+ sites for users, this provision can save valuable hard disk space. However, a large number of items in the virtual domain sites, it would lead to the reduction of system performance mysql.
Vpasswd/cdb option
(1) ucspi --enable-ucspi-dir=dir Directory where the package is compiled.
Uspi-tcp packages installed where catalog. Installed as acquiescence. . /ucspi-tcp-0.84. Vpopmail used in the catalog and two headers. A document.
Logging option
(1) Turn on --enable-logging=e|y|n (y) or off (n) logging to Syslog or (e) only log errors
Set up log record levels. Acquiescence only records pop authentication error. This option can be set up to no to the closure of all the log records. Both of these options can also be set up to record all the pop certification.
(2) --enable-log-name=vpopmail set Syslog name.
System log name vpopmail coverage acquiescence.
User/group option
(1) was installed as vchkpw --enable-vpopuser=vpopmail user.
If you wish to use a different reason for a user to install the software, then use this option.
(2) was installed as vchkpw --enable-vpopgroup=vchkpw group.
If for any reason you wish to use a different group to install the software, then use this option.
(3) --enable-admin-email=email-address of e-mail system administrator.
Manager coverage tacit mail addresses.
Directory and file location choice
(1) x relay tcpserver --enable-tcpserver-file=/etc/tcp.smtp File where information is stored.
Set up your tcp. SMTP file name. /etc Acquiescence in the search process set up, and then in /etc/tcprules.d catalog searches.
(2) --enable-qmaildir=dir directory where qmail is installed.
If qmail installed in other catalogs, but not in /var/qmail, then use this option.
(3) --enable-tcprules-prog=/usr/local/bin/tcprules where is your tcprules program.
If installed in other catalogs tcprules procedures, rather than /usr/local/bin, then use this option.
(4) --enable-apop-file=/etc/apop-secrets directory where apop secrerts are stored.
Apop-secrets coverage acquiescence of the position paper.
Other options
(1) Enable or disable --enable-apop=y|n apop authentication.
NO to this choice through the imposition of ban apop. 122 yes (pop and apop).
(2) Enable or disable --enable-passwd=y|n /etc/passwd (or shadow) authentication.
Auto Setup coverage acquiescence. Automatic detection of your acquiescence to the system configuration used passwd and shadow passwords. Introduce the option of NO, you will be banned from all /etc/passwd certification.
Qmail mail and virtual domain
Qmail mail domain were both local and virtual. /etc/passwd Local mail domain is used as test papers. Qmail mail domain through virtual control files "virtualdomains" basis. Vpopmail use qmail users / certification files and virtual domain files. Which user / user/cdb certification will be combined into a database. User/cdb a hash database to speed up matches inquiries. If a matching items, qmail mail delivery procedures will be delivered to the definition in the document catalog, and use predefined relational and good for the drop Forty operating status. Vpopmail use this procedure to make use of a single drop of qmail vpopmail vchkpw group to drop all users and the virtual domain mail. Also use it to direct mail delivery to the mail domain /vpopmail/domains/ virtual catalog.
Once qmail-local users/assign access to information from the procedure, he will implement the standard in the catalog. Qmail documentation. In general,. Qmail- can be used to transmit documents, aliases or transfer procedures, such as ezmlm. If there are no matching items, then qmail-local will find one. Qmail-default documents. This is the final step in qmail-locals transmission mechanism. This procedure using two parameters, the first is not used (only for backwards compatibility). If the second parameter is assigned a virtual domain users find the circumstances, the tacit consent of the mail sent to the address. In principle, and the second parameter is a list of items to be delivered, or transmitted the past for a mail address, or string "mail does not exist", and the mail returned to sender together.
Once vdelivermail up, it will use the core api to check a vpopmail virtual domain users. If users from the mail will be delivered to his list. If vpopmail a hard quotas (IEMG acquiescence of the disk quota), and then the user documents and Maildir/cur maildir/new mail list will be calculated. End users use disk quotas if mail will be allocated back to the sender, accompanied by a self-defined information. If the new mail only 1K byte or smaller, then regardless of whether the quotas used up, will be delivered without disk quota restrictions. Therefore, system management procedures have been able to send messages to users.
Into account existing users
Conversion process can mail accounts from one format into another format. Conversion process can /etc/passwd, vpasswd documents, mysql (small-scale) and mysql (mass) between transformed.
Perhaps the majority of users are now more interested in how the vpopmail into existing domain to the domain mysql format. Mysql format of the user into the whole machinery, the use of the following orders : vconvert-c-s. It will examine all ~vpopmail/domains catalog field, and read the paper every vpasswd loading and the content of the vpopmail mysql. Vpopmail table. For safety reasons and to maintain vpasswd document is not changed. Vconvert can also handle more than one or more jurisdictions. This can be ordered through : vconvert \c about Operation Atal domain1 domain2. . . To be achieved.
To translate all users (except root system and accounts) mysql domain format for users, running about an order : vconvert-e-s domain. This will read all the account and use their passwords generated /etc/passwd mysql the items. /etc/passwd Both in the original password or /etc/shadow. These codes need to work together and vchkpw certification procedures.
Security and pop server under tcpserver
All joined in the virtual domain pop邮件 account, you and through the use of tcpserver-u-g options to designated users and groups to use vpopmail/vchkpw server operating pop, pop server to increase your security.
Order Set
Quota 's
Bouncing mail
Directory structure
Overall vpopmail directory structure
Vpopmail own master directory. In this catalog are the following :
Bin-contains all the binaries
1986-1991 Judge-contained libvpopmail. A document
Include-C program included in the first document
Users-backwards compatibility to the region both in the user domain /etc/passwd have vpopmail
Domains-keeping a list of all the virtual mail domain
Virtual domain user directory structure
Based on a vpopmail use. " Dir-control "the documents state adaptability directory structure, and the state of the document is automatically vpopmail api procedures" vadduser "and" vdeluser "management. 100 or less by the end users, are all stored in the user's directory virtual domain directory. For more than 100 user sites, the adaptive characteristics of the directory structure began to play a role. The basic idea is to separate the user to a number of catalogs and catalog Maildir virus discovers that this [elimination process], in order to ensure never more than a single page list of 100 users.
If you are going to store a large number of users catalog, please confirm you have a system installed in your paper document system higher than conventional inodes.
Vpopmail will require the creation of these directories and automatic virus discovers that this [elimination process], which is usually installed in each list up to 100 users. When a list of users reached 100, which will establish a list or another virus discovers that this [elimination process], a new storage building new users go to the catalog.
Contents in the source document to re-organize the contrib virus discovers that this [elimination process] is a list of procedures.
Internationalization
There are two information will be inserted into the mail. Return two messages targeted at the needs of the company. This is not the first user and the second is the user space has exceeded the set quota. Site managers can create a virtual catalog mail domain. And over-quota.msg. No-user.msg documents from the definition of such information, if not in the catalog to find a virtual mail domain. Over-quota.msg or. No-user.msg documents Then mail domain procedures in the virtual catalog identify them. If they are not found there, then returned to the acquiescence of information will be contained within the mail.
Dot-qmail processing
~vpopmail/domains All in the domain of virtual items under its own catalog. Qmail user/assign paper every area of the entrance to make the delivery process at this qmail-local catalog. Therefore, all the ordinary. Qmail virtual documents in each work area. . Qmail documents only need to work IDs, for example,. Qmail paper operation. Qmail-joe corresponding user joe.Ezmlm use, so it can run in vpopmail under.
If there is no match to a user. Qmail documents, then. Qmail-default document will be used. This document contains vdelivermail procedures. Reading the process of authentication information databases (mysql or vpasswd.cdb) and then delivered to the user's mail list. Vdelibermal the end of the process parameters can be a vpopmail /vchkpw have a mail list, to receive all mail acquiescence in the end there. Alternatively, this can also be a parameter-mail addresses, then all will be forwarded to the default mail addresses. Finally, the last vdelivermail the surface parameters can be posting the information does not exist, it will not find all matching users will retire mail senders.
Qmailadmin
Qmailadmin vpopmail mail with a Web interface to manage the domain. From version 0.26, vpopmail qmailadmin use the api. This means that it can manage vpasswd.cdb mysql or certification. It allows users to increase pop, transmitted and alias management, and automatic reply to ezmlm mail list.
Sqwebmail
Sqwebmail mail client is a web interface. It has a direct mail catalog users read and write. Vpopmail vpasswd and it can work with documents. We have a version of the revised edition in http://www.inter7.com/vpopmail 0.24, it is vpopmail use the api. Meanwhile, it also supports the provision of user passwords and allows users to transmit their mail. Hope that these changes will be integrated into the standard version of the issue.
Courier-imap
Courier-imap Maildirs format is a support IMAP server. It supports the most recent releases of vpasswd vpopmail documents. We will vpopmail integrated version of the api go to the main issue.
Mysql authentication
Cdb authentication
Vpopmail API
From version 9.3.8, vpopmail creation of a libvpopmail.a arsenal. ~vpopmail/lib/ Under. Connecting the reservoir to your application procedures will be provided to the following C function method. ~vpopmail/include Header under the relevant documents.
Int vadddomain (char *domain)
Domain=the new virtual domain
# New virtual mail domain;
Int vdeldomain (char *domain)
Domain=virtual domain to delete
# Delete the virtual mail domain;
Int vadduser (char *user, char *domain, char *password, int apop)
User=new user name
# New users;
Domain=virtual domain
# New mail users virtual domain
Password=clear text password
# Expressly passwords
Apop=0 for pop and one for apop
# 0 designated pop figures, one designated apop
Int vdeluser (char *user, char *domain)
User=user to delete
# Delete users
Domain=virtual domain
# Delete mail users virtual domain
Int vpasswd (char *user, char *domain, char *password)
User=user to change password for
Users who need to alter the code #
Domain=virtual domain
# Laws mail passwords of users in the virtual domain
Password=clear text password
# Expressly passwords
Int vsetuserquota (char *user, char *domain, char *quota)
User=user name to change quota for
# Users were revised user disk quotas
Domain=virtual domain
# Where users need to amend the virtual mail domain disk quota
Char=quota in bytes. M/m and K/k abbrieviations apply. All equal 5 million and 500,000 5m 5M bytes hard quota
# Byte disk quotas for the units, and 500,000 5m all 5M bytes of hard quota equivalent to 5 million
Vpopmail authentication API
Int vauth_addomain (char *domain)
Domain=domain name to add to authentication system
# Added to the domain name system certification
Int vauth_deldomain (char *domain)
Domain=domain name to delete from authentication system
# Delete names from the Authentication System
Int vauth_adduser (char *user, char *domain, char *crypted_password, char *dir, int apop)
User=user to add from authentication system
# Increased user authentication system
Domain=domain name
# Domain name
Crypted_password=encrypted password
# Encryption technology
Dir=full path to directory where users is stored Maildir
#Maildir The entire storage path
Apop=0 for POP and one for APOP
# 0 specified number of POP, APOP designated 1
Int vauth_deluser (char *user, char *domain)
User=user to delete from authentication system
# Deleted from the user name authentication system
Domain=domain name
# Domain name
Int vauth_password (char *user, char *domain, char *crypted_password)
User=user to change in password authentication system
# Changing passwords in the user authentication system
Domain=domain name
# Domain name
Crypted_password=the encrypted password
# Encryption technology
Int vauth_setquota (char *user, char *domain, char *quota)
User=user to set quota for in authentication system
# In the setting of quotas for user authentication system
Domain=domain name
# Domain name
Quota= space quota, bytes, or use M/mK/k measure. 5M=5m=5000000
Struct *passwd vauth_getpw (char *user, char *domain)
User=user name to retrieve password authentication system from entry
# Re password authentication system from the user names
Domain=domain name
# Domain name
Int vauth_setpw (struct *passwd, char *domain)
Passwd=pointer to a passwd structure to store in authentication system.
# Stored in the structure at a password authentication system
Domain=domain name for this passwd structure
The domain structure of the code #
Struct *vauth_user (char *user, char *domain, char *password, char *apop)
User=user name to authenticate
# Authentication of users who
Domain=domain name
# Domain name
Password=clear text password
# Expressly passwords
Apop=not used in version 9.3.8
#apop Not use version 9.3.8
Struct *vauth_getall (char *domain, int first, int sort_it)
Domain=domain name from the structure to retrieve password authentication system
# Need to re-key authentication structure of the domain name system
First=1 to get first record, get next record = 0
# 1 specific figures from the first record, a record of extracting designated 0
Sort_it=1 to have the user list sorted alphabetically. Vpasswd/cdb This has no effect on
Method, since all users are added alphabetically. With mysql it adds to an order by pw_name
The query.
# 1 digital topology users designated list in alphabetical order. Since all users are added in alphabetical order, so this is the vpasswd/cdb invalid.
Pw_name mysql increase by the order and decision. |
A summary and discussion on vpopmail! ! Welcome!
Next, we discuss some qmail alias management, and usage vpopmail China alias orders! ! |
A summary and discussion on vpopmail! ! Welcome!
I do not know if you should do? ? Ha ha
Instead, I am concerned about possible to verify users vpopmail virtual domain name rather than direct mail addresses users |
A summary and discussion on vpopmail! ! Welcome!
What I mean is that as long as vpopmail to discuss the issue can be obtained here.
Vpopmail users can only directly with the tacit consent of the domain name user certification. |
A summary and discussion on vpopmail! ! Welcome!
Vpopmail mysql.sock document can be changed to find out the location of Azerbaijan? |
A summary and discussion on vpopmail! ! Welcome!
Vpopmail this is not the things you should change /etc/my.cnf paper! ! |
| |