www.linuxexpert.ro

Tutorials

  • Home
  • BGP Tutorials
    • Remove private AS
  • cPanel Tutorials
    • Install ImageMagick on cPanel
    • Install Softaculous
  • Linux Tutorials
    • Auto-reboot Linux after kernel panic
    • Building a firewall with Iptables
    • Change array RAID 1 disk order
    • Configure ntfs-3g on Linux Slackware
    • DHCP Option Codes
    • DansGuardian with Squid and ClamAV
    • Fetchmail for Gmail accounts
    • Install Zend & APC PHP Optimizers
    • Install Atheros AR242x PCI Express Adapter
    • Install awstats with DirectAdmin
    • Install DBD::mysql via CPAN shell
    • Install DjbDNS on Ubuntu
    • Installing fail2ban on Centos 5
    • Install GoDaddy SSL Certificate
    • Install i386 packages under x86_64
    • Install Linux via USB flashdrive
    • Install ModSecurity2 on Apache2.0.x
    • Install Nginx on CentOS
    • Install webalizer with ispconfig
    • Install intel A/B/G/N wireless on linux
    • Kernel Upgrade
    • Mobile phone access via bluetooth
    • Optimize MySQL
    • Optimize Qmail
    • Optimize server load
    • Optimize and Tune Apache for performance
    • Optimize and Tune Nginx for performance
    • Perfect Mailserver on Debian
    • Pidgin "Now Playing" Status Message
    • PHP hardening
    • PHP hardening with Suhosin
    • PHP5 Support allong with PHP4
    • Previewing your site before making DNS changes
    • Proxy Auto Configuration
    • PXE boot install rescue
    • Setup awstats on CentOS
    • Setup EC2 Amazon L2TP IPSec VPN
    • Setup email piping with Qmail
    • Setup Exim with DKIM
    • Setup Exim smart relay with cPanel
    • Setup OpenVPN
    • Setup postfix on nonstandard port
    • Setup SS5 Socks Proxy
    • Setup vsftp with no shell access
    • Sendmail smart relay with gmail auth
    • Squid proxy NCSA authentication
    • Tcpdump filters
    • Upgrade PHP to 5.3 in Plesk 10
    • Useful regular expressions
    • X with [SiS] 771/671 VGA controller
  • Joomla Tutorials
    • Hardening Joomla
    • Module Positions
    • Remove Joomla description meta tag
  • Looking Glasses
  • Optimize Firefox
  • Security
    • Crack WiFi WEP passwords
    • Defend against UDP isc.org DNS query DDOS
    • Detect DDoS attack
    • Remove malware from web sites
    • Sniff SSL passwords with ettercap
    • Snort2BGP
    • Track Hackers
    • What Is My IP
  • Troubleshooting
    • Grub error no such disk
    • named dumping master file: tmp-XXXXXXXXXX: open: permission denied
    • Nginx 413 Request Entity Too Large
    • SSH conection closed by remote host
    • Troubleshooting sis190.c
  • Unix Tutorials
    • FreeBSD reset root password
    • Installing snort on OpenBSD
    • Unix Toolbox
  • Virtualization Tutorials
    • Convert VirtualBox image to VMWare
    • VMware SNMP Enable
  • VoIP Tutorials
    • Install Elastix
    • Qos for Asterisk

Who's Online

We have 19 guests and no members online

Most Read

  • Setup SS5 Socks Proxy
  • Install webalizer with ispconfig
  • Sniff SSL passwords with ettercap
  • __404__
  • Optimize and Tune Apache for performance

Products and Services

  • Home
  • Linux Products and Services
  • Buy VPN Account
  • Privacy Policy for Linuxexpert
  • Remove malware

Optimize Qmail

  • Print
  • Email
Details
Parent Category: Tutorials
Published: 08 July 2009
Hits: 4834

In this tutorial I'll show you how to optimise Qmail for perfomance in sending emails.

There are a couple setting files that you will want to take a look at. if you do not have these files you can try to create them.
/var/qmail/control/concurrencyremote
Usually is a default around 10 or 20. We suggest to increase this to 250 or above if your memory can handle it. This is the file that you want to adjust.
/var/qmail/control/concurrencylocal
Usually is a default around 20 or 30. You can increase this to a higher number. Please note however - when sending lots of mail (to users outside of your server) concurrencyremote will be the file you want to change.
Both values, concurrencyremote and concurrencylocal can be set up to 1000 for a server with 4G of RAM.
The files should simply contain the number you wish to have for that concurrency type. After you change the files (or create the files) you MUST restart the Qmail service on your server. If you want to see the current settings that your Qmail is using you can run # /var/qmail/bin/qmail-showctl

There is a hard limit that is set when Qmail is built - so you do not want to go crazy with your concurrency settings. Often you can push the concurrency up to 500 and in some default setups of Qmail you can go up to 1,000. You should ensure that you have the memory/ram to back up your settings though. If you set your concurrencyremote to several hundred be prepared for Qmail to start using up more memory as you send.

As with all server changes your results and performance will be heavilly affected by a combination of your settings, server resources, and other server settings that can affect your services. I suggest to make minor changes and then monitor your sending speeds and adjust as needed.

 

The second tweak is to add in  /etc/xinetd.d/smtp_psa those two lines:

 

 

per_source = 1

 

cps = 20 25
To empty qmail queque:
/etc/init.d/qmail stop ; cd /var/qmail/queue && find intd todo local remote mess info bounce -type f -print |xargs rm ; /etc/init.d/qmail start

Note:

We use Hosting and VPS Hosting, from: www.star-host.org

We like and trust them.

Good prices, high security.

fShare
Tweet