- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- sendmail and nsswitch.conf
Operating System - Linux
1821068
Members
2817
Online
109631
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 08:12 AM
тАО07-10-2009 08:12 AM
Hello,
I want to use the nsswitch.conf file for aliases definition (file nis ldap), like i use it on other Unix systems.
but sendmail does not use this file on Red-Hat (tested on Redhat 4 and 5).
How can we activate this fonctionnality ?
the system is correctly configured for using this, I tested with the "getent aliases" command.
Thanks for your help.
Cheers,
Cedrick Gaillard
I want to use the nsswitch.conf file for aliases definition (file nis ldap), like i use it on other Unix systems.
but sendmail does not use this file on Red-Hat (tested on Redhat 4 and 5).
How can we activate this fonctionnality ?
the system is correctly configured for using this, I tested with the "getent aliases" command.
Thanks for your help.
Cheers,
Cedrick Gaillard
Best regards, Cedrick Gaillard
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2009 11:00 PM
тАО07-12-2009 11:00 PM
Solution
Shalom Cedrick,
sendmail indeed does use /etc/nsswitch.conf to determine how to resolve domain and host names.
if sendmail is queued up with a mail envelope as it were for delivery, it checks the recipient and then depending on sendmail configuration may attempt to look up the domain name. From there it gets the MX, or mail exchanger record to know what server to attempt to deliver the mail to.
True enough, in most corporate environments, semdmail is configured to bypass this functionality with the DS directive and merely tries to dump its mail on the assigned smtp mail relay server.
But to say sendmail does not use nsswitch.conf without checking how sendmail is configured is not accurate, though it is likely to be the case.
SEP
sendmail indeed does use /etc/nsswitch.conf to determine how to resolve domain and host names.
if sendmail is queued up with a mail envelope as it were for delivery, it checks the recipient and then depending on sendmail configuration may attempt to look up the domain name. From there it gets the MX, or mail exchanger record to know what server to attempt to deliver the mail to.
True enough, in most corporate environments, semdmail is configured to bypass this functionality with the DS directive and merely tries to dump its mail on the assigned smtp mail relay server.
But to say sendmail does not use nsswitch.conf without checking how sendmail is configured is not accurate, though it is likely to be the case.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 12:40 AM
тАО07-13-2009 12:40 AM
Re: sendmail and nsswitch.conf
Shalom Steven.
On Red-Hat Linux, sednamil is does not use /etc/nsswitch.conf for aliases definition.
NSSWITCH.CONF(5)
aliases
Mail aliases, used by sendmail(8). Presently ignored.
actually,
if i want to use my 3 aliases maps (files, nis and ldap),
i need to compile the configuration files with:
define(`ALIAS_FILE',`/etc/aliases,nis:mail.aliases,ldap:')
this is not what I want.
What if I want to deactivate the ldap map on certain servers ?
don't want to recompile the configuration files each time.
why sendmail (on Red-Hat, maybe on other Linux) does not use the nsswitch.conf file ?
I tried to do:
define(`confSERVICE_SWITCH_FILE', `/etc/nsswitch.conf')dnl
but It does not work.
Regards,
C├Г┬йdrick Gaillard
On Red-Hat Linux, sednamil is does not use /etc/nsswitch.conf for aliases definition.
NSSWITCH.CONF(5)
aliases
Mail aliases, used by sendmail(8). Presently ignored.
actually,
if i want to use my 3 aliases maps (files, nis and ldap),
i need to compile the configuration files with:
define(`ALIAS_FILE',`/etc/aliases,nis:mail.aliases,ldap:')
this is not what I want.
What if I want to deactivate the ldap map on certain servers ?
don't want to recompile the configuration files each time.
why sendmail (on Red-Hat, maybe on other Linux) does not use the nsswitch.conf file ?
I tried to do:
define(`confSERVICE_SWITCH_FILE', `/etc/nsswitch.conf')dnl
but It does not work.
Regards,
C├Г┬йdrick Gaillard
Best regards, Cedrick Gaillard
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP