Page 1 of 1

Have a problem with 11 meg messages

Posted: 2016-07-12 15:12
by George_A
Running hmailserver 5.6.4-B2283 under win2008 x64 in vmware environment have the following problem with big messages (size more than 10 mb).

Hard disks have no errors (have checked them).

"ERROR" 1980 "2016-07-12 00:09:43.933" "Severity: 3 (Medium), Code: HM4227, Source: File::ReadFile, Description: An unknown error occurred while reading file from disk."
"ERROR" 1980 "2016-07-12 00:09:43.949" "Severity: 3 (Medium), Code: HM5042, Source: File::ReadTextFile, Description: An unknown error occurred while reading a text file from disk."
"ERROR" 1980 "2016-07-12 00:09:43.949" "Severity: 1 (Critical), Code: HM5062, Source: IMAPFetch::ReportCriticalError_, Description: ERROR HM10001 - IMAP FETCH: Error when loading MIME message. - E:\FactorTS\hMailServer\Data\mail.barnaul.sds.cbr.ru\01svcpso48\E1\{E1A1B56F-E778-468A-AD39-326A5FF1079A}.eml"
"ERROR" 1980 "2016-07-12 00:09:43.949" "Severity: 3 (Medium), Code: HM5136, Source: TCPConnection::AsyncReadCompleted, Description: An error occured while parsing data. Data length: 75, Data: mojw UID FETCH 10398:10399 (UID FLAGS RFC822.SIZE BODY.PEEK[] INTERNALDATE). Remote IP: 10.78.135.56"
"ERROR" 1980 "2016-07-12 00:09:43.949" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'IOCPQueueWorkerTask', Message: bad allocation"
"ERROR" 1980 "2016-07-12 00:09:44.089" "Severity: 1 (Critical), Code: HM5519, Source: StackLogger::Log, Description: An error has been detected. A mini dump has been written to E:\FactorTS\hMailServer\Logs\minidump_2016-07-12 000943_{16AEACAA-21CB-4229-AE3A-09B99251099A}.dmp"

What can be done to solve the problem? What should I check?

Re: Have a problem with 11 meg messages

Posted: 2016-07-12 15:57
by percepts
check:

settings/protocols/smtp/general tab/maximum message size

this needs to be perhaps at least 50% bigger than than actual message size as message in transit is split into octets which can be considerably bigger than actual on disk size of message

also

your account size as a big message can blow that limit. Again at least 50% bigger than actual message size.

also

in your domain limits there is a maximum message size. Again at least 50% bigger than actual message size maximum you want to allow.

time was when a lot of mailservers limited max message size to 10MB but these days that is not very big

then also there are limits in anti Spam setting for maximum messge size to scan which can cause problems

check all of these settings to get useable/workable limits.

Re: Have a problem with 11 meg messages

Posted: 2016-07-13 01:37
by mattg
It could also be that the Antivirus on your server is holding the file while it is checked

I'd also recommend updating to latest version of hMailserver 5.6.5 B2367

Re: Have a problem with 11 meg messages

Posted: 2016-07-13 10:39
by George_A
No, there is no Antivirus there, and the max size for domain and users set to 0 (unlimited), no problem with disk space as well.

Re: Have a problem with 11 meg messages

Posted: 2016-07-13 10:45
by mattg
Then upgrade... There have been many changes.

I pass messages exceeding 40 MB

Re: Have a problem with 11 meg messages

Posted: 2016-07-13 11:45
by percepts
George_A wrote:No, there is no Antivirus there, and the max size for domain and users set to 0 (unlimited), no problem with disk space as well.
What about SMTP max message size. You can overide that in domain max message size. Using 0 in domain max message size DOES NOT mean unlimited. It means you have not overidden the SMTP max message size. What is the value you have in settings/protocols/smtp/general tab/max message size (which is in KB and not MB). You should set that to at least 20480 (or set your domain max message size to at least 20480 (its in KB too)). Do not leave it as 0 as that opens your server to abuse. Make it as big as you expect a message size to be plus 50% in KB.

Re: Have a problem with 11 meg messages

Posted: 2016-07-14 11:49
by George_A
percepts wrote:
George_A wrote:No, there is no Antivirus there, and the max size for domain and users set to 0 (unlimited), no problem with disk space as well.
What about SMTP max message size. You can overide that in domain max message size. Using 0 in domain max message size DOES NOT mean unlimited. It means you have not overidden the SMTP max message size. What is the value you have in settings/protocols/smtp/general tab/max message size (which is in KB and not MB). You should set that to at least 20480 (or set your domain max message size to at least 20480 (its in KB too)). Do not leave it as 0 as that opens your server to abuse. Make it as big as you expect a message size to be plus 50% in KB.
It set to 204480, so it can not be the problem

Re: Have a problem with 11 meg messages

Posted: 2016-07-14 13:57
by katip
have you done a scandisk??

Re: Have a problem with 11 meg messages

Posted: 2016-07-14 14:40
by jimimaseye
Send the minidump to martin @ hmailserver.com (and refer to this thread.)

Re: Have a problem with 11 meg messages

Posted: 2016-07-14 18:39
by percepts
the first error message being output to log each time this happens is an out of memory message generated from your IMAP access.

Have you got message indexing enabled in the advanced/performance/message indexing settings ?

This may help if you have not got it enabled but I don't know why. Normally you would only get very slow performance if you need that setting but memory issues could also happen. So if its not enabled then enable it and see if it improves the situation.

it takes some time to index all the imap email initially and then can vastly improve imap viewing speed.

Also make sure email client is not re-syncing all your imap folder to local everytime you open your your email client which will cause performance issues and possibly out of memory issues.

And send minidump to martin as suggested for a fuller expanation of what may be casuing the error.