It looks to me as if the dot is send in the wrong place.
Attached patch would fix that.
https://www.ietf.org/rfc/rfc2821.txt
the character sequence "<CRLF>.<CRLF>" ends the mail text.
Could you guy's take a look?
mlist schreef op 15-7-2015 om 14:23:
At the end of each smtp session, we see a packet with Reset + Acknowledge nits
set:
tcp.flags = RST + ACK
Roberto
-----Original Message-----
From: Baptiste [mailto:bed...@gmail.com]
Sent: mercoledì 15 luglio 2015 12.01
To: mlist
Cc: haproxy@formilux.org
Subject: Re: Mailer does not work
On Wed, Jul 15, 2015 at 9:48 AM, mlist <ml...@apsystems.it> wrote:
We compiled from source haproxy-1.6-dev2.tar.gz. New Mailers mechanism does
not seems to work, we configured as on manual:
mailers apsmailer1
mailer smtp1 <mailserver ip>:10025
…
…
backend somebackend_https
mode http
balance roundrobin
…
email-alert mailers apsmailer1
email-alert from <from mail>
email-alert to <to mail>
email-alert level info
…
We see in haproxy.log server status change:
Jul 15 09:42:00 localhost.localdomain haproxy[3342]: Server …/<server1> is
UP, reason: Layer4 check passed, check duration: 0ms. 2 active and 0 backup
servers online. 0 sessions requeued, 0 total in queue.
Jul 15 09:42:00 localhost.localdomain haproxy[3342]: Server …/<server1> is
UP, reason: Layer6 check passed, check duration: 1ms. 2 active and 0 backup
servers online. 0 sessions requeued, 0 total in queue.
But no mail alerts are sent, no error or warning logged about sending mail.
haproxy -f /etc/haproxy/haproxy.cfg –c
does not return any error. All seems to be right, but mail alerts are not
sent.
Roberto
Hi Roberto,
Could you please take a tcpdump on port 10025 and confirm HAProxy
tries to get connected to the SMTP server?
Baptiste
From ba3e1593b313752e0a3ff54aae06b18ba17c1435 Mon Sep 17 00:00:00 2001
From: Pieter Baauw
Date: Thu, 16 Jul 2015 22:38:19 +0200
Subject: [PATCH] mailer, DATA part must be terminated with CRLF.CRLF
---
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