[ZBX-2952] E-Mails are not RFC5321 compliant, lines to long Created: 2010 Aug 27  Updated: 2017 May 30  Resolved: 2011 May 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.3
Fix Version/s: 1.8.6, 1.9.5 (alpha)

Type: Incident report Priority: Major
Reporter: Michael Mertel Assignee: dimir
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 10.04, Zabbix 1.8.3, postfix, Apple Mail 4.3



 Description   

If Zabbix-Server generates e-mails for sending them as action operation, the message body is base64 encoded. Regardless of the length of the message, zabbix generates on big bulk base64 block.

This can cause trouble, because RFC5321 states clear, that a line has to be 1000 bytes or longer, zabbix is not taking care of this.

In our scenario, zabbix creates a mail (say 2500 bytes in size), delivers it to on of our postfix instances. Postfix itself cuts the mail at a point specified with the smtp_line_length_limit parameter. Postfix inserts a <cr><lf><space> per default every 990 bytes.

These mails can not be longer display by Apple Mail, the base64 decoding stops at the first occurence of <space>.

Other clients (Thunderbird, Outlook) seem not be such picky about the format, the message are displayed properly.



 Comments   
Comment by Michael Mertel [ 2010 Aug 27 ]

It has to be 1000 bytes or less, that's what RFC5321 says

Comment by dimir [ 2011 Apr 27 ]

Fixed in version pre1.8.6, r19168.

Comment by Aleksandrs Saveljevs [ 2011 May 25 ]

When trying to send alerts with an empty body, server crashes with the following error:

5340:20110519:180526.644 file:str.c,line:3159 zbx_malloc: out of memory. Requested 4294967295 bytes.
5325:20110519:180526.646 One child process died (PID:5340,exitcode/signal:255). Exiting ...
5325:20110519:180528.659 Syncing history data...
5325:20110519:180528.720 Syncing history data... done.
5325:20110519:180528.721 Syncing trends data...
5325:20110519:180528.926 Syncing trends data... done.
5325:20110519:180528.926 Zabbix Server stopped. Zabbix 1.8.6rc1 (revision

{ZABBIX_REVISION}

).

<dimir> RESOLVED

<dimir> CLOSED

Comment by dimir [ 2011 May 26 ]

Fixed in trunk 19871, 1.8 r19870.

Comment by dimir [ 2011 May 26 ]

Reopening to set correct "Fix versions".

Comment by dimir [ 2011 May 26 ]

Set correct "Fix versions".

Generated at Thu Apr 25 20:37:02 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.