LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-08-2006, 06:48 PM   #1
flgal3
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27

Rep: Reputation: 15
Unhappy 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!!!
 
Old 06-16-2006, 03:44 PM   #2
flgal3
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27

Original Poster
Rep: Reputation: 15
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!!!!
 
Old 08-29-2007, 08:36 AM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
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
 
Old 01-08-2010, 08:04 AM   #4
goldrnr
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by vimal View Post
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.
 
  


Reply

Tags
aliases, nis, redhat, sendmail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
Sendmail and aliases freelinuxcpp Linux - Networking 2 07-27-2004 05:01 AM
SENDMAIL Aliases Help echid Linux - Software 1 03-11-2004 08:06 PM
Sendmail aliases nis problem in solaris simquest Linux - General 1 11-01-2002 08:54 AM
sendmail aliases sultan Linux - Networking 2 05-02-2002 03:28 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration