> -----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 dan...@cygwin.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 dan...@cygwin.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