emailwiz

Script for setting up an email server automatically
Log | Files | Refs | README

commit 983b99e86d9865e6ec82856f192461cbbdde56a5
parent 0bdbbbef6d5fbdb9b6283b8601fcdcb346af5820
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 11 Oct 2020 14:25:47 -0400

fix #72

Diffstat:
Memailwiz.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emailwiz.sh b/emailwiz.sh @@ -274,7 +274,7 @@ for x in dovecot postfix opendkim spamassassin; do service "$x" restart && printf " ...done\\n" done -pval="$(tr -d "\n" </etc/postfix/dkim/mail.txt | sed "s/k=rsa.* \"p=/k=rsa; p=/;s/\"\s*\"//;s/\"\s*).*//" | grep -o "p=.*")" +pval="$(tr -d "\n" </etc/postfix/dkim/$subdom.txt | sed "s/k=rsa.* \"p=/k=rsa; p=/;s/\"\s*\"//;s/\"\s*).*//" | grep -o "p=.*")" dkimentry="$subdom._domainkey.$domain TXT v=DKIM1; k=rsa; $pval" dmarcentry="_dmarc.$domain TXT v=DMARC1; p=none; rua=mailto:dmarc@$domain; fo=1" spfentry="@ TXT v=spf1 mx a:$maildomain -all"