diff --git a/postfix/defaults/main.yml b/postfix/defaults/main.yml
index 1f89644c138ebe8c8ebcb76e2a9ef63141314368..b07efb5fc3c5148e6b4d4f438954cc90d4381311 100644
--- a/postfix/defaults/main.yml
+++ b/postfix/defaults/main.yml
@@ -3,6 +3,7 @@
 postfix_domains:
   - "{{ domain }}"
 postfix_virtual_domains: []
+postfix_mailname: "{{ domain }}"
 
 postfix_tls_cert: /etc/ssl/private/fullchain.pem
 postfix_tls_key: /etc/ssl/private/privkey.pem
diff --git a/postfix/templates/mailname.j2 b/postfix/templates/mailname.j2
index 81008bac28684edb06528802426d0c82acdeb96d..422f887bd470508d9d44c5137ccd5a76c9100ce7 100644
--- a/postfix/templates/mailname.j2
+++ b/postfix/templates/mailname.j2
@@ -1 +1 @@
-{{ domain }}
+{{ postfix_mailname }}