Page 2 of 2

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

Posted: 2016-06-09 20:15
by jimimaseye
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: ).

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

Posted: 2016-06-09 22:50
by sckramer2
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.

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

Posted: 2016-06-10 05:23
by sckramer2
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

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

Posted: 2016-06-10 06:04
by SorenR
Looks like 4 byte UTF emoji's... MySQL have an issue with UTF8... Search forum, I'm on via Tapatalk on phone..

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

Posted: 2016-06-10 06:16
by sckramer2
Ok, yes I've seen talk about it & just ignore that error-- was just fyi, seemed close on the timestamps to the spamass errors.

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

Posted: 2016-06-10 06:44
by SorenR
If you enabled message indexing that error is going to haunt you till u fix it ;-)

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

Posted: 2016-06-11 05:43
by sckramer2
2 Today, details on latest:

sa.txt

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

Posted: 2016-06-11 06:06
by sckramer2
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!

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

Posted: 2016-06-11 10:49
by jimimaseye
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)

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

Posted: 2017-02-01 12:44
by jimimaseye
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).

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

Posted: 2017-05-06 11:44
by RvdH
No difference with latest BOOST compiled version (5.6.7 - Build 2407)

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

Posted: 2017-11-29 20:22
by foxmichaels
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. :(

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

Posted: 2017-11-29 23:23
by mattg
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?

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

Posted: 2018-09-04 23:09
by mikernet
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?