summaryrefslogtreecommitdiff
path: root/emailwiz.sh
diff options
context:
space:
mode:
authorJames Puleo <james@jame.xyz>2023-04-30 23:58:38 -0400
committerJames Puleo <james@jame.xyz>2023-04-30 23:58:38 -0400
commit513c338a3f8c150c9c9aeda95da897ef7e1ae095 (patch)
tree658ea83fea91af36a0a5ee3c5b9edc10ee84eb44 /emailwiz.sh
parent5c7426b1c34334bec0c001a83494128944434474 (diff)
Use single-quotes to prevent interpolation when configuring Postfix
Unless you intend to interpolate, you should never use double-quotes. In this instance, it was actually impactful -- `$myhostname` and `$mydomain` were meant to be left as-is, referring to those Postfix config parameters, but were accidentally interpolated and subsequently generating nonsense (but not fatal) configuration.
Diffstat (limited to 'emailwiz.sh')
-rw-r--r--emailwiz.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 472a549..3f05b98 100644
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -57,7 +57,7 @@ echo "Configuring Postfix's main.cf..."
postconf -e "myhostname = $maildomain"
postconf -e "mail_name = $domain" #This is for the smtpd_banner
postconf -e "mydomain = $domain"
-postconf -e "mydestination = $myhostname, $mydomain, mail, localhost.localdomain, localhost, localhost.$mydomain"
+postconf -e 'mydestination = $myhostname, $mydomain, mail, localhost.localdomain, localhost, localhost.$mydomain'
# Change the cert/key files to the default locations of the Let's Encrypt cert/key
postconf -e "smtpd_tls_key_file=$certdir/privkey.pem"