Forums.ATC.no

Teknisk => Generelt teknisk => Emne startet av: ATC på 27. ſeptember 2008, 18:24 pm

Tittel: Setting up Qmail virtualhosting with a single recepiant
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
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.
Tittel: [Solved] Setting up Qmail virtualhosting with a single recepiant
Skrevet av: ATC27. ſeptember 2008, 18:24 pm
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"