From: Franz G. Fischer <fischer@lpr.e-technik.tu-muenchen.de>
Subject: Re: sendmail and DNS
Date: 19 Oct 94 15:49:20 GMT [thread overview]
Message-ID: <fischer.782581760@lpr.lpr.e-technik.tu-muenchen.de> (raw)
In-Reply-To: 382s4h$bg0@netserver.univ-lille1.fr
marant@univ-lille1.fr (Dominique Marant) writes:
>On DEC Alpha OSF/1, is it possible that the sendmail not use DNS requests ?
>(I have hosts=local,bind in the svc.conf file)
As far as I know sendmail queries bind directly (by res_mkquery(3),
res_send(3), ...) and does _not_ use e. g. gethostbyname(3) --- at least for
some purposes like the MX records.
>All the non local mails are sending to the relay (like I want) but the system
>do bind requests about the specified non local address (it is not necessary !).
>What are the mailer flags to specify that I want to use DNS-MX queries, or
>only DNS-A queries, or no DNS queries ?
On OSF/1 v2.0 240 (at least) the sendmail binary (5.65-IDA) is broken.
Obviously the DEC programmers forgot that their Alpha is an 64 bit machine,
where an u_long is longer than u_int. The original sendmail-code which
extracts the answers from bind's response packet uses a sequence like
/* cp points to the response packet */
...
ttl = _getlong(cp);
cp += sizeof(u_long); /* !!! */
dlen = _getshort(cp);
cp += sizeof(u_short);
foo = cp;
The code gets ``out of sync'' with bind's response and the name and/or MX
query fails...
Maybe this is fixed in a later release, but I don't know. If not, get the
sendmail source, add an q&d #define u_long u_int after all the #includes to
the file in questions (maybe it is bind.c) and recompile.
>Thanks in advance,
Hope this helps
Regards
\franz
--
franz g. fischer --------------- fischer@[gavia.]lpr.e-technik.tu-muenchen.de
Lehrstuhl f"ur Proze"srechner, TU M"unchen __o Phone: +49-89-2105-3561
D-80333 M"unchen, Germany _ \<,_ Fax: +49-89-2105-3555
\input{disclaimer}___________________________(_)/ (_)________________________
prev parent reply other threads:[~1994-10-19 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-19 10:24 sendmail and DNS Dominique Marant
1994-10-19 15:49 ` Franz G. Fischer [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox