Browse Source

fix added postfix to opendkim group

Bachir Soussi Chiadmi 5 years ago
parent
commit
f6fb1ac6ec
1 changed files with 7 additions and 2 deletions
  1. 7 2
      bin/email.sh

+ 7 - 2
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"