]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: mailer: DATA part must be terminated with <CRLF>.<CRLF>
authorPieter Baauw <piba.nl.dev@gmail.com>
Wed, 22 Jul 2015 17:51:54 +0000 (19:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Jul 2015 20:39:39 +0000 (22:39 +0200)
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

index 2179d4fc7c718cd579fbb2d5bdf26830799549f7..e386bee6c90adf2d28da2976c6da82f30f03e18a 100644 (file)
@@ -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
                };