| Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
06-08-2006, 06:48 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27
Rep:
|
Sendmail ignoring NIS aliases
I think I've tried everything from /etc/mail/service.switch to ALIAS_FILE=nis:mail.aliases.
Nothing seems to be helping sendmail on a Redhat WS 3 client use aliases defined in a NIS map.
The client is definitely bound to the NIS server and a ypcat -k of the aliases map lists out the proper aliases. Yet, the only way I can get sendmail to recognize any non-standard aliases is to edit the client's local /etc/aliases file.
I'd really rather not have to maintain this file on all the clients.
Any suggestions are greatly appreciated.
Thank you!!!
|
|
|
|
06-16-2006, 03:44 PM
|
#2
|
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27
Original Poster
Rep:
|
Please - any suggestions are welcome
Come on people. I know somebody out there must know what I'm talking about here. I'll take any suggestion or idea you can give me. It seems other folks have certainly gotten this to work.
Thank you in advance!!!! 
|
|
|
|
08-29-2007, 08:36 AM
|
#3
|
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
Hello there....
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 :
define(`ALIAS_FILE', `/etc/aliases')dnl
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 :
/etc/init.d/sendmail restart
4) Edit the '/etc/nsswitch.conf' file and change :
" aliases: files " to " aliases: nis files "
We had these settings done on a redhat machine which was configured as an NIS client.The user accounts and aliases were only present on the NIS server. As per the above configuration, Sendmail on the NIS client machine was configured to use the aliases from the NIS database of the NIS server. The setup worked fine...
Please feel free to contact me in case.
Regards,
Vimal Kumar
|
|
|
|
01-08-2010, 08:04 AM
|
#4
|
|
LQ Newbie
Registered: Jan 2010
Posts: 1
Rep:
|
Quote:
Originally Posted by vimal
Hello there....
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 :
define(`ALIAS_FILE', `/etc/aliases')dnl
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 :
/etc/init.d/sendmail restart
4) Edit the '/etc/nsswitch.conf' file and change :
" aliases: files " to " aliases: nis files "
Please feel free to contact me in case.
Regards,
Vimal Kumar
|
--
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
by:
define(`ALIAS_FILE', `nis:mail.aliases@asml.nl,/etc/aliases')dnl
perhaps it's even nicer to switch both nis and /etc/aliases to reflect
the default in nsswitch.conf (files nis)
regards,
Goldrnr
Last edited by goldrnr; 09-14-2010 at 12:52 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:56 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|