Advertisement

03.14.2006 at 06:45AM PST, ID: 21773027
[x]
Attachment Details

Sendmail keep asking NIS

Asked by dedoz in SendMail Email Server

Tags: host, unknown, sendmail

Hello list,

I have sendmail 8.12.10 running on Solaris 9, and NIS server.
I'm trying sendmail to use MX records instead of SMART_HOST.
Masquerading the host works fine.
This the .mc file I have, pretty simply now:
=============================
.....
MASQUERADE_AS(`xxxxxxxx..com')dnl
MASQUERADE_DOMAIN(`.xxxxxx.com')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
=============================

And the /etc/nsswitch.conf entries:
=============================
passwd:     files nis
group:      files nis
hosts:      files dns nis
ipnodes:    files
networks:   nis files
protocols:  nis files
rpc:        nis files
ethers:     nis files
netmasks:   nis files
bootparams: nis files
publickey:  nis files
netgroup:   nis
automount:  files nis
aliases:    files nis
services:   files nis
sendmailvars:   files
printers:       user files nis
auth_attr:  files nis
prof_attr:  files nis
project:    files nis
====================

The problem I have here is that everytime I send an email out to the internet, still it goes via the smart_host instead of looking at the right MX record as it should do.

When I bring the NIS server down, it fails this way:
================================
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.alert] k2EEILDf027640: Losing ./qfk2EEILDf027640: savemail panic
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.info] k2EEILDe027640: from=root, size=68, class=0, nrcpts=1, msgid=<20060314141
8.k2EEILDe027640@foo.bar.com>, relay=root@localhost
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.info] k2EEILDe027640: to=test@internet.com, ctladdr=root (0/1), delay=00:00:00,
 xdelay=00:00:00, mailer=relay, pri=30068, relay=[mailhost], dsn=5.1.2, stat=Host unknown (Name server: [mailhost]: host not found)
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.info] k2EEILDe027640: k2EEILDf027640: DSN: Host unknown (Name server: [mailhost
]: host not found)
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.info] k2EEILDf027640: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, p
ri=31092, relay=[mailhost], dsn=5.1.2, stat=Host unknown (Name server: [mailhost]: host not found)
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.info] k2EEILDf027640: k2EEILDg027640: return to sender: Host unknown (Name serv
er: [mailhost]: host not found)
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.info] k2EEILDg027640: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=re
lay, pri=32116, relay=[mailhost], dsn=5.1.2, stat=Host unknown (Name server: [mailhost]: host not found)
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.alert] k2EEILDf027640: Losing ./qfk2EEILDf027640: savemail panic
Mar 14 06:18:21 foo sendmail[27640]: [ID 801593 mail.crit] k2EEILDf027640: SYSERR(root): savemail: cannot save rejected email anywhe
===========================

It keeps looking for the 'mailhost' defined on the NIS server, I want sendmail not to lookup NIS entries.

Any help will be very welcome.!!!

Thanks


Start Free Trial
[+][-]03.14.2006 at 08:09AM PST, ID: 16184744

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2006 at 08:11AM PST, ID: 16184771

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2006 at 09:46AM PST, ID: 16185861

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.14.2006 at 10:10AM PST, ID: 16186099

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2006 at 10:13AM PST, ID: 16186125

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.14.2006 at 12:38PM PST, ID: 16187681

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.15.2006 at 03:50AM PST, ID: 16193303

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.15.2006 at 08:51AM PST, ID: 16195962

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SendMail Email Server
Tags: host, unknown, sendmail
Sign Up Now!
Solution Provided By: PsiCop
Participating Experts: 1
Solution Grade: C
 
 
[+][-]03.17.2006 at 06:27AM PST, ID: 16216008

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2006 at 07:13AM PST, ID: 16216446

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32