Hiya
I’ve configured spamc to
use a host that resolves to 2 addresses, and I’m seeing something odd
when the spamd server at the first address isn’t
running.
I twiddled with libspamc.c and
defined DO_CONNECT_DEBUG_SYSLOGS, and have recorded the following:
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: 2 [0 28220040: -62.70.94.7][4: -62.70.94.7] [1
28220048: -62.70.94.2][4: -62.70.94.2]
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: host addr 0/2 =
75e46c2 at bfbfd600
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: host addr 1/2 =
25e46c2 at bfbfd604
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: socket
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: connect() to spamd 0
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: cpy addr 0/2 at bfbfd600
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: conn addr 0/2 = 75e46c2
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: connect() to spamd at
194.70.94.7
Aug 20 18:24:16 horus2 spamc[3026]:
dbg: connect() to spamd at
194.70.94.7 done
Aug 20 18:24:16 horus2 spamc[3026]:
connect() to spamd at 194.70.94.7 failed, retrying
(1/3): Connection refused
Aug 20 18:24:17 horus2 spamc[3026]:
dbg: connect() to spamd 1
Aug 20 18:24:17 horus2 spamc[3026]:
dbg: cpy addr 1/2 at bfbfd604
Aug 20 18:24:17 horus2 spamc[3026]:
dbg: conn addr 1/2 = 25e46c2
Aug 20 18:24:17 horus2 spamc[3026]:
dbg: connect() to spamd at
194.70.94.2
Aug 20 18:24:17 horus2 spamc[3026]:
dbg: connect() to spamd at
194.70.94.2 done
Aug 20 18:24:17 horus2 spamc[3026]:
connect() to spamd at 194.70.94.2 failed, retrying
(2/3): Invalid argument
Aug 20 18:24:18 horus2 spamc[3026]:
dbg: connect() to spamd 2
Aug 20 18:24:18 horus2 spamc[3026]:
dbg: cpy addr 0/2 at bfbfd600
Aug 20 18:24:18 horus2 spamc[3026]:
dbg: conn addr 0/2 = 75e46c2
Aug 20 18:24:18 horus2 spamc[3026]:
dbg: connect() to spamd at
194.70.94.7
Aug 20 18:24:18 horus2 spamc[3026]:
dbg: connect() to spamd at
194.70.94.7 done
Aug 20 18:24:18 horus2 spamc[3026]:
connect() to spamd at 194.70.94.7 failed, retrying
(3/3): Invalid argument
In this case, spamc attempts to
connect to the first address, is refused (as is expected) – but any subsequent
connect() attempts result in a complaint about an
invalid argument.
Additionally, (and I’m not sure why) – the first
debug line correctly lists the last 3 octets of the IP addresses that are in
the hostname, but the first octet reads -62 instead of 194. Could this be
indicative of some useless gunk being passed to connect(),
or is it harmless? I suspect it’s harmless, as spamc
is able to successfully connect to a spamd server if one
responds on the first connect() attempt.
Can anyone shed any light onto what might be happening?
Steven Fletcher
Internal Support Technician
dabs.com plc
www.dabs.com
Tel: +44 (0)870 429 3488
Fax: +44 (0)870 429 7488
Mobile: +44 (0)781 258 4132
Email: [EMAIL PROTECTED]
The information in this e-mail (which includes any
files transmitted with it) is intended for the addressee only. Access to this
e-mail by anyone else is unauthorised. If you have received this e-mail in
error please notify us immediately, destroy any copies and delete it from your
computer system. Any use, dissemination, forwarding, printing or copying of
this e-mail is prohibited. Copyright in this e-mail and any document created by
us and sent as an attachment to this e-mail will be and remain vested in us and
will not be transferred to you. We assert the right to be identified as the
author of and to object to any misuses of the contents of this e-mail or such
documents. Whilst we run anti-virus software on all internet e-mails we are not
liable for any loss or damage. The recipient is advised to run their own
anti-virus software. Nothing in this e-mail or any attachment shall be an
acceptance of any offer previously made nor shall be itself an offer capable of
acceptance to form a legally binding contract. Registered in England and Wales number 2621728. Registered Office: Direct House, Wingates Industrial Park, Westhoughton, Bolton, BL5 3XD.