http://www.chinaunix.net Author:
peng
5.1 purpose
This article focuses on the configuration and application of VPopMail and QMAILADMIN, setting up and manage users via vpopmail and qmailadmin.
5.2 VPOPMAIL Function Introduction
Implementing multiple domains on a mail server is one of the QMAIL users who are very concerned about, in order to solve this problem, Inter7 has developed VPopmail (vchkpw) complying with GPL copyright to make users conveniently in a QMAIL message. A mail virtual domain and non-system account are implemented on the server. It has the characteristics:
1. All QMAIL configuration and data files provide a command with a detailed description.
2, just take up a system account, all related processes run under a single UID / GID.
3. Support the virtual domain based on NAMED and IP. Safe use of NFS.
4. Creating a mail directory for ten to 10,000 users by using a three-level balance tree fill technology.
5. Provide configurable recording functions according to the management needs of the real world.
6, support Oracle, Sybase, MySQL, LDAP, / etc / passwd, / etc / shadow, and default CDB user authentication information storage.
7. Direct data directly to MAildir, come and qmail-pop3d, .qmail files, or any other MAILDIR program. There is no need to provide a lot of .qmail files for virtual domains, each domain has its own directory in the hostage user's home directory. There is a separate password file per domain.
8. Detailed command programs can be used in script files and remote management. All VPopMail features have a detailed explanation documentation.
Moreover, the following packages have enhanced QMAIL VPOPMAIL characteristics:
1, qmailadmin based on the web-based VPOPMAIL management tool.
2, VQSIGNUP a CGI program based on a VPOPMAIL management tool that allows the user to apply for an email account yourself.
3, Courier IMAP IMAP server.
4, QWebmail Based on the web-based Email client.
5.3 installation settings for VPOPMAIL
When I installed Vpopmail, I set the following options:
# ./Configure
--enable-default-domain = chinaunix.net
--enable-passwd = N /
--enable-tcprules-prop = / usr / local / bin / tcprules /
--enable-ip-alias-dmains = N /
--enable-herdquota = 10500000 /
--enable-sqwebmail-pass = y /
--enable-roaming-users = y /
--enable-mysql = y /
--enable-indir = / usr / include / mysql /
--enable-libdir = / usr / lib / mysql
Among them, it is:
--enable-default-domain = chinaunix.net Set the default domain name is ChinaUnix.Net
It is recommended to set all the domains to a virtual domain, and select one as the default domain. For users of the default domain, by receiving the mail, only the mail username can be set in the user name, and for other non-default users, you need to set the username to peng@chinaUnix.net format. Take the letter through the POP3.
--enable-passwd = n
Allow or prohibit / etc / passwd (or shadow) certification. Override automatic configuration, the default configuration program will automatically detect
The system is using the Passwd or Shadow password, and all / etc / passwd account authentication can be prohibited by setting this option to NO. It can also be said that it is forbidden to system users from mail users. --enable-tcprules-prop = / usr / local / bin / tcprules
TCPRules program installation location, default / usr / local / bin
--enable-ip-alias-dmains = n
Allows to view the virtual domain by reverse parsing. By default, each domain uses a virtual domain name, that is, the user must provide the corresponding domain information in the POP3 username, which is peng@chinaUnix.net. Of course, you can also use the Enable-Default-Domain configuration option to overwrite this request. Vpopmail also supports the IP address-based virtual domain. If the option is open, the user does not need to provide @
--enable-hardquota = 10500000
If the disk limit is exceeded, the new message to which the user will be refused, and a rejection information message is returned, and the information can be customized.
--enable-sqwebmail-pass = y
Support SQWWEBMAIL certification, I can choose Yes in order to use SQWwebmail.
--enable-roaming-users = y
When the POP3 authentication is passed, whether it opens the mail forward forward (Mail Relay), the default is closed. If this option is Y, when a user passes POP3 authentication, add its IP address to the list of Relay through the mail server. A CronJob program called ClearOpenSmtp can be used to achieve the IP address from allowing forward mail address lists after this period of time. This option requires the SMTP server using TCPServer with the -x /etc/tcp.smtp.cdb option.
--enable-mysql = y
Using MySQL, the default is NO. Allows the user to be authenticated by storing the account in the MySQL database.
--enable-indir = / usr / include / mysql
The directory of the SQL header file.
--enable-libdir = / usr / lib / mysql
Library file libmysqlclient.a directory.
Vpopmail has many other comments, this is not introduced here, you can view the install and readme file by ./configure -help. Everyone can also look at MAN.
5.4 Vpopmail use
Vpopmail's functional commands are placed in the / home / vpopmail / bin directory, we will introduce it here:
Vadddomain Chinaunix.net
----- Add a virtual domain
Vadduser peng@chinaunix.net
Add a user from a certain domain
ClearOpensmtp
Clear an expired IP address from the IP address authentication table. But when you set -enable-roaming-users = y in Configure, when a user passes POP3 authentication, the IP address is added to the license through the mail server in the list of RELAY. Clearopensmtp's cronjob program is used to achieve the IP address from allowed to forward the mail address list after this period of time. Each IP is added, will be plus a time tag, the default is 3 hours. After three hours, ClearOpensmtp was cleared. Vaddaliasdomain
Set an alias for a domain name, when you have a domain name chinaunix.net, you want to add an alias Chinaunix.com to make Peng@chinaUnix.net and peng@chinaunix.com is a user, the command format is:
# .vadddliasdomain chinaunix.com chinaunxi.net --- The front is an alias, followed by the domain name already existing.
Vdeldomain
Delete a domain:
# Vdeldomain chinaunix.com
VDELUSER
Delete a user:
#vdeluser peng@chinaUnix.net
VDELDUSER
Deleting users in an expired authentication table, the default is 3 hours.
VDominfo
First is a virtual domain information, you can help:
# Vdominfo -help is very simple
VPasswd
Change a user's password
vuserinof
Show a user's information
vsetuserquota
Set a domain or a user's space size:
#vsetuserquota peng@chinaUnix.net 10500000 --- Setting this user's space is 10m.
#vsetuserquota chinaunix.net 10500000 --- Setting all user spaces in this domain is 10m.
These are all commonly used commands or related to this system settings. There are also some commands, and the user authentication mode is different and the system call is not introduced.
5.5 Introduction to qmailadmin
Here is the web management of how to use the QMAILADMIN implementation of the virtual domain mail user account stored in the database by qmailadmin implementation on the database management of the QMAIL mail account. The use of QMAILADMIN administrators can add deletion users and modify user passwords through the web mode, and users can modify their passwords themselves.
5.6 use of qmailadmin
1, landing
Through the Vadddom in the vpopmail, we add a domain, the default system management user is Postmaster, the password is set yourself. Enter: http://mail.chinaunix.net/cgi-bin/qmailadmin, the login interface appears. Where the Domain Name column To fill in the name of the virtual domain you need to manage, the Password column to fill in the Password's PASSWORD of the virtual domain. (The password of the mail administrator, if you forget, you need to use the / home / vpopmai / bin / vpasswd postmaster@virtualdomain.com to modify).
2, email account management
It is very clear here, there is nothing to say.
You can find users through an index.
You can change your username and set forward mail by modifying.
Delete the user by deleting the user button.
You can set a user through the Catchall button to accept the letters of all users. You can also cancel and set the remote acceptance email address by the lower option.
2, alias set up interface
This interface is a list of aliases that displays the currently defined alias, select "Add New Alias" Add alias: here define peng as webmaster alias.
3, forwarding management interface
Here, all of the defined messages are displayed, when selecting "Add New Forward", enter the forwarding add interface:
"Forwarded Mail Address" defines the name of the destination to be forwarded, "local" defines the name of the local account.
4, automatic reply management interface
This interface shows the automatic reply that has been defined, the automatic reply management interface is as follows:
"Automatic Reply Name" is used to specify the mail address to be automatically replied, "Forwarding Copy to Mail Address" is used to define the mail address to the letter when the letter is automatically replied.
5, mailing list
The mailing list, we will discuss the application and management of the mailing list in later (7) EZMLM.
summary
Through the above functions, it is basically possible to simply manage one email service. Whether it is through the VPopmail tool command or qmailadmin can complete the user management. When you add a domain, you can only pass the tool commands of VPopmail. One thing to pay attention is to be QMailAdmin security. That is to prevent the postmaster password from leakage. Telnet OR SSH way, can be limited by the machine's firewall to realize the limitations of the IP address. QMAILADMIN suggestions do not use 80 ports to set in Apache. When it is best to compile Apache, add the MOD_LIMITIPCONN module to limit the number of concurrent connections of Apache, which can limit multithreaded attacks, or to crack passwords through multi-threaded web ways.