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.

Is it correct like this?

Thanks for the great software :).

>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 

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",
                        msg, "\n",
-                       ".\r\n",
+                       ".\r\n",

Reply via email to