From fceaec158d368ac269b4a02907d5dcf3b670fb65 Mon Sep 17 00:00:00 2001
From: Quentin Duchemin <quentinduchemin@tuta.io>
Date: Wed, 24 Nov 2021 16:02:51 +0100
Subject: [PATCH] [Mail] Accept any HELO hostname

Because some mail clients as Mailspring won't work otherwise.
---
 pica-mail/pica-mail-mta/config.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pica-mail/pica-mail-mta/config.sh b/pica-mail/pica-mail-mta/config.sh
index 363eea18..30f662d9 100755
--- a/pica-mail/pica-mail-mta/config.sh
+++ b/pica-mail/pica-mail-mta/config.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+/#!/bin/bash
 
 # postconf permet de modifier /etc/postfix/main.cf
 
@@ -51,7 +51,7 @@ postconf -e 'smtpd_recipient_restrictions = reject_unknown_recipient_domain, per
 # Rejette les clients qui ne disent pas bonjour, ou qui disent
 # bonjour (HELO ou EHLO) avec un nom de domaine non-valide, non pleinement
 # qualifié (i.e. "absolu"), ou sans enregistrement DNS A ou MX.
-postconf -e "smtpd_helo_restrictions = reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname"
+postconf -e "smtpd_helo_restrictions = reject_invalid_helo_hostname"
 postconf -e "smtpd_helo_required = yes"
 
 # Blacklists basées sur l'adresse du client
-- 
GitLab