On Mon, Mar 15, 1999 at 05:36:16PM -0300, Juan Carlos Castro y Castro wrote:
> About qmail-users (correct me if I'm wrong): the only difference I see
> between it and the forwarding feature in .qmail is the former is capable
> to assign file names which are independent of the alias name (i.e.
> .qmail-blah could be capable of defining rules for an address other than
> user-blah).

I frequently use the following /var/qmail/users/assign file:
------------------------------------------------------------------------
+:alias:100:101:/var/qmail/alias:-::
.
------------------------------------------------------------------------

Thus, ALL mail on that system will be controlled via instructions
in /var/qmail/alias/

The .qmail-default file therin contains
------------------------------------------------------------------------
|forward "$LOCAL"@space.net
------------------------------------------------------------------------

I use this mainly on our servers, so that (local) mail to user@localhost
gets sent to our central "mailhub" without forcing each user to have
a .qmail file in his/her $HOME.

You can create .qmail-firstuser, .qmail-seconduser, .qmail-NTHuser
to handle email for firstuser, seconduser, ...

Checking for $HOME/.qmail is disabled for all users, because of the
wildcard match for "any" in /var/qmail/users/assign.

With the above create a .qmail-user file for every user. If there
is no .qmail-user-default then addresses like .qmail-user-blah
won't work (will bounce).
Additionally create a .qmail-default file which handles delivery
for .qmail-user-blah or users without a .qmail-user file (i.e.
forward them to postmaster, drop them to /dev/null, bounce them with
an error message, just as you like).

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | In a world without
Research & Development    | mailto:[EMAIL PROTECTED] |   walls and fences,
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | who needs
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  |   Windows and Gates? 

Reply via email to