X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=GGsZi3qNHCJ41zswFR8B3Q8odOigvIBoZbCU5BxmAra 0D/YpowauZgv1iuSCyVnQRdjC49//zm/QasjdkOupE4Hf7p45rP0MhT193PR9prt j6E/ExDNCdCsi/sEKL+3bfyx2Mvq41nPAjDx0NN4R4t1TSkXhDMZAgvKUd9GZdic = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=bd1pKguhw4sUafKIiLRavDIL+A8=; b=jICGiiGJdEJGD8HMg 6arHw2NTANver5E3IzzgM5xBCzPmhQoFs9N5xxvIpW0DYTHdug6AFtqRpztE5h10 9SM2wYkMWddLpys2l6l90/9LJpmsSPW9BNSnDgQr7VEMSLRKWrBSCOJ9/jQqpvW9 b3KcZqK9TZd3g1P0d66K0fj9rw= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,RCVD_IN_SEMBACKSCATTER,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: vms173025pub.verizon.net From: "Pierre A. Humblet" <Pierre DOT Humblet AT alum DOT mit DOT edu> To: "'D. Boland'" <daniel AT boland DOT nl> Cc: <cygwin AT cygwin DOT com> References: <53B85C0A DOT A51E8FA2 AT boland DOT nl> In-reply-to: <53B85C0A.A51E8FA2@boland.nl> Subject: RE: Minires truncates host names Date: Sat, 05 Jul 2014 17:37:12 -0400 Message-id: <026e01cf9899$491058a0$db3109e0$@alum.mit.edu> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit > -----Original Message----- > From: D. Boland > Sent: Saturday, July 05, 2014 16:12 > > Hi Group, > > I finally got Sendmail ported to Cygwin. But when looking up valid hostnames > from sender addresses, Minires fails. Here's the output, testing one of > Sendmails' rules. > > $ echo "check_mail daniel AT cygwin DOT com" | /usr/sbin/sendmail -d8.20 -bt > readcf: option TrustedUser may cause problems on systems > which do not support fchown() if UseMSP is not set. > ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> > <address> > > check_mail input: daniel @ cygwin . com > Basic_check_mail input: daniel @ cygwin . com > tls_client input: $| MAIL > TLS_connection input: > TLS_connection returns: > tls_client returns: > CanonAddr input: < daniel @ cygwin . com > > canonify input: < daniel @ cygwin . com > > Canonify2 input: daniel < @ cygwin . com > > dns_getcanonname(cygwin.com, trymx=1) > dns_getcanonname: trying cygwin.com. (A) > Minires: query "cygwin.co." type 1 > Minires: DnsQuery: 9003 (Windows) > NO: errno=0, h_errno=1 > Canonify2 returns: daniel < @ cygwin . com > > canonify returns: daniel < @ cygwin . com > > Parse0 input: daniel < @ cygwin . com > > Parse0 returns: daniel < @ cygwin . com > > CanonAddr returns: daniel < @ cygwin . com > > Basic_check_mail returns: $# error $@ 5 . 1 . 8 $: "553 Domain of sender > address " " > does not exist" > check_mail returns: $# error $@ 5 . 1 . 8 $: "553 Domain of sender > address " " > does not exist" > > > > As can be seen, Minires queries "cygwin.co.", not "cygwin.com." Is this a > bug? Is there a way to test Minires lookups outside of Sendmail? The Minires output above is produced at the top of the res_nquery function by the following lines int res_nquery( res_state statp, const char * DomName, int Class, int Type, 695 unsigned char * AnsPtr, int AnsLength) 696 { 697 u_char packet[PACKETSZ]; 698 int len; 699 700 DPRINTF(statp->options & RES_DEBUG, "query \"%s\" type %d\n", DomName, Type); To me it looks like the string was already truncated when it was passed to the function. You can test e.g. by using exim -d+resolver -bt daniel AT cygwin DOT com It's wonderful that you got sendmail to work. Pierre -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple