diff --git a/software/postfix/etc/main.cf.jinja2 b/software/postfix/etc/main.cf.jinja2
index 21c1d2929c190ee1b89195ad8f0452a452334a72..9ff05ae1c99c927b7bd69fc6d6a8063593a0d1cf 100644
--- a/software/postfix/etc/main.cf.jinja2
+++ b/software/postfix/etc/main.cf.jinja2
@@ -79,7 +79,7 @@ mail_owner = {{ mail_owner }}
 #
 #myhostname = host.domain.tld
 #myhostname = virtual.domain.tld
-myhostname = {{ mydomain }}
+myhostname = {{ myhostname }}
 
 # The mydomain parameter specifies the local internet domain name.
 # The default is to use $myhostname minus the first component.