From a8273f864216dcae78873fb225604f3275cc63c9 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 28 Jun 2020 12:05:28 +0200 Subject: [PATCH] cahnge notification mail ssmtp --- roles/ssmtp/defaults/main.yml | 2 +- roles/ssmtp/templates/ssmtp_conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ssmtp/defaults/main.yml b/roles/ssmtp/defaults/main.yml index d29b8e9..6d7bfc7 100644 --- a/roles/ssmtp/defaults/main.yml +++ b/roles/ssmtp/defaults/main.yml @@ -1,4 +1,4 @@ -notification_mail: vincent@ducamps.win +notification_mail: "{{inventory_hostname}}@ducamps.win" ssmtp_mailhub: smtp.ducamps.win:587 ssmtp_hostname: ducamps.win ssmtp_auth_user: vincent@ducamps.win diff --git a/roles/ssmtp/templates/ssmtp_conf.j2 b/roles/ssmtp/templates/ssmtp_conf.j2 index e04b29d..c4d14bd 100644 --- a/roles/ssmtp/templates/ssmtp_conf.j2 +++ b/roles/ssmtp/templates/ssmtp_conf.j2 @@ -1,6 +1,6 @@ # ---- basic config -root={{notification_mail}} +root={{ssmtp_auth_user}} AuthMethod=LOGIN UseSTARTTLS=Yes UseTLS=NO