HmailServer & SpamAssassin : The WinSock error code is 2.

Use this forum for discussions about SpamAssassin and anti-spam in general.
User avatar
jimimaseye
Moderator
Moderator
Posts: 8154
Joined: 2011-09-08 17:48

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by jimimaseye » 2016-06-09 20:15

HArdly. No one really knows what the probkem is (although there have recently been some promising suggestions). But that is for a winsock 2 problem that most people get. You say you are not getting that which makes your problem unique. So who knows what your problem is?!

Darth? DARTH?! Where are you?? (Jeez, he is never around when you need him. He must be hiding in the shadowy half :wink: :lol: ).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

sckramer2
Normal user
Normal user
Posts: 133
Joined: 2009-07-31 21:50

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by sckramer2 » 2016-06-09 22:50

See this post:

viewtopic.php?f=22&t=28227#p175811

I'm getting this one: HM5508, not new

Edit, checked 6-3-2016 logs: 3 HM5157's (winsock errors) there... so on the same page with this.

sckramer2
Normal user
Normal user
Posts: 133
Joined: 2009-07-31 21:50

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by sckramer2 » 2016-06-10 05:23

Screen Shot 2016-06-09 at 11.17.16 PM.png
Could this be a clue, these nearby when the HM5508 error happens:

Severity: 2 (High), Code: HM5032, Source: DALConnection::Execute, Description: MySQL: Incorrect string value.......... ---> goes on for awhile

User avatar
SorenR
Senior user
Senior user
Posts: 3210
Joined: 2006-08-21 15:38
Location: Denmark

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by SorenR » 2016-06-10 06:04

Looks like 4 byte UTF emoji's... MySQL have an issue with UTF8... Search forum, I'm on via Tapatalk on phone..
SørenR.

“With age comes wisdom, but sometimes age comes alone.”
- Oscar Wilde

sckramer2
Normal user
Normal user
Posts: 133
Joined: 2009-07-31 21:50

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by sckramer2 » 2016-06-10 06:16

Ok, yes I've seen talk about it & just ignore that error-- was just fyi, seemed close on the timestamps to the spamass errors.

User avatar
SorenR
Senior user
Senior user
Posts: 3210
Joined: 2006-08-21 15:38
Location: Denmark

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by SorenR » 2016-06-10 06:44

If you enabled message indexing that error is going to haunt you till u fix it ;-)
SørenR.

“With age comes wisdom, but sometimes age comes alone.”
- Oscar Wilde

sckramer2
Normal user
Normal user
Posts: 133
Joined: 2009-07-31 21:50

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by sckramer2 » 2016-06-11 05:43

2 Today, details on latest:

sa.txt

sckramer2
Normal user
Normal user
Posts: 133
Joined: 2009-07-31 21:50

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by sckramer2 » 2016-06-11 06:06

https://www.jam-software.com/spamassassin/changes.shtml

FYI: jam software just released sa fixing the DNS Blacklist lookups not happening... was wondering why those were not showing up in the tests!

User avatar
jimimaseye
Moderator
Moderator
Posts: 8154
Joined: 2011-09-08 17:48

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by jimimaseye » 2016-06-11 10:49

sckramer2 wrote:https://www.jam-software.com/spamassassin/changes.shtml

FYI: jam software just released sa fixing the DNS Blacklist lookups not happening... was wondering why those were not showing up in the tests!
FYI: It was all known about in part due to our testing here on this forum. :D viewtopic.php?p=184590#p184590 (page 2 is specific to this particular issue)
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
jimimaseye
Moderator
Moderator
Posts: 8154
Joined: 2011-09-08 17:48

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by jimimaseye » 2017-02-01 12:44

superman20 wrote: After digging through hMailServer's source for a limited amount of time, I see it uses the boost library for asynchronous IO. Error code 2 is the boost EOF (End Of File) error. Unfortunately, I'm not a boost user and I'm not familiar with it. My limited research finds this in the boost docs (http://www.boost.org/doc/libs/1_60_0/do ... reams.html) which says:
The end of a stream can cause read, async_read, read_until or async_read_until functions to violate their contract. E.g. a read of N bytes may finish early due to EOF.
binkle wrote:hm.. you answered before I edited :wink:

Digging a bit in the code of hMailServer shows that the error code is provided as comming from boost::system::error_code.
So the error code actually is no socket error, it's the windows system error 2: no_such_file_or_directory (see: http://stackoverflow.com/questions/2978 ... e-number-2)

For sure, this has noting to do with SpamAssassin. It must be an hMailServer internal issue.
Martin recompiled HMS and used the latest BOOST - maybe this version of boost no longer has the problem? Look for HMS minimum build 2399 (5.6.7 - Build 2399 currently available in beta).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
RvdH
Senior user
Senior user
Posts: 801
Joined: 2008-06-27 14:42
Location: Netherlands

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by RvdH » 2017-05-06 11:44

No difference with latest BOOST compiled version (5.6.7 - Build 2407)
CIDR to RegEx: d-fault.nl/CIDRtoRegEx
DNS Lookup: d-fault.nl/DNSTools
DNSBL Lookup: d-fault.nl/DNSBLLookup
GEOIP Lookup: d-fault.nl/GeoipLookup

foxmichaels
New user
New user
Posts: 8
Joined: 2017-11-29 20:09

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by foxmichaels » 2017-11-29 20:22

I'm bumping this, because I have to roll back, or try a beta.

Since upgrading to 5.6.6-B2383 (just for TLS support, too. Was on 5.6.4, I believe), I've had this happen at least once a day - sometimes more. I'll get up to 20+ duplicated emails (per email coming in), and sometimes the person sending will even get a bounce back stating that their mail server was unable to send the message.

I can live without TLS support, but can't have 20+ duplicated emails in my inbox, and senders thinking their email didn't get through. :(

User avatar
mattg
Moderator
Moderator
Posts: 20216
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by mattg » 2017-11-29 23:23

I've never gotten a duplicate email because of the spamAssassin connection drop out, and never had a message be partially rejected / dropped due to this issue.

Are you sure that this is caused by the link to SpamAssassin dropping out?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

mikernet
New user
New user
Posts: 22
Joined: 2018-09-04 22:22

Re: HmailServer & SpamAssassin : The WinSock error code is 2.

Post by mikernet » 2018-09-04 23:09

Has there been any updates to this issue? It's been a couple years and I'm still getting this.

Has your proxy that delays closing the socket fixed the issue superman20? Is there any chance we can get a copy of your proxy?

Post Reply