Jan Stifter <[EMAIL PROTECTED]> wrote:
>
> domain A is handled locally with vmailmgr and virtual users it is in the
> virtualdomains control file).
>
> mails for domain B are only relayed to another box (it is in the smtproutes
> control file as domainB:ip-adr:25).
So domain B (use real domains next time, it's easier) is only in rcpthosts
and smtproutes, not locals or virtualdomains?
> the problem: I would like to forward one users mail joe@domainB to
> joe@domainA (and only this user). how can i do this, when there is no local
> user for domainB?
You'll have to make domain B a virtual domain, controlled by a local user
(such as alias). Do this with a virtualdomains entry like:
domainb.org:alias-domainb
Then, have a .qmail file for joe:
~alias/.qmail-domainb-joe
which contains a forward directive ("&[EMAIL PROTECTED]")
Then handle the remainder of the domain in another .qmail file:
~alias/.qmail-domainb-default
which contains something like:
|forward "$DEFAULT"@domainb-different.org
and possibly an smtproutes entry for domainb-different.org. domainb-different
might be a domain literal (IP address), or another name for which domainb's MX
will receive their mail.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------