Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2006 10:00:43 -0500
From:      Chuck Swiger <cswiger@mac.com>
To:        Glenn Dawson <glenn@antimatter.net>
Cc:        questions@freebsd.org, Derek Ragona <derek@computinginnovations.com>, Mikhail Teterin <mi+kde@aldan.algebra.com>
Subject:   Re: virtusertable blocking seems to have no effect
Message-ID:  <442AA11B.7030701@mac.com>
In-Reply-To: <7.0.1.0.2.20060328213006.0764dd48@antimatter.net>
References:  <200603281422.57389.mi%2Bmx@aldan.algebra.com> <200603282154.40174.mi%2Bmx@aldan.algebra.com> <7.0.1.0.2.20060328190500.08134e88@antimatter.net> <200603290026.36453@aldan> <7.0.1.0.2.20060328213006.0764dd48@antimatter.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Glenn Dawson wrote:
[ ... ]
> This is what I typically do:
> 
> foo@bar.com           localaccount1
> bar@bar.com           localaccount2
> @bar.com              error:nouser 550 No such user here
> 
> Note that the order of the entries is important, the catch-all has to be
> at the end.  Organizationally, I typically keep all the @bar.com type
> entries at the end of the file and group the others before those in
> whatever way makes the most sense.

These files get turned into hash databases using makemap (ie, when you "cd
/etc/mail && make all"); the order of entries is not significant.

What is significant is that the MTA will look up more specific entries before
looking up general entries, so it will try looking up user@example.com before
looking up example.com, so the more specific match will win.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442AA11B.7030701>