From f6fb1ac6ec5e2a5ccb722ed6516f9b18f5ed8876 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 19 Apr 2019 18:25:05 +0200 Subject: [PATCH] fix added postfix to opendkim group --- bin/email.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/email.sh b/bin/email.sh index c024a5b..30a8fd5 100755 --- a/bin/email.sh +++ b/bin/email.sh @@ -64,9 +64,14 @@ echo -e "smtpd_milters = unix:/run/opendkim/opendkim.sock\nnon_smtpd_milters = u rc-update add opendkim service opendkim start + +usermod -a -G opendkim postfix + service postfix restart -echo "please create a DKIM entry in your dns zone : mail._domainkey.$HOSTNAME \n" -echo "your public key is : \n" + +echo -e "DKIM" +echo -e "please create a DKIM entry in your dns zone : mail._domainkey.$HOSTNAME \n" +echo -e "your public key is : \n" cat /etc/opendkim/keys/"$HOSTNAME".dkim.txt echo -e "SPF"