From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,43cb25bb8c5af80c X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-21 21:46:05 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!EU.net!uunet!zib-berlin.de!informatik.tu-muenchen.de!lrz-muenchen.de!lpr.lpr.e-technik.tu-muenchen.de!fischer From: Franz G. Fischer Newsgroups: comp.unix.osf.osf1 Subject: Re: sendmail and DNS Date: 19 Oct 94 15:49:20 GMT Organization: Lehrstuhl fuer Prozessrechner, TU Muenchen (Germany) Distribution: world Message-ID: References: <382s4h$bg0@netserver.univ-lille1.fr> Reply-To: fischer@lpr.e-technik.tu-muenchen.de NNTP-Posting-Host: spock.lpr.e-technik.tu-muenchen.de X-Newsreader: NN version 6.5.0 #11 (NOV) 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}___________________________(_)/ (_)________________________