From installation to management Maintenance QMail mail system, has accumulated a little bit of maintenance experience, share the experience of their summary, the document will be updated.
1) Qmail Control file detailed
In peacetime to maintain and manage the QMail mail system, in order to improve the security of qmail, performance and processing of the speed of the message, often to modify the control directory under the controlling file, generally located in the/var/qmail/control directory.
1.concurrencyremote
This file specifies the number of local delivery processes that QMail can run concurrently, with a default of 10 and a maximum setting of 120.
2.concurrencylocal
The number of remote delivery processes that can run at the same time qmail the default is 20 and the maximum setting is 120.
3.me
This file is a local mail server host name, must have this file, responsible for QMail will run normally.
4.queuelifetime
This file is used to specify the maximum lifetime of a message in the queue, by default of 604,800 seconds, or 7 days, when a message arrives at the timeline, QMail will try to send the message for the last time, and if it still fails, remove it from the queue.
5.virtualdomains
This file is used to specify QMail support for virtual domains.
6.badmailform
The file is equivalent to the qmail blacklist, can be rejected as an account, the entire domain name, writing format as follows:
Cat Badmailfrom
Shifeng_zhang88@163.com deny individual mailboxes to send messages
@gmail. com rejects the entire gmail.com domain name to send mail
Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/Mail/
7.databytes
This file is used to specify the maximum number of bytes that qmail can receive messages, such as setting QMail maximum receive 10M messages. [Root@mail control]# echo "10485760" > Databytes
8.timeoutsmtpd
This file is used to specify the time that QMAIL-SMTPD waits for the remote SMTP host to send data, and by default no information is received from the remote SMTP host for 1200 seconds after the connection is established, and the connection is closed.
9.smtpgreeting
The welcome prompt for specifying an SMTP connection.
2 How to change the QMail log file size
The QMail log is typically located under/var/log/qmail/, and the default log file current is 96K in size, exceeding this value log to zero.
Logs are important to messaging administrators, and you can modify the size of the QMail mail system log file in the following ways. Change the two files below/var/qmail/supervise/, where s2500000 represents the size of the QMail log file, and how many log files the N10 represents.
The following service (Daemontools controlled processes) must be restarted to take effect after the modifications are completed
3 How to view the messages in the QMail mail queue where they were not sent out
The qmailctl Queue command makes it clear that there is currently a message in the queue that is not being sent out, and when the sender and the recipient are sending the message.
4 See how many emails are in the mail queue
[Root@mail qmail]# find/var/qmail/queue/-type f-a-name "[1-9]*" |wc-l
0