Hi Willy,

Please check attached patch to solve not being able to send a mail to a exchange server as discussed in previous mail thread.
http://marc.info/?l=haproxy&m=143708032708431&w=2

Is it correct like this?

Thanks for the great software :).

Regards,
Pieter
>From 50b34a494a9cd40536454591234f46d8d5e1abfb Mon Sep 17 00:00:00 2001
From: Pieter Baauw <piba.nl....@gmail.com>
Date: Wed, 22 Jul 2015 19:51:54 +0200
Subject: [PATCH] BUG/MEDIUM: mailer: DATA part must be terminated with 
<CRLF>.<CRLF>

The dot is send in the wrong place.
As defined in https://www.ietf.org/rfc/rfc2821.txt 'the character sequence 
"<CRLF>.<CRLF>" ends the mail text'
---
 src/checks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/checks.c b/src/checks.c
index 2179d4f..e386bee 100644
--- a/src/checks.c
+++ b/src/checks.c
@@ -3243,8 +3243,8 @@ static int enqueue_one_email_alert(struct email_alertq 
*q, const char *msg)
                        "Subject: [HAproxy Alert] ", msg, "\n",
                        "\n",
                        msg, "\n",
-                       ".\r\n",
                        "\r\n",
+                       ".\r\n",
                        NULL
                };
 
-- 
1.9.5.msysgit.1

Reply via email to