Codehead-7 <[EMAIL PROTECTED]> writes on 7 December 2000 at 22:52:15 -0500
 > I'm hosting multiple domains on my machine. Would like to use qmail, but
 > I'm not sure how to solve the following.
 > 
 > Say I have 3 users: joe, john, brenda. Each of them is "associated" with a
 > different domain I host, say [EMAIL PROTECTED] is the webmaster for
 > www.domain1.com, [EMAIL PROTECTED] is webmaster for www.domain2.net, etc.
 > 
 > If mail arrives for [EMAIL PROTECTED], I can have it delivered to user joe
 > by setting up a virtual user in control/virtualdomains and adding a line
 > to users/assign. But if someone writes to [EMAIL PROTECTED], qmail will
 > deliver it to joe, because there exists a real user 'joe' on the system.
 > But joe is not "supposed" to have an email account under domain2.net.

I don't use virtual users, only domains (in control/virtualdomains;
the virtual users are controlled by qmail files under the user
directory that control/virtualdomains associates with that domain);
but your example doesn't seem to depend on them.  [EMAIL PROTECTED] is a
virtual user, but you say that joe is a *real* user, and that there is
no joe user defined for domain2 (either as a virtual user in
control/virtualdomains.com, or as a user in the virtual domain
controlled by a ~domain2/.qmail-joe file, where "~domain2" should be
the home directory of the user controlling your virtual domain2).  Um,
there isn't a ~domain2/.qmail-default that forwards to local user joe
by any chance is there?

Short of the things listed above, or anything I've overlooked :-),
this shouldn't happen; if it happens for you, something is
misconfigured, or your test isn't testing what you're thinking.  I'm
user ddb on this system.  I host a virtual domain mnstf.org, in which
there is no user ddb.  When I send email to [EMAIL PROTECTED], it bounces,
as shown below:

    From: [EMAIL PROTECTED]
    To: [EMAIL PROTECTED]
    Subject: failure notice
    Date: 8 Dec 2000 04:56:19 -0000

    Hi. This is the qmail-send program at dd-b.net.
    I'm afraid I wasn't able to deliver your message to the following addresses.
    This is a permanent error; I've given up. Sorry it didn't work out.

    <[EMAIL PROTECTED]>:
    Sorry, no mailbox here by that name. (#5.1.1)

    --- Below this line is a copy of the message.

    Return-Path: <[EMAIL PROTECTED]>
    Received: (qmail 14996 invoked by uid 501); 8 Dec 2000 04:56:19 -0000
    Date: 8 Dec 2000 04:56:19 -0000
    Message-ID: <[EMAIL PROTECTED]>
    From: "David Dyer-Bennet" <[EMAIL PROTECTED]>
    To: [EMAIL PROTECTED]

(One complication; I'm user ddb, but I also receive email as
[EMAIL PROTECTED], and that's my standard from: and envelope from.  ddb is
my actual local username, though, so [EMAIL PROTECTED] is the proper
analogy to your [EMAIL PROTECTED]).
-- 
David Dyer-Bennet      /      Welcome to the future!      /      [EMAIL PROTECTED]
SF: http://www.dd-b.net/dd-b/          Minicon: http://www.mnstf.org/minicon/
Photos: http://dd-b.lighthunters.net/

Reply via email to