From 9f7768fc321c0a61e3949fe88c2420bdaea18cf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu>
Date: Mon, 5 Jun 2017 10:40:30 +0200
Subject: [PATCH] force full path for sendmail

---
 tester.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tester.py b/tester.py
index b1e7db96..2725d146 100755
--- a/tester.py
+++ b/tester.py
@@ -394,7 +394,7 @@ Content-transfer-encoding: utf-8
                 system_domain=system_domain,
                 system_type=system_type,
             )
-            p = subprocess.Popen(['sendmail', '-t'], stdin=subprocess.PIPE, stdout=sys.stdout.stream, stderr=sys.stderr.stream)
+            p = subprocess.Popen(['/usr/sbin/sendmail', '-t'], stdin=subprocess.PIPE, stdout=sys.stdout.stream, stderr=sys.stderr.stream)
             p.communicate(input=mail.encode('utf-8'))
             if p.returncode != 0:
                 log('Failed to send email.')
-- 
GitLab