From 3f2c6cdce983ad199b197518d2f7ca559236b0bb Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 10 Jan 2024 19:34:04 +0100 Subject: [PATCH] Change the values of mydomain and mydestination --- user-patches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user-patches.sh b/user-patches.sh index 00b70e9..6052dd3 100755 --- a/user-patches.sh +++ b/user-patches.sh @@ -21,8 +21,8 @@ sed -i '/^mydestination =/d' /etc/postfix/main.cf # Delete this value to default as empty default sed -i '/^smtpd_sasl_local_domain =/d' /etc/postfix/main.cf -printf '\nmydomain = %s\n' "localhost" >> /etc/postfix/main.cf -printf '\nmydestination = %s\n' "localhost" >> /etc/postfix/main.cf +printf '\nmydomain = %s\n' '$myhostname' >> /etc/postfix/main.cf +printf '\nmydestination = %s\n' '$myhostname, localhost' >> /etc/postfix/main.cf # For: https://github.com/GermanCoding/Roundcube_TLS_Icon printf '\nsmtpd_tls_received_header = yes\n' "localhost" >> /etc/postfix/main.cf