On Wed, 25 Oct 2000, Barley wrote:

> Hi all,
> I am managing a mail server for a company that has two domain names serving
> the same site. They want people to be able to send them mail at either
> domain but have all mail forwarded to the first domain, one account per
> user. Is there a way to configure qmail so that if it recieves mail for
> [EMAIL PROTECTED] it automatically forwards to [EMAIL PROTECTED]? I know I
> could create an entry for each user and specify forwarding instructions
> individually, but I was hoping there was a more catch-all elegant solve that
> would automatically forward mail for new users I added to domain.com. Like
> if the system gets mail for [EMAIL PROTECTED], it automatically looks for
> [EMAIL PROTECTED] Thanks for any ideas.

Add to /var/qmail/control/rcpthosts

    domain2.com

Remove domain2.com from /var/qmail/control/locals

Add to /var/qmail/control/virtualdomains

    domain2.com:alias-domain1

Create /var/qmail/alias/.qmail-domain1-default

    | forward $[EMAIL PROTECTED]

Send a SIGHUP to qmail-send

-- 
Regards
Peter
----------
Peter Samuel                            [EMAIL PROTECTED]
http://www.e-smith.org (development)    http://www.e-smith.com (corporate)
Phone: +1 613 368 4398                  Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to