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, 13 years and 330 days ago. Viewed 4,559 times. #1
[edit] [rdf]
labels
attachments

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/sendmail.cf:

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

If you are rolling from sendmail.mc:

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt