Article ID: 115531, created on Feb 12, 2013, last review on May 11, 2014

  • Applies to:
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


I would like to configure a Qmail server to relay all outgoing messages from a particular domain to another mail server. How do I do that?


  1. Make sure the domain is listed in /var/qmail/control/rcpthosts. This configures Qmail to accept mail for the domain.

  2. Create the SMTP routes for the domain to the new server in /var/qmail/control/smtproutes.

To relay email for a specific to another mail server, create the line:

To relay all email to another mail server, regardless of the destination domain, create this line:

Here's a working configuration example where all mail to, is relayed via, via and all other domains mail is relayed via

# cat /var/qmail/control/smtproutes
  1. Restart xinetd:

    /etc/init.d/xinetd restart

Search Words


qmail smtp route


route email

smtp route

29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a 01bc4c8cf5b7f01f815a7ada004154a2

Email subscription for changes to this article
Save as PDF