You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2007/07/30 10:36:46 UTC
[Bug 5577] New: Win32-spamc: connect to spamd on ... failed => hostname not displayed
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
Summary: Win32-spamc: connect to spamd on ... failed => hostname
not displayed
Product: Spamassassin
Version: 3.2.2
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P5
Component: spamc/spamd
AssignedTo: dev@spamassassin.apache.org
ReportedBy: nico.prenzel@pn-systeme.de
Hello,
spamc on win32 returns the following, if the spamc destination host could not
be found:
E:\DomSpamC\DomSpamC\SpamC-New\SpamC\debug>spamc -d 192.168.101.2 -K
connect to spamd on ╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠☻ failed, retrying (#1 of 3): 10060
connect to spamd on ╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠☻ failed, retrying (#2 of 3): 10060
connect to spamd on ╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠
╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠╠☻ failed, retrying (#3 of 3): 10060
connection attempt to spamd aborted after 3 retries
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
------- Additional Comments From nico.prenzel@pn-systeme.de 2007-07-30 01:59 -------
early diagnosis:
host defined as "char host[SPAMC_MAXHOST-1]" doesn't get a hostname at
_try_to_connect_tcp() function if not defined SPAMC_HAS_ADDRINFO (Win32).
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
------- Additional Comments From nico.prenzel@pn-systeme.de 2007-07-30 01:40 -------
Created an attachment (id=4067)
--> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=4067&action=view)
spamc output log
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] [review] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
spamassassin@dostech.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard|needs 2 votes for 3.2 |needs 1 votes for 3.2
------- Additional Comments From spamassassin@dostech.ca 2007-08-07 10:28 -------
+1
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] [review] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Win32-spamc: connect to |[review] Win32-spamc:
|spamd on ... failed => |connect to spamd on ...
|hostname not displayed |failed => hostname not
| |displayed
Status Whiteboard| |needs 2 votes for 3.2
------- Additional Comments From jm@jmason.org 2007-07-30 06:16 -------
cool, thanks Nico. applied to trunk:
: jm 135...; svn commit -m "bug 5577: spamc on win32 reported corrupt error
messages if spamd host was unresolveable or unconnectable. fix" spamc/libspamc.c
Sending spamc/libspamc.c
Transmitting file data .
Committed revision 560971.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
------- Additional Comments From nico.prenzel@pn-systeme.de 2007-07-30 06:00 -------
Thanks Justin,
it works. Output from spamc is now correct:
connect to spamd on 192.168.101.2 failed, retrying (#1 of 3): 10060
connect to spamd on 192.168.101.2 failed, retrying (#2 of 3): 10060
connect to spamd on 192.168.101.2 failed, retrying (#3 of 3): 10060
NicoP.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] [review] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jm@jmason.org 2007-12-16 13:26 -------
(In reply to comment #11)
> +1
thanks guys -- in 3.2.x as r604710
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.2.3
------- Additional Comments From jm@jmason.org 2007-07-30 05:07 -------
yep, your diagnosis looks correct. could you try the following patch?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] [review] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.2.3 |3.2.4
------- Additional Comments From jm@jmason.org 2007-08-12 06:38 -------
3.2.3 was released without these fixed, moving to 3.2.3
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
------- Additional Comments From jm@jmason.org 2007-07-30 05:08 -------
Created an attachment (id=4069)
--> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=4069&action=view)
fix
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
------- Additional Comments From nico.prenzel@pn-systeme.de 2007-07-30 02:33 -------
with spamc from SA 3.0.0 i do get the following (correct) output:
E:\DomSpamC\DomSpamC\testmails>e:\domspamc\mail-spamassassin-3.0.0\spamc\spamc -
d 192.168.101.2 < sample-nonspam.txt
connect(AF_INET) to spamd at 192.168.101.2 failed, retrying (#1 of 3): 10060
connect(AF_INET) to spamd at 192.168.101.2 failed, retrying (#2 of 3): 10060
connect(AF_INET) to spamd at 192.168.101.2 failed, retrying (#3 of 3): 10060
connection attempt to spamd aborted after 3 retries
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] [review] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
------- Additional Comments From nico.prenzel@pn-systeme.de 2007-08-07 11:57 -------
Hi,
if i'am able to vote, I would vote +1 :-)
NicoP.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5577] [review] Win32-spamc: connect to spamd on ... failed => hostname not displayed
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5577
sidney@sidney.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard|needs 1 votes for 3.2 |ready to commit for 3.2
------- Additional Comments From sidney@sidney.com 2007-12-16 11:44 -------
+1
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.