Skrevet av Emne: Setting up Qmail virtualhosting with a single recepiant  (Lest 5617 ganger)

ATC

  • Gjest
Setting up Qmail virtualhosting with a single recepiant
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • 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.



    ATC

    • Gjest
    [Solved] Setting up Qmail virtualhosting with a single recepiant
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • 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"