* Mark E. Drummond ([EMAIL PROTECTED]) [17 Dec 1999 20:03]:

> I was just asked if qmail could do the fol, which I am sure it can, and
> I am sure this is a vitual domains thing, but I lack self esteem and
> need some reassurance ... ;-)

Take a seat, or better still lie down on the couch over there.

This can be done with virtual domains (I am sure there are other
variants as well).

> I want to have email coming in to [EMAIL PROTECTED] redirected to
> [EMAIL PROTECTED] ... possible?

( Read the FAQ and the sections dealing with virtual domains. This
  help is taken directly from Dan's text)

To use the virtual domain approach here is a cookbook approach:

1.  Add  onedomain.com:rufus to /var/qmail/control/virtualdomains
    where "rufus" is an account (any old account) that will be handling mail directed
    to [EMAIL PROTECTED]

2a. Add onedomain.com to /var/qmail/control/rcpthosts.

2b. Make sure the MX record for onedomain.com is pointing
    to the machine that you are performing all these changes.

3.  Set up all default mail for "rufus" to be passed to daotherdomain:

        % pwd
        % /home/rufus
        % cat .qmail-default
        # forward all mail destined for onedomain.com to daotherdomain.com
        & $[EMAIL PROTECTED]
        %

4. Find the qmail-send process and give it a HUP signal to re-read the
   virtual domains file.

Optional note:

        It is also possible to have the onedomain.com handled by the alias
        user by creating the following file:

                % cd ~alias
                % pwd
                % /var/qmail/alias
                % cat .qmail-rufus-default
                # forward all mail destined for onedomain.com to daotherdomain.com
                & $[EMAIL PROTECTED]

        This technique does not require an actual user named "rufus" to be
        created.

Finally, to make a long story short, this whole matter is possibly
is better handled by the smtproutes mechanism:

1. Perform 2a and 2b from above.
2. Add the following to /var/qmail/control/smtproutes:

        onedomain.com:[a.b.c.d]

   Where a.b.c.d is the IP address of the machine that
   receives mail for the daotherdomain.com

-- 
Quist Consulting                Email: [EMAIL PROTECTED]
219 Donlea Drive                Voice: +1.416.696.7600
Toronto ON  M4G 2N1             Fax:   +1.416.978.6620
CANADA                          WWW:   http://www.quist.on.ca

Reply via email to