ERROR 3368 Spamassassin

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

ERROR 3368 Spamassassin

Post by agatha » 2016-09-14 13:04

When using SpamAssassin with HM I get sometimes (once, twice a day) this error:

"ERROR" 3368 "2016-09-14 06:00:11.876" "Severity: 3 (Medium), Code: HM5157, Source: SpamAssassinClient::OnReadError, Description: There was a communication error with SpamAssassin. hMailServer tried to retrieve data from SpamAssassin but the connection to SpamAssassin was lost. The WinSock error code is 10054. Enable debug logging to retrieve more information regarding this problem. The problem could be that SpamAssassin is malfunctioning."
"ERROR" 3308 "2016-09-14 06:00:11.877" "Severity: 2 (High), Code: HM5508, Source: SpamAssassinTestConnect::TestConnect, Description: The SpamAssassin tests did not complete. Please confirm that the configuration (host name and port) is valid and that SpamAssassin is running."

Spamassassin works fine and a spam test needs about one second, so I guess, it is not a typical time-out-problem (viewtopic.php?t=15851) I also found https://github.com/hmailserver/hmailserver/issues/167


SpamAssassin ist configured according to this how-to: viewtopic.php?t=28133

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

Re: ERROR 3368 Spamassassin

Post by mattg » 2016-09-14 13:13

I rarely get that when spamAssassin is reloading databases or something similar

I've asked for a way to score SPAM via the com API, so that we can code any spam core that we like
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

Re: ERROR 3368 Spamassassin

Post by agatha » 2016-09-14 13:24

Reloading the database was my first thought.

The spamd service is reloaded three times a day (stop service, update database, start service), but the timestamps of the errors do not match those reloads.

The service itself runs fine, so I do not think, abnormal terminations are the reason.

agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

Re: ERROR 3368 Spamassassin

Post by agatha » 2017-01-11 16:56

It seems to be a RAM issue. Since I upgraded my RAM from 4 to 8 GB, this message did not occur anymore.

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

Re: ERROR 3368 Spamassassin

Post by RvdH » 2017-01-11 17:04

I doubt RAM has anything to do with this

WinSock errorcode 10054 is the error you get when spamd is unavailable, most likely: right in the middle of the restarting process (stop service, update database, start service)
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

agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

Re: ERROR 3368 Spamassassin

Post by agatha » 2017-01-11 18:28

WinSock errorcode 10054 is the error you get when spamd is unavailable, most likely: right in the middle of the restarting process (stop service, update database, start service)
First I thought so. But the timestamps in the logs did not match to the time, the service is reloaded. Not one single time.
The RAM usage was regular 80-90%, before I have upgraded. And since I did, no single error occurred. Maybe spamd sometimes had not enough memory.

Of course, it might just be a coincidence and something different happened which is the reason. But that is what I have watched.

User avatar
katip
Senior user
Senior user
Posts: 777
Joined: 2006-12-22 07:58
Location: Istanbul

Re: ERROR 3368 Spamassassin

Post by katip » 2017-01-11 20:12

agatha wrote:It seems to be a RAM issue. Since I upgraded my RAM from 4 to 8 GB, this message did not occur anymore.
just curious. what is your average SMTP volume and peak RAM usage by SA you see on taskmanager?
Katip
--
HMS 5.7.0 x64, MariaDB 10.4.10 x64, SA 3.4.2, ClamAV 0.101.2 + SaneS

agatha
Normal user
Normal user
Posts: 49
Joined: 2015-10-30 11:13

Re: ERROR 3368 Spamassassin

Post by agatha » 2017-01-12 17:44

peak RAM usage by SA
about 500 MB. I restart the service daily as there seems to be a memory leak.
what is your average SMTP volume
About 2000 messages per day.

Post Reply