Build 342,343,344 and SpamAssassin

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
bigcrawdaddy
Normal user
Normal user
Posts: 53
Joined: 2008-02-19 14:41

Build 342,343,344 and SpamAssassin

Post by bigcrawdaddy » 2009-05-01 16:15

I upgraded to the 342 build when I read that it fixed a HMS crash when SA would malfunction because that had been happening to me. Since the upgrade to 342 and same in 343 and 344 I am seeing something new. In my HMS ERROR Log from time to time each day I get.

Code: Select all

"ERROR"	2372	"2009-04-22 12:34:38.125"	"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 995. Enable debug logging to retrieve more information regarding this problem. The problem could be that SpamAssassin is malfunctioning."
I have debugging enabled but it really doesn't say anything more that what is in the ERROR LOG except that it returned 0 bytes

After looking at the spamd.log I see no error or crash of SA but that on each and every time the aboxe error happens that SA took longer than 30 seconds in the scannind of the message.

So does HMS have a 30 seconds time? And if so what if anything can I do to try and slove this issue?

Thanks

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: Build 342,343,344 and SpamAssassin

Post by martin » 2009-05-02 11:58

hMailServer times out after 30 seconds (not configurable). Does SA really take more than 30 seconds to execute in your environment?

bigcrawdaddy
Normal user
Normal user
Posts: 53
Joined: 2008-02-19 14:41

Re: Build 342,343,344 and SpamAssassin

Post by bigcrawdaddy » 2009-05-02 13:22

It happens on about 10 to 15 messages a day and all seem to be large in size. I have my size limit to scan set at 2048. Could this be set too high? And if so what would be a good setting?

bigcrawdaddy
Normal user
Normal user
Posts: 53
Joined: 2008-02-19 14:41

Re: Build 342,343,344 and SpamAssassin

Post by bigcrawdaddy » 2009-05-02 18:26

Martin
On average SA takes between 19 and 25 seconds but from time to time one will take just over 30 seconds.

User avatar
DFitch
Senior user
Senior user
Posts: 258
Joined: 2006-09-16 20:40

Re: Build 342,343,344 and SpamAssassin

Post by DFitch » 2009-05-02 20:24

I'm not running 5.1 yet, still on 5.0 326build.
With Size limit set to 1024, most spam shouldn't be larger than that.
My spamassassin, however is on vmware running ubuntu (highly suggest over windows)
Average process time is 1.5 - 6secs, high end 10secs seen on few.

With your SA taking that long you may want to check which options are running and disable a few. (eg. rbl checks) May want to add a timeout in SA for RBL and DCC if using both or either. Also may want to use a local dns server with it.

D
hMailServer 5.3.3: External MySql
Win2k3 Server | eWall 4.0 Anti-Spam Anti-Virus SMTP Proxy {http://sssolutions.net/}
SpamAssassin 3.31 - ClamAV on backend Ubuntu Server 10.04(VMware)

bigcrawdaddy
Normal user
Normal user
Posts: 53
Joined: 2008-02-19 14:41

Re: Build 342,343,344 and SpamAssassin

Post by bigcrawdaddy » 2009-05-03 19:30

Thanks very much seting SA to use my dns server did the trick the scans are now taking less that 2 seconds.

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: Build 342,343,344 and SpamAssassin

Post by martin » 2009-05-03 19:33

That sounds good. I was a bit unsure when I set the timeout, but I felt that if it took longer than 30 seconds, something was wrong.

If it takes more than 30 seconds for your server to accept the message, that may cause other problems. For example, if a PHP script tries to send an email to your server and it takes 30 seconds before hMailServer accepts the message, the PHP script may time out (if its using the default PHP settings). It may still timeout, but it's less likely.

Roddles
New user
New user
Posts: 1
Joined: 2009-11-23 09:19

Re: Build 342,343,344 and SpamAssassin

Post by Roddles » 2009-11-23 09:22

I was wondering if you could tell me where you configured SA to use the local DNS.

I have the same problem except that every message returns the error you mentioned.

Could you tell me which config file you used to set the local DNS.

Cheers

Rod.

PaulLong
New user
New user
Posts: 2
Joined: 2007-11-08 20:14

Re: Build 342,343,344 and SpamAssassin

Post by PaulLong » 2010-08-05 07:42

Martin,

Would it be possible to extend the 30 second timeout? Or make it an option in the Spam Assassin config section?

Most messages get scanned and returned in time, but I have about 10-15 messages a day that slip through because Spam Assassin took just over the 30 second timeout.

Thank you!

Shelby
New user
New user
Posts: 22
Joined: 2007-07-31 18:29

Re: Build 342,343,344 and SpamAssassin

Post by Shelby » 2010-10-25 22:27

Sorry to warm up this thread again but my issue fits in right here.

I also do have timeout issues with my SA installation and to set (or even disable) the timeout would be really great.

I am not sure if my installation is a typical setup but to better argue for this change, I'll describe it here:

I have only two mailboxes running on hmailserver. Hmailserver collects the mails from my ISP's POP mailboxes and delivers them to the Hmailserver mailboxes. I am using Roundcube as the webfrontend to access these mailboxes.

This is for my own private mails and therefore I do not have a dedicated server. Hmailserver, spamassassin, apache, mysql and everything else is just running on this one lonely computer. Besides that pack of server software, the computer serves as desktop PC. Therefore CPU utilization may become high depending on the applications I am running (eg. running World of Warcraft, Visual Studio compiles, graphic editors).

Running SA on a separate computer is a really expensive solution for such an installation just to make sure the timeout will not be hit. So I would really appreciate it to make this option configurable.

Thomas Parvais
Normal user
Normal user
Posts: 111
Joined: 2004-12-17 12:21
Contact:

Re: Build 342,343,344 and SpamAssassin

Post by Thomas Parvais » 2010-10-26 11:16

DFitch wrote:I...
My spamassassin, however is on vmware running ubuntu (highly suggest over windows)
Average process time is 1.5 - 6secs, high end 10secs seen on few.
....
D
Hello

I'm trying to make Spamassassin working on my W2003 server.... too unstable

Have you succeed to install VMware + Ubuntu + Spamm assassin on your windows server ? Is vmware starting automatically with linux, spamd etc ?

Thank you to share you experience / config
Interrested by Law & new technologies ?
Intéressé par le droit de l'internet et des nouvelles technologies ?
Visit/Visitez http://www.droit-technologie.org

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Build 342,343,344 and SpamAssassin

Post by Bill48105 » 2010-10-28 15:21

Hi Thomas Parvais,
I've been using SpamAssassin & ASSP on Centos under 2K3 Virtual Server for years and it works great. And yes it has option to start automatically. Not sure which VMWare versions have auto-start options or work-arounds but seems you should be able to get something working..
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

User avatar
DFitch
Senior user
Senior user
Posts: 258
Joined: 2006-09-16 20:40

Re: Build 342,343,344 and SpamAssassin

Post by DFitch » 2010-11-02 21:00

Hi Thomas,

Yes I've ran VMWare successfully on Windows for years, I use the free versions 1.0.10 of VMWare server. But 2.0 works as well, all web based.
I allocate 512mg RAM for the virtual machine, which runs Ubuntu 10.04.1 LTS. It runs bind for local dns for spamassassin and also clamav.

Within the VMWare console you can setup guest to automatically start, stop, etc with host machine.

Vmware 1.0.10: http://downloads.vmware.com/d/details/s ... VqZGJkZWQq
(VMware Server for Windows Operating Systems)

D :D :)
hMailServer 5.3.3: External MySql
Win2k3 Server | eWall 4.0 Anti-Spam Anti-Virus SMTP Proxy {http://sssolutions.net/}
SpamAssassin 3.31 - ClamAV on backend Ubuntu Server 10.04(VMware)

Post Reply