Originally Posted by vimal
We can configure Sendmail to use different alias files, the service will be using '/etc/aliases' by default. You will have to define the 'ALIAS_FILE' directive in the sendmail config: file '/etc/mail/sendmail.mc'.
Your configuration file will have the default value set :
If you want Sendmail to use the NIS database, you will have to specify it in the following format :
1) Please edit your sendmail configuration file '/etc/mail/sendmail.mc' and change the default directive from
" define(`ALIAS_FILE', `/etc/aliases')dnl " to " define(`ALIAS_FILE',`nis:mail.aliases@nisdomainname')dnl ".
2) Rebuild the Sendmail database by issuing the command :
# make -C /etc/mail
3) Restart the Sendmail service by :
4) Edit the '/etc/nsswitch.conf' file and change :
" aliases: files " to " aliases: nis files "
Please feel free to contact me in case.
Thanks alot for this information, this pointed me to finalizing our mailservers overhere.
actually I wanted to use both files and nis aliases, this I achieved
perhaps it's even nicer to switch both nis and /etc/aliases to reflect
the default in nsswitch.conf (files nis)