Two weeks ago, I asked :
>> Does anybody know how to tell sendmail to use the DNS features ?
I got many, many replies, all of them saying :
>> Install /usr/lib/sendmail.mx as sendmail binary and restart the running daemon.
Well, it's in fact this easy (at least for a 3/110 running 4.1.1) :
- do that renaming
- install /usr/lib/sendmail.main.cf as /etc/sendmail.cf
- edit this /etc/sendmail.cf in the following way :
- insert definitions for the w (official hostname) and m (domain name) macro if
you are not happy with what it finds itself. I'm not, because our NIS domain
name has nothing in common with our internet subdomain name
- define a M (mailhost) macro, because for us, all this applies only to the NIS
server which is the Mailhost for its clients but not for himself
- comment the forwarding to the mailhost away in ruleset 0, and un-comment the
DDN usage directly below
and it works in the way that a mail to a user somewhere in the Internet gets sent
But ... there is a problem.
The NIS host map seems not to be read by sendmail.mx (neither the one from sun nor the
ones I ftp'ed from the net). A machine which is not in our domain but is defined
in the NIS map (for various reasons) fails to get connected. The original .cf gives
(for mail -v erueg@cfgauss)
erueg@cfgauss... Never heard of cfgauss in domain ts . go . dlr . de
root... Possible alias loop
If I replace
R$*<@$+>$* $#error $:Never heard of $2 in domain $m
R$*<@$+>$* $#ether $@$2 $:$1<@$2>$3
which is what it does with "normal" sendmail binary, I get
erueg@cfgauss... Connecting to cfgauss via ether...
erueg@cfgauss... Host unknown
Using the mailer DDN can't work, because the host cfgauss is of course unknown without
its correct domain appended, and the $[host$] doesn't find the primary hostname, which
IS WITH domain appended in the NIS map.
Has anyone an idea ??
/ | Eckhard R"uggeberg
/ | DLR G"ottingen
_____/___|_____ Abt. SM-TS
/ / / / Bunsenstr. 10
/ / / /
/____/____/____/ 3400 G"ottingen / Germany
| / Tel. : 0551/709-2429
| / Fax : 0551/709-2446
|/ E-Mail : Eckhard.Rueggeberg@ts.go.dlr.de
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:36 CDT