[ZBX-6950] smtp connection termination Created: 2013 Sep 03  Updated: 2017 May 30  Resolved: 2013 Sep 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.0.7
Fix Version/s: 2.0.9rc1, 2.1.5

Type: Incident report Priority: Trivial
Reporter: xoJIog Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: smtp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zabbix_smtp_quit.patch    

 Description   

While executing smtp check Zabbix server will terminate connection by sending "QUIT/n".
However, according to RFC2821 all lines should be terminated using "\r\n"( http://www.ietf.org/rfc/rfc2821.txt )
This behavior can lead to ( and in my case did ) situation when connection is not closed and next connection to SMTP server will be merged into not-closed one and SMTP server will reply with:
500 5.5.2 Error: bad syntax; smtp_resp: QUIT\nEHLO localhost.localdomain\r\n
The problem was observed with amavisd-2.7.2
Simple patch that fixes the problem with simple check for smtp attached.



 Comments   
Comment by Igors Homjakovs (Inactive) [ 2013 Sep 16 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-6950

Comment by Andris Zeila [ 2013 Sep 18 ]

Successfully tested

Comment by Igors Homjakovs (Inactive) [ 2013 Sep 18 ]

Fixed in versions 2.0.9rc1 r38614 and 2.1.5 (trunk) r38615.

Generated at Thu Mar 28 17:43:05 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.