For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > sendmail > NIS Aliases

NIS Aliases

Created by dave. Last edited by dave, 9 years and 16 days ago. Viewed 3,170 times. #1
[edit] [rdf]

Using NIS aliases in Sendmail

The default configuration for sendmail on RedHat family systems is to not use NIS for aliases. You can't over-ride this behavior by tweaking /etc/nsswitch.conf like you can on any sensible system, you have to modify the AliasFile= parameter in your /etc/mail/

# location of alias file
O AliasFile=/etc/aliases,nis:mail.aliases@YOUR-NIS-ZONE

If you are rolling from

define(`ALIAS_FILE', `/etc/aliases:mail.aliases@YOUR-NIS-ZONE')dnl
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt