Hi,

        Today I had a problem to send messages to alltech.com domain. I have
lots of lines in the logs like this:

Oct  9 10:20:32 pegasas courieresmtp:
id=0004A03C.4529F819.000003A0,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>:
DNS lookup failed.

Oct  9 10:20:32 pegasas courieresmtp:
id=0004A03C.4529F819.000003A0,from=<[EMAIL PROTECTED]>,addr=<[EMAIL 
PROTECTED]>,status:
deferred


This domain has 11 MX records and the record with max priority (least
favored) fails to resolve. "testmxlookup alltech.com" produced
Soft error.

        I have traced problem to the rfc1035/rfc1035mxlist.c:domxlistcreate()
function which in part reads:

        if (seen_good & (opts & RFC1035_MX_IGNORESOFTERR))
                seen_softerr=0;
                /* At least some A records were probably fetched */

This statement allways fails because seen_good is either 0 or 1, and
RFC1035_MX_IGNORESOFTERR is 2. It has to be changed to

        if (seen_good && (opts & RFC1035_MX_IGNORESOFTERR))
                seen_softerr=0;
                /* At least some A records were probably fetched */

        With this change testmxlookup alltech.com produces a list of IPs of
MXes it can resolve.

-- 
Aidas Kasparas
IT administrator
GM Consult Group, UAB

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to