diff --git a/postfix/defaults/main.yml b/postfix/defaults/main.yml index 8bd15a86..55ab72cd 100644 --- a/postfix/defaults/main.yml +++ b/postfix/defaults/main.yml @@ -1,5 +1,5 @@ --- -postfix_hostname: "{{ evolinux_fqdn }}" +postfix_hostname: "{{ ansible_fqdn }}" postfix_force_main_cf: False postfix_packmail: False -postfix_slow_transport_include: False +postfix_slow_transport_include: "{{ postfix_packmail }}" diff --git a/postfix/templates/packmail_main.cf.j2 b/postfix/templates/packmail_main.cf.j2 index 30848c8c..0d80cf00 100644 --- a/postfix/templates/packmail_main.cf.j2 +++ b/postfix/templates/packmail_main.cf.j2 @@ -66,7 +66,7 @@ smtpd_banner = $myhostname ESMTP mail server # Indique le nom d'hote pleinement qualifie ou se trouve postfix [OBLIGATOIRE] #par defaut, = [retour de la commande Unix hostname] -myhostname = {{ postfix_hostname }} +myhostname = {{ ansible_fqdn }} # Variable indiquant le domaine dans lequel se trouve la machine #par defaut, = [partie domain de la variable $myhostname]