I apologize in advance to the list for submitting yet another virtual domain
question.  :)  I searched through the archives looking for my answer and was
unable to find it.

I have set up a user for myself, rtandy, on my  machine.  His email is
[EMAIL PROTECTED], for example.  I also wanted the email address
[EMAIL PROTECTED], so I used users/assign for this and added

=rob:rtandy:1000:100:/home/rtandy:-:rob:

the mail for [EMAIL PROTECTED]'s delivery instructions are then in
/home/rtandy/.qmail-rob.  So far so good, everything works fine.

I also have another domain that resolves to my IP, mybox.com, for example.
I have added this domain to rcpthosts and locals as well as set DNS up 
correctly.  In fact without changing anything else, [EMAIL PROTECTED] goes
to the same place as [EMAIL PROTECTED], and [EMAIL PROTECTED] goes to 
[EMAIL PROTECTED]

I would like to set this up so that [EMAIL PROTECTED] and [EMAIL PROTECTED] go
to different maildirs.  This is what I cameup with, any clues as to what's 
wrong?

***  control/virtualhosts  ***
[EMAIL PROTECTED]:rtandy-mybox
[EMAIL PROTECTED]:rtandy-mymachine

***  /home/rtandy/.qmail-mybox-rob  ***
/home/rtandy/Mail/rob-mybox/

***  /home/rtandy/.qmail-mymachine-rob  ***
/home/rtandy/Mail/rob-mymachine/

I figured mail for [EMAIL PROTECTED], would be turned into mail for
rtandy-mybox-rob via qmail-send and delivered locally which would look for
/home/rtandy/.qmail-mybox-rob for delivery instructions.

I also killed qmail-send with a HUP to reread local and virtual domains.
Is this correct??  It doesn't work when I 

$ qmail-inject
To: [EMAIL PROTECTED]
Subject:  TEST

hi
^D

If no one is able to solve my troubles, I would really like to figure out
how to tell if the virtualdomains file is consulted.  You cannot tell just by the log 
files.  Also, I would like to be able to see what the To: header is
rewritten as after consulting virtualdomains, to help track down my errors in
setup.

Is *that* possible?


Thanks much in advance from a qmail newbie.

-rob

Reply via email to