X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Frouters%2Fdnslookup.c;h=003c777bb08fa156f057239f3599ece6adcabca6;hb=184e88237dea64ce48076cdd0184612d057cbafd;hp=9a9fba15a4329eb11e703276239d8d57ce96f6e0;hpb=a7fdad5bca2c6495f3181e29835eeef7670a567b;p=exim.git diff --git a/src/src/routers/dnslookup.c b/src/src/routers/dnslookup.c index 9a9fba15a..003c777bb 100644 --- a/src/src/routers/dnslookup.c +++ b/src/src/routers/dnslookup.c @@ -1,10 +1,10 @@ -/* $Cambridge: exim/src/src/routers/dnslookup.c,v 1.7 2005/09/19 09:41:37 fanf2 Exp $ */ +/* $Cambridge: exim/src/src/routers/dnslookup.c,v 1.11 2007/01/08 10:50:20 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2005 */ +/* Copyright (c) University of Cambridge 1995 - 2007 */ /* See the file NOTICE for conditions of use and distribution. */ #include "../exim.h" @@ -304,9 +304,9 @@ for (;;) if (rc != HOST_FIND_FAILED) break; - /* Check to see if the failure is the result of MX records pointing - to non-existent domains, and if so, set an appropriate error message; the - case of an SRV record pointing to "." is another special case that we can + /* Check to see if the failure is the result of MX records pointing to + non-existent domains, and if so, set an appropriate error message; the case + of an MX or SRV record pointing to "." is another special case that we can detect. Otherwise "unknown mail domain" is used, which is confusing. Also, in this case don't do the widening. We need check only the first host to see if its MX has been filled in, but there is no address, because if there were any @@ -319,11 +319,11 @@ for (;;) { setflag(addr, af_pass_message); /* This is not a security risk */ if (h.name[0] == 0) - addr->message = US"an SRV record indicated no SMTP service"; + addr->message = US"an MX or SRV record indicated no SMTP service"; else { addr->message = US"all relevant MX records point to non-existent hosts"; - if (!allow_mx_to_ip && string_is_ip_address(h.name, NULL) > 0) + if (!allow_mx_to_ip && string_is_ip_address(h.name, NULL) != 0) { addr->user_message = string_sprintf("It appears that the DNS operator for %s\n"