Ano-Tech Computers
Enter keyword:

Setting up Qmail virtualhosting with a single recepiant
Problem:
This article describes how to set up a virtualhost with qmail to forward ALL mail for that domain to a single user account. That user may then "fork" his mail using .qmail-* files, but that's beyond the scope of this article.
 
Solution:
1. Add domain to /var/qmail/control/rcpthosts
2. Add domain:user to /var/qmail/control/virtualdomains
3. "su -" to the user

If mail is to be stored locally:
4. Put "./Maildir/" in ".qmail-default"

If mail is to be forwarded:
4. Put forward address in ".qmail-default"

Finally, reload qmail to activate changes:
/etc/rc.d/init.d/qmail reload

For more information about how to write proper .qmail files: "man dot-qmail"
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles