SMTP MIME Header Issue – Wisenet Cameras
Created by: Alex Dias (a.dias@hanwha.com)
Created time: November 2025
Last edited time: November 2025
Product Category: Camera
Resolution Status: Planned
ZD KB Article URL: here
1. Issue
A MIME compliance issue has been identified on the PND-A9081RV when sending daily people-counting report emails.
The receiving mail server (Microsoft Office 365) blocks the email due to invalid MIME format.
Reported error messages:
-
INVALID HEADER: BAD MIME HEADER SECTION OR BAD MIME STRUCTURE
-
part did not end with expected boundary
-
unexpected end of parts before epilogue
Note: Standard alarm/test emails are not affected. Issue occurs only when the daily report is enabled.
2. Reproduction Summary
Testing performed using the latest firmware provided to the customer.
| Camera Model | Firmware Version | SMTP Server Tested | Result |
|---|---|---|---|
| PND-A9081RV | v2.23.04_20250916_R190 | Gmail (SSL, Port 465) | Success |
| PND-A9081RV | v2.23.04_20250916_R190 | Microsoft 365 / O365 (Port 587, STARTTLS) | Blocked due to MIME rejection |
Raw header analysis shows:
-
MIME boundaries are correctly closed
-
Structure is valid on Gmail
-
O365 rejects the email based on attachment MIME declaration
3. Root Cause
The daily report attachment (.xlsx) uses the generic MIME content type:
application/octet-stream
instead of the correct Excel MIME type:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Strict filtering enforced by Office 365 identifies this mismatch as non-compliant and blocks the message.
4. Resolution Status
The MIME header generation for report attachments has been corrected by development.
-
The fix has already been implemented in a test firmware build.
-
The fix will be included in the next official firmware release.
-
Planned release schedule: End of November 2025 (per R&D feedback).
5. Affected Models
-
Confirmed impacted models (same MIME generation mechanism):
-
PNV-A9081R
-
PND-A9081RV
-
PNO-A9081R
-
PNB-A9001
-
PNB-A9011
(Additional models using the same people-counting report mechanism may also be affected. Under review by HQ.)