Daniel Liston wrote:
> If my catchalls were at the top of the file, only mail to sonny.com would
> ever get delivered, and everything in that domain would go to dan's mailbox
> including mail to majordomo or dan at sonny.com. (first match wins)
> The right hand column can be users in either the passwd or the aliases file.
> It is best to have your catchalls at the bottom of the file, or at least,
> at the bottom of the domain section they are catching for. (example above)
While I know better than to argue with you, Dan, my experience,
understanding, and experimentation, tell me that order is NOT important
in virtusertable, since it's hashed into a database before it's used.
And yes, I HAVE tested the premise <smile>.
True, I tend to keep things in order to make it easy for ME to
understand, but sendmail really doesn't care because it doesn't see it;
it only sees the hashed table.
Note that there are errors in sendmail docuementation of virtusertable;
for example the bat book says (page 274) that one line cannot reference
another; I don't know when it's changed, but I know it's not true; the
Sun Cobalt RaQs make use of recursive reference to make mail work with
or without the "hostname".
The "Linux Sendmail Administration" book (Craig Hunt, Sybex) says you
should sigHUP sendmail after changing and hashing virtusertable, but
that's not true either; you have to sigHUP sendmail after changing any
of the flat-file databases, but not the hashed ones.
Jeff Lasman, nobaloney.net, P. O. Box 52672, Riverside, CA 92517 US
Internet & Unix/Linux/Sun/Cobalt Consulting +1 909 778-9980
Our jblists address used on lists is for list email only
To contact us offlist: "http://www.nobaloney.net/contactus.html"