On 2004 Nov 15, at 02:56, Sam Varshavchik wrote:
gethostbyname() does not read MX records. Courier parses resolv.conf, and queries your nameservers directly.
Ok, it's not a problem with my resolv.conf.
While looking for a way to force the queue to get processed I noticed bin/testmxlookup. On the machine that works:
<[EMAIL PROTECTED]:/usr/local/courier/bin:101># ./testmxlookup frop.org Domain frop.org: Relay: darkstar.frop.org, Priority: 10, Address: 65.74.140.23 [ LOCAL ]
But on the machine that doesn't:
<[EMAIL PROTECTED]:/usr/local/courier/bin:25># ./testmxlookup frop.org Soft error.
Copying a static version on the machine that works (again, it's OpenBSD 3.5, courier 0.45.4) and copying it over to the broken machine, I get:
<[EMAIL PROTECTED]:/home/zwhite:1># ./testmxlookup frop.org Domain frop.org: Relay: darkstar.frop.org, Priority: 10, Address: 65.74.140.23
Copying over courier 0.45.4 to the machine that doesn't work and compiling there:
<[EMAIL PROTECTED]:/home/zwhite/courier-0.45.4/courier:7>$ ./testmxlookup frop.org
Soft error.
So, it looks like it's something that has changed in OpenBSD 3.6. The specific line that's returning SOFTERR is in rfc1035mxlist.c, line 328.
rfc1035_replyfree(replyp);
return (RFC1035_MX_SOFTERR);Which is within the 'if (index < 0)' block.
Unfortunately, I'm about at the end of my troubleshooting skills. I'm a sysadmin, not a programmer. Any idea how I can figure out what changed in OpenBSD 3.6 and how I can fix this? Would ktrace output help you to determine what's happening?
I suppose my worst case scenario would be to compile courier statically on the 3.5 machine for the time being, but I'd like to avoid that. If I do go this route, what's the best way to globally add the -static flag when I build courier?
-Zach
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
