Maximum date range exceeded (max: 5 years), Build
Problem reported by George Rauscher - Today at 5:36 AM
Submitted

Subject: Reports module not loading after update – “Maximum date range exceeded (max: 5 years)”

SmarterMail Build 9427
(October 23, 2025)

Hi,

since updating SmarterMail last night to the latest build (October 28, 2025), I can no longer access any reports.

Every section under Reports (Protocol, Outbound Messages, Server Health, etc.) immediately shows the error:

“Maximum date range exceeded (max: 5 years)"


and the frontend freezes with the loading spinner. This happens across all browsers and devices.

I’m running SmarterMail on Linux, and the issue started right after the update. Before that, the reports worked fine.

Is this a known bug in the current build?

Is there any workaround or configuration file I can edit to reset the default report date range so I can access reports again?


Thanks in advance for your help,
George

George A. RauscherMember of the German Society for Criminology (Deutsche Gesellschaft für Kriminalistik e. V.)Member of "LEVA" Law Enforcement and Emergency Services Video Association, Inc.intelligent piXel GmbHExperts in forensic criminologyEnzianstr. 4a82319 Starnberg0800 - 999 8 99 88 (free*)Website: www.intelligent-pixel.comManaging Director: George A. RauscherAuthorized Representative: Dr. Louise MorgottTax Number: 143 / 150 / 31010HRB 207 679 / Munich Local Court
George Rauscher Replied
UPDATE - After thorough server investigation:

I've performed a complete system check and can confirm the following:

SYSTEM VERIFICATION:
✓ System locale unchanged: en_US.UTF-8 (verified via 'locale' command)
✓ /etc/default/locale contains: LANG=en_US.UTF-8, LANGUAGE=en_US.UTF-8
✓ No locale changes in system history
✓ All other SmarterMail services running normally (SMTP, IMAP, POP, Webmail)
✓ Stats files are being generated correctly (2.7MB in /etc/smartermail/Stats/)
✓ Service restarts cleanly but error persists on every startup
✓ Disk space: 50% usage, no storage issues
✓ No changes to system configuration before or after the update

ERROR CONSISTENCY:
- The systemEncoding error appears TWICE in the log on every service start
- Occurs immediately after "SmarterMail Starting" message
- Happens before any user interaction with the reports module
- The error is written by the MailService process itself during initialization

FRONTEND VS BACKEND:
- Frontend error "Maximum date range exceeded (max: 5 years)" is misleading
- Backend logs show NO date range validation errors
- The actual problem: Report API endpoints return HTTP 500 (Internal Server Error)
- The systemEncoding validation fails → Reports API crashes → Frontend shows 
  generic "date range exceeded" error as fallback

TIMELINE:
- October 27, 22:58 UTC: Updated to build 9427
- October 28, immediately after: Reports completely broken
- No other changes made to the system

CONCLUSION:
This appears to be a regression bug in build 9427's systemEncoding validation 
logic that affects Linux installations. The validation incorrectly flags the 
system encoding as "changed" even though it has been stable since installation.

The Windows-specific error message ("changing Windows locale") on a Linux system 
suggests the encoding validation code may not properly handle Linux environments.

Is there a way to disable this validation or can we expect a hotfix soon?
George A. RauscherMember of the German Society for Criminology (Deutsche Gesellschaft für Kriminalistik e. V.)Member of "LEVA" Law Enforcement and Emergency Services Video Association, Inc.intelligent piXel GmbHExperts in forensic criminologyEnzianstr. 4a82319 Starnberg0800 - 999 8 99 88 (free*)Website: www.intelligent-pixel.comManaging Director: George A. RauscherAuthorized Representative: Dr. Louise MorgottTax Number: 143 / 150 / 31010HRB 207 679 / Munich Local Court

Reply to Thread

Enter the verification text