On Tue, Sep 14, 1999 at 03:26:45PM -0700, James wrote:
> I'm unclear as to where I am going wrong with setting up my virtual
> domain email for each virtual domain.  I am using qmail 1.03 on Red
> Hat Mandrake 6.0.
> 
> My qmail setup seems to be working fine, as I can send and receive email
> from anywhere, but I am not so sure I have set up the virtual domain part
> correctly.  Let's say I have a virtual domain called nature.com on my
> server which is named god.com.  There is a user named bird who actually
> owns the nature.com domain.  Bird wants to have his email address on his
> web page say "[EMAIL PROTECTED]".. and have that email delivered to him at
> his account on "[EMAIL PROTECTED]"  I have created a bird account on god.com.
> Also, nature.com is functioning fine.
> 
> In the virtualdomains file I have added this line:
> nature.com:bird
> 
> Is this correct?  I've noticed that qmail has (during the installation)
> created a line in virtualdomains that looks like this:
> god.com:god.com
> 
> So, I'm wondering if I should put nature.com:nature.com instead?  Anyway,
> as it is set up now, if someone sends mail to [EMAIL PROTECTED], where is it
> going?  Is it going to the bird account at god.com?  I've sent a test
> mail, but it didn't arrive at bird's email on god.com.  The other strange
> thing is, I never received an error message saying the mail didn't reach
> bird.  I've tried a test by sending mail directly to [EMAIL PROTECTED], and he
> did get THAT direct mail, he's just not getting the virtual mail.


This topic seems to confuse people over and over, so dont be ashamed. I
really am feeling bad about not finalizing a proised documentation about
"all about aliases and virtua domains."

But here is a short story:

Rule 1: Always put a domain that you handle domain for in rcpthosts
Rule 2: Then put the domain in locals OR in virtualdomains
        NEVER IN BOTH. If you do, the entry in virtualdomains will be 
        silently ignored.
Rule 3: When choosing from using "virtual" or "local" domain, ask yourself
        the question: Do I want to have it that EVERY USER ON THE SYSTEM 
        shall receive mail on the form username@domain? 
        If the answer is yes -> put the domain in locals, and fix the 
        aliases either with .qmail-files in ~alias or with the fastforward
        package (see http://www.qmail.org/).
        If the answer is no -> put the domain in virtualdomains and point
        the mail to be handled by either:

         a, .qmail-files in ~alias. (For root-managed, small maildomains.)
         b, .qmail-files in a special "maildomain" account. (For root
            or maildomainmanager managed, bigger domains e.g. including
            mailinglists. Typical if you want to store the maildomain
            account elsewhere than on the /var*-partition.)
         c, .qmail-files in some users directory. (Typically in an ISP- or 
            user managed environment.)



So. Choose local or virtual. And when you've done that and not forgotten
about Rule 2, you are either finished or has to choose form the three
virtual approaches. 

I often refer back to the joe & joe-example, and even if it really doesn't
answer your question here (That's why I had to do it above), it can be
worthwhile to browse through. http://x42.com/doc/qmail/vdomains1.txt

/magnus
--
http://x42.com/ - usefulness and uselessness stirred in a bucket with broccoli.

Reply via email to