By default sendmail honors aliases defined only in /etc/aliases. To honor NIS mail.alaises map, edit the file /etc/mail/sendmail.mc
Change the following line:
Change
define(`ALIAS_FILE', `/etc/aliases')dnl
To
define(`ALIAS_FILE',`nis:mail.aliases@NIS-DOMAINNAME')dnl
For example, if the domain name is Example.com, the file may look like this:
define(`ALIAS_FILE',`nis:mail.aliases@Example.com')dnl
It may also look like this:
define(`ALIAS_FILE',`/etc/aliases,nis:mail.aliases@Example.com')
No comments:
Post a Comment