Correction OpenDKIM
This commit is contained in:
parent
464fee0782
commit
d48d225bac
@ -235,12 +235,12 @@ then
|
||||
chown opendkim: /var/spool/postfix/opendkim
|
||||
usermod -aG opendkim postfix
|
||||
mkdir -p /etc/opendkim/keys
|
||||
touch /etc/opendkim/keys/TrustedHosts
|
||||
echo -e "127.0.0.1\nlocalhost\n::1\n*.$DOMAIN" >> /etc/opendkim/keys/TrustedHosts
|
||||
touch /etc/opendkim/keys/KeyTable
|
||||
echo -e "mail._domainkey.$DOMAIN $DOMAIN:mail:/etc/opendkim/keys/$DOMAIN/mail.private" >> /etc/opendkim/keys/KeyTable
|
||||
touch /etc/opendkim/keys/SigningTable
|
||||
echo -e "*@$DOMAIN mail._domainkey.$DOMAIN" >> /etc/opendkim/keys/SigningTable
|
||||
touch /etc/opendkim/TrustedHosts
|
||||
echo -e "127.0.0.1\nlocalhost\n::1\n*.$DOMAIN" >> /etc/opendkim/TrustedHosts
|
||||
touch /etc/opendkim/KeyTable
|
||||
echo -e "mail._domainkey.$DOMAIN $DOMAIN:mail:/etc/opendkim/keys/$DOMAIN/mail.private" >> /etc/opendkim/KeyTable
|
||||
touch /etc/opendkim/SigningTable
|
||||
echo -e "*@$DOMAIN mail._domainkey.$DOMAIN" >> /etc/opendkim/SigningTable
|
||||
mkdir -p /etc/opendkim/keys/$DOMAIN
|
||||
cd /etc/opendkim/keys/$DOMAIN
|
||||
opendkim-genkey -s mail -d $DOMAIN -b 4096
|
||||
@ -249,7 +249,7 @@ then
|
||||
echo "##############################"
|
||||
echo "# Configuration de OpenDMARC #"
|
||||
echo "##############################"
|
||||
echo "" > /etc/opendmarc.com
|
||||
echo "" > /etc/opendmarc.conf
|
||||
echo -e "AutoRestart\t\tYes\nAutoRestartRate\t\t10/1h\nUMask\t\t\t0002\nSyslog\t\t\ttrue\n\nAuthservID\t\t\"hostname.$DOMAIN\"\nTrustedAuthservIDs\t\"hostname.$DOMAIN\"\nIgnoreHosts\t\t/etc/opendkim/TrustedHosts\nIgnoreMailFrom\t\t\"$DOMAIN\"\nRejectFailures\t\tfalse\n\nUserID\t\t\topendmarc:opendmarc\nPidFile\t\t\t/var/run/opendmarc.pid\nSocket\t\t\tlocal:/var/spool/postfix/opendmarc/opendmarc.sock" >> /etc/opendmarc.conf
|
||||
mkdir /var/spool/postfix/opendmarc
|
||||
chown opendmarc: /var/spool/postfix/opendmarc
|
||||
|
Loading…
Reference in New Issue
Block a user