* sendmail and DNS
@ 1994-10-19 10:24 Dominique Marant
1994-10-19 15:49 ` Franz G. Fischer
0 siblings, 1 reply; 2+ messages in thread
From: Dominique Marant @ 1994-10-19 10:24 UTC (permalink / raw)
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)
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 ?
Thanks in advance,
--
Dominique Marant - marant@univ-lille1.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sendmail and DNS
1994-10-19 10:24 sendmail and DNS Dominique Marant
@ 1994-10-19 15:49 ` Franz G. Fischer
0 siblings, 0 replies; 2+ messages in thread
From: Franz G. Fischer @ 1994-10-19 15:49 UTC (permalink / raw)
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}___________________________(_)/ (_)________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-19 15:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-19 10:24 sendmail and DNS Dominique Marant
1994-10-19 15:49 ` Franz G. Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox