Merge remote-tracking branch 'github/master'

This commit is contained in:
Michel Roux 2016-10-10 16:29:49 +02:00
commit 7f72dffec4
2 changed files with 9 additions and 2 deletions

9
commands/exim_showdns.sh Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
DNS=$(openssl rsa -in /etc/exim4/dkim.key -pubout)
DNS=$(echo ${DNS} | sed "s/ //g" | sed "s/.*Y-----\(.*\)-----E.*/\1/g")
echo -e '\t\t10800 IN MX 10 <domain>'
echo -e '\t\t10800 IN TXT "v=spf1 a -all"'
echo -e '_domainkey\t10800 IN TXT "o=~; r=postmaster@<domain>"'
echo -e "x._domainkey\t10800 IN TXT \"v=DKIM1; k=rsa; p=${DNS}\""
echo -e '_dmarc\t\t10800 IN TXT "v=DMARC1; p=quarantine"'

View File

@ -53,9 +53,7 @@ install_clamav() {
install_restart() {
service courier-authdeamon restart
service courier-imap restart
service courier-pop restart
service courier-imap-ssl restart
service courier-pop-ssl restart
service exim4 restart
}