瀏覽代碼

silence desired errors

pull/22/head
Luke Smith 4 年之前
父節點
當前提交
dad17776e4
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4C50B54A911F6252
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      emailwiz.sh

+ 4
- 4
emailwiz.sh 查看文件

@@ -229,19 +229,19 @@ chmod g+r /etc/postfix/dkim/*

# Generate the OpenDKIM info:
echo "Configuring OpenDKIM..."
grep -q "$domain" /etc/postfix/dkim/keytable ||
grep -q "$domain" /etc/postfix/dkim/keytable 2>/dev/null ||
echo "$subdom._domainkey.$domain $domain:mail:/etc/postfix/dkim/mail.private" >> /etc/postfix/dkim/keytable

grep -q "$domain" /etc/postfix/dkim/signingtable ||
grep -q "$domain" /etc/postfix/dkim/signingtable 2>/dev/null ||
echo "*@$domain $subdom._domainkey.$domain" >> /etc/postfix/dkim/signingtable

grep -q "127.0.0.1" /etc/postfix/dkim/trustedhosts ||
grep -q "127.0.0.1" /etc/postfix/dkim/trustedhosts 2>/dev/null ||
echo "127.0.0.1
10.1.0.0/16
1.2.3.4/24" >> /etc/postfix/dkim/trustedhosts

# ...and source it from opendkim.conf
grep -q "^KeyTable" /etc/opendkim.conf || echo "KeyTable file:/etc/postfix/dkim/keytable
grep -q "^KeyTable" /etc/opendkim.conf 2>/dev/null || echo "KeyTable file:/etc/postfix/dkim/keytable
SigningTable refile:/etc/postfix/dkim/signingtable
InternalHosts refile:/etc/postfix/dkim/trustedhosts" >> /etc/opendkim.conf



Loading…
取消
儲存