New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugette] Hmail Backup putting out spurious error message #69

Closed
visualperception opened this Issue Dec 11, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@visualperception
Copy link

visualperception commented Dec 11, 2014

hmail backup puts out following error message but then continues to backup.

"The size of the data directory exceeds the maximum RECOMMENDED size for the built in backup (1.5GB). Please consult the backup documentation"

this seems to be a hangover from before the limit was increased to 15GB.
I set message size on one mail to 16GB and above message was output as well as one saying 15GB was exceeded (which is what I expected) and backup aborted.

Then I then reduced mail size to 14GB and 1.5GB message was output by itself but backup proceeded OK.

So it looks like somewhere this message is being generated when it shouldn't be.

@visualperception visualperception changed the title [bugette] [bugette] Hmail BAckup putting out spurious error message Dec 11, 2014

@visualperception visualperception changed the title [bugette] Hmail BAckup putting out spurious error message [bugette] Hmail Backup putting out spurious error message Dec 11, 2014

@martinknafve

This comment has been minimized.

Copy link
Collaborator

martinknafve commented Dec 19, 2014

The increased max size was something which Bill implemented and I'm not entirely sure how it works. The fixed max size right now is 15GB. I assume we can say that the recommended max size is then 10GB. I have never tried with this large backups, but I assume Bill did when he implemented this change.

Do you agree? The backup recommendation currently recommends max 1GB so that seems out of date as well.

@visualperception

This comment has been minimized.

Copy link

visualperception commented Dec 19, 2014

Yes I agree the documentation is out of date and should say 15GB but also there is an erroneous message being put out by the backup if there is entry in hm_messages which has messagesize > 1.5GB.
So the 1.5GB message in above is put out even if there is only 5GB of mail in backup.

Exactly how hmail is doing its calcs to set the limit to 15GB I don't know. From the brief look I had it seems to be accumulating messagesize from hm_messages but that doesn't account for size of DB itself so whether you say 10 or 15GB is a moot point. I think it would be easiest to just look at size of hmailserver/data and use that as limit of backup before aborting backup if indeed there should be a limit.
And make it clear in documenation.that limit is based on size of hmailserver/data but actual size of backup might be bigger or smaller due to size of DB and whether or not compression is used.

@visualperception

This comment has been minimized.

Copy link

visualperception commented Dec 19, 2014

Infact I don't see whay there should be a limit except that its incredibly slow to generate an xml file and compress it. But that shouldn't require a fixed limit. It only requires a recommendation explaining that as backup size increases so will the time to backup increase and it is recommended that anything over 15GB is backed up by other means. I don't know what the limits in 7z are for a single file but they may force a fixed limit. But that's only if compression is selected.

martinknafve added a commit that referenced this issue Dec 20, 2014

Removed warning if backup was more than 1,5GB. There's no longer a re…
…commended max-size - the time will vary with the installation size. #69
@martinknafve

This comment has been minimized.

Copy link
Collaborator

martinknafve commented Dec 20, 2014

Agreed. I removed warning for 5.7.

RvdHout added a commit to RvdHout/hmailserver that referenced this issue Aug 6, 2017

- Sub OnHELO(oClient) hmailserver#153 hmailserver#153
- Fixed Incorrect DEBUG logging for event 'OnDeliverMessage' hmailserver#181 hmailserver#181
- Include HTMLBody into IMAP TEXT search hmailserver#193
- Fixed implicit conversion: "int" to "unsigned char" hmailserver#204
- Faulty: SMTP 'Disconnect client after too many invalid commands' hmailserver#160 hmailserver#160
- SMTP server error "550 Unsupported ESMTP extension" on MAIL FROM:... AUTH=<> [with fix] hmailserver#164 hmailserver#164
- Remove 15GB backup limit hmailserver#69 hmailserver#69
- Speed up 'update hm_messages set messageflags' hmailserver#221 hmailserver#221
- https://www.hmailserver.com/forum/viewtopic.php?f=7&p=196733#p196733 (Ofice 2016 Read-Receipt Bug)
- Add Return-Path as topmost header before sending the message to SA (+ delete Return-Path header after the SA check completes) hmailserver#116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment