From 1deee8ddfe554f4d9e03c05096c70f42f65e2768 Mon Sep 17 00:00:00 2001 From: Tunui Franken Date: Thu, 25 Jul 2024 16:20:36 +0200 Subject: [PATCH] Add $myhostname to mydestination to allow local emails --- roles/mailserver_postfix/templates/main.cf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mailserver_postfix/templates/main.cf.j2 b/roles/mailserver_postfix/templates/main.cf.j2 index dcaa844..7fdad70 100644 --- a/roles/mailserver_postfix/templates/main.cf.j2 +++ b/roles/mailserver_postfix/templates/main.cf.j2 @@ -17,7 +17,7 @@ compatibility_level = 3.6 myhostname = {{ ansible_hostname }} alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases -mydestination = localhost +mydestination = localhost $myhostname relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0