On Tue, Jan 30, 2001 at 10:52:52AM +0800, Lincoln Yeoh wrote:
> Hi,
>
> How do I do this:
> [EMAIL PROTECTED] -> [EMAIL PROTECTED]
> [EMAIL PROTECTED] -> [EMAIL PROTECTED]
> [EMAIL PROTECTED] -> [EMAIL PROTECTED]
> [EMAIL PROTECTED] -> XXX@finaldomaincom
>
> That is to say mail to [EMAIL PROTECTED] is sent/forwarded/redirected to
> [EMAIL PROTECTED] (the To: etc should not be rewritten, just the RCPT
> TO: ).
Is finaldomain.com hosted on the same box as domain1.com? If so, and
finaldomain.com is local, make domain1.com local too. If finaldomain.com is
virtual, create another entry in virtualdomains identical to the entry for
finaldomain.com, but change the domain name to domain1.com.
If finaldomain.com is hosted elsewhere and you just want to forward everything,
you can do this:
echo 'domain1.com:alias-domain1' > /var/qmail/control/virtualdomains
echo '|forward "$DEFAULT"@finaldomain.com' > /var/qmail/alias/.qmail-domain1-default
Why don't you just change domain1.com's MX record so that the mail just goes
directly to whatever host handles finaldomain.com?
Chris