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