The way I did it here was to set up mail servers on each of the
domains. I didn't do it on the NIS+ master for that domain as it
lies in the domain above and doesn't know who anybody is (infact
this causes so many other problems too - I wish that SUN hadn't
done it that way).
Local mail is then delivered via /var/mail, which is nicely
automounted from a local machine and the automount can be
changed on a per-domain basis.
The sendmail files on all the local sendmail relays is the same,
infact I made up an extra NIS+ table with the local domain name
and the next mail relay up in the food chain so that is the only
customization that I have to do for a new subdomain. All the machines
are locally aliased to mailhost.
The master at the top has a list of all the domains served and checks
the mail that comes in. It then rewrites the address to be local
forward the mail to mailhost.itd for processing.
This pyramid seems to work well. All the local mail is ok, all the names
and automounts are local and mail flows nicely.
>I am currently trying to get sendmail 8.7.1 to work with multiple NIS+
>Here is out setup the NIS+ domains:
> uts.edu.au ----- itd.uts.edu.au
> ----- bus.uts.edu.au
> ----- lib.uts.edu.au
>The root server (uts.edu.au) is also the server for itd, bus, and lib.
>also configured to accept mail locally for these domains.
>Now the problem I'm having is that when ever sendmail does an address
>lookup eg for
>mail_aliases.org_dir.uts.edu.au. I'd _really_
>like it to look in mail_aliases.org_dir.itd.uts.edu.au.
>Why doesn't it do this?
>How can i get it to do it?
>ps. I've been looking at the source (alias.c and map.c) and been
>considering changing the
>way it handles nis+ alias lookups. Any caveats?