On Tue, 19 Dec 2000, pedro wrote:

> Hi all,
> what is the difference between .../qmail/alias and .../qmail/users ?
> 
> Thanks in advance.

qmail delivers mail as follows:

    is the domain portion of the address a local or virtualdomain

        no -> deliver remotely

        yes -> deliver locally

            does the user portion of the address have an entry in
            /var/qmail/users/cdb (as built from
            /var/qmail/users/assign)

                yes -> deliver mail according to the .qmail file
                       referenced by the cdb entry

                no -> does the user portion of the address match a
                      user according to getpwnam()

                      yes -> deliver the mail to that user

                      no -> is there a corresponding .qmail-user file
                            in /var/qmail/alias

                            yes -> deliver the mail according to the
                            delivery instructions in that file

                            no -> bounce the message.

This is a little simplified as it doesn't describe user-ext style
addresses, but it gives you a good idea of the flow. Have a look at
the qmail pictures which should be in /var/qmail/doc. They give a
better description of each type of delivery. Also see the qmail-users
man page.

-- 
Regards
Peter
----------
Peter Samuel                            [EMAIL PROTECTED]
http://www.e-smith.org (development)    http://www.e-smith.com (corporate)
Phone: +1 613 368 4398                  Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to