I've hit an odd problem with qmail-remote.
With one of our ISP's DNS servers set as primary, qmail-remote will hang
indefinitely on some addresses. The DNS server in question responds fine
to dig queries.
Example:
First DNS server in resolv.conf is 205.152.0.20
Run the following command: (testfile contains a email message)
cat testfile | /var/qmail/bin/qmail-remote mindspring.com
[EMAIL PROTECTED] [EMAIL PROTECTED]
qmail-remote will hang forever. If I change the primary DNS server to
another one then everything works fine.
An strace of qmail-remote shows:
connect(3, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("205.152.0.20")}}, 16) = 0
send(3, "\250t\1\0\0\1\0\0\0\0\0\0\nmindspring\3com\0\0\377\0\1"..., 32, 0)
= 32
time(NULL) = 996696004
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(3, "\250t\203\200\0\1\0\25\0\0\0\0\nmindspring\3com\0\0\377"...,
513, 0, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("205.152.0.20")}}, [16]) = 503
close(3) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
connect(3, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("205.152.0.20")}}, 16) = 0
writev(3, [{"\0 ", 2},
{"\250t\1\0\0\1\0\0\0\0\0\0\nmindspring\3com\0\0\377\0\1"..., 32}], 2) = 34
read(3,
and dies there.
I wouldn't expect a DNS server to be able to kill qmail-remote. Make it
exit with an error, sure.
Our setup is qmail-1.03 on a Linux server. The DNS patch has been applied.
Any thoughts appreciated...
--Brian
------------------------------------------------------
FarPoint
Technologies
Phones:
Tech Supt. - 919-460-1887
Sales -
800-645-5913 Main - 919-460-4551
FTP -
ftp.fpoint.com /fpoint.com
WEB - www.fpoint.com
Sales email:
[EMAIL PROTECTED]
Technical support:
[EMAIL PROTECTED]
-------------------------------------------------------