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..c
om')dnl
MASQUERADE_DOMAIN(`.xxxxxx
.com')dnl
FEATURE(`masquerade_entire
_domain')d
nl
FEATURE(`masquerade_envelo
pe')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.c
om>, 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