Hyperactive Inc.
Please Login or Register

Knowledgebase

How do i optimize qmail for a busy plesk dedicated server?

Platform: Plesk
mail: qmail

By default Qmail is not optimized for use on servers with even a medium server mail load. The default installation of qmail does NOT include the qmail concurrencylocal and cocurrencyremote files in the /var/qmail/controls directory.

The defaults for these settings are concurrencylocal 10 and concurrency remote 20. As you can imagine, having qmail only handle 10 incoming and 20 outgoing emails at a time can cause serious backlogs of mail on busy servers.

To remedy this situation, you need to create the /var/qmail/control/concurrencylocal and /var/qmail/control/concurrencyremote since they do not exist. To do this, follow these steps:

1. SSH into your server

# root] cd /var/qmail/control [enter]
# root] vi concurrencylocal [hit enter]
> [Shift-I]
> type 100
> [Esc]
> [Cntl-Z] [Cntl-Z] (yes hit cntl-z twice)

# root] vi concurrencyremote [hit enter]
> [Shift-I]
> type 200
> [Esc]
> [Cntl-Z] [Cntl-Z] (yes hit cntl-z twice)

# root] service qmail restart

Congratulations, you have increased the local mail delivery to 100 messages at a time and the remote sending of messages to 200 at a time. You will need to watch your server load and make sure these settings dont overload your server. if they cause to high of a load, decrease them by 10 each until you reach a happy medium. However, these are not high at all and are actually the recommended settings.



**use these commands at your own risk, these commands and paths can vary from distro to distro and Hyperactive Inc. takes no responsibility in the accuracy of these statements**



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article


Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search