Have a problem with 11 meg messages

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
George_A
New user
New user
Posts: 5
Joined: 2016-07-12 15:00

Have a problem with 11 meg messages

Post by George_A » 2016-07-12 15:12

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?
Attachments
minidump12_07.rar
(379.12 KiB) Downloaded 90 times
12_07_2.rar
(1.43 MiB) Downloaded 58 times

percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Re: Have a problem with 11 meg messages

Post by percepts » 2016-07-12 15:57

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.

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

Re: Have a problem with 11 meg messages

Post by mattg » 2016-07-13 01:37

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
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

George_A
New user
New user
Posts: 5
Joined: 2016-07-12 15:00

Re: Have a problem with 11 meg messages

Post by George_A » 2016-07-13 10:39

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.

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

Re: Have a problem with 11 meg messages

Post by mattg » 2016-07-13 10:45

Then upgrade... There have been many changes.

I pass messages exceeding 40 MB
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Re: Have a problem with 11 meg messages

Post by percepts » 2016-07-13 11:45

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.

George_A
New user
New user
Posts: 5
Joined: 2016-07-12 15:00

Re: Have a problem with 11 meg messages

Post by George_A » 2016-07-14 11:49

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

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

Re: Have a problem with 11 meg messages

Post by katip » 2016-07-14 13:57

have you done a scandisk??
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

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

Re: Have a problem with 11 meg messages

Post by jimimaseye » 2016-07-14 14:40

Send the minidump to martin @ hmailserver.com (and refer to this thread.)
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

percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Re: Have a problem with 11 meg messages

Post by percepts » 2016-07-14 18:39

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.

Post Reply