> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Qmail : Domain specific relaying
- URL: https://kudithipudi.org/qmail-domain-specific-relaying/
- Published: 2006-08-11T21:48:54.000Z
- Updated: 2006-08-11T21:48:54.000Z
- Description: Recipe to forward e-malis destined to a particular domain in qmail 1) Edit smtproutes (usually located in /var/qmail/control) and add the following line DOMIAN_TO_FORWARD:HOST_TO_FORWARD_TO 2) Edit...
- Author: admin
- Tags: Linux, Networking, Technology, Uncategorized, #wp, #wp-post, #Import 2026-08-23 02:32

Recipe to forward e-malis destined to a particular domain in qmail  
1) Edit **smtproutes** (usually located in **/var/qmail/control**) and add the following line  
**DOMIAN\_TO\_FORWARD:HOST\_TO\_FORWARD\_TO**  
  
2) Edit **rcpthosts** (usually located in **/var/qmail/control**) and add name of the domain

3) Restart qmail

**Note:** Make sure that the domain is not listed in the virtualdomains files too. Or qmail will process the virtualdomains file first and ignore the smtproutes entry.