From dad17776e4864442989550267b2ac5e9476b8c33 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 20 Jun 2020 13:02:01 -0400 Subject: silence desired errors --- emailwiz.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'emailwiz.sh') diff --git a/emailwiz.sh b/emailwiz.sh index a032d41..582fa0f 100755 --- a/emailwiz.sh +++ b/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 -- cgit v1.2.3-70-g09d2