1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-07 23:03:10 +02:00

- improved searching strings inside file (seraching for whole words)

This commit is contained in:
bilak
2016-01-26 19:03:12 +01:00
parent b73e602e3e
commit cc7270a22b

View File

@ -99,10 +99,10 @@ chmod -R 0700 /etc/opendkim/keys/
# DMARC
# if ther is no AuthservID create it
if [ `cat /etc/opendmarc.conf | grep AuthservID | wc -l` -eq 0 ]; then
if [ `cat /etc/opendmarc.conf | grep -w AuthservID | wc -l` -eq 0 ]; then
echo "AuthservID $hostname" >> /etc/opendmarc.conf
fi
if [ `cat /etc/opendmarc.conf | grep TrustedAuthservIDs | wc -l` -eq 0 ]; then
if [ `cat /etc/opendmarc.conf | grep -w TrustedAuthservIDs | wc -l` -eq 0 ]; then
echo "TrustedAuthservIDs $hostname" >> /etc/opendmarc.conf
fi
if [ ! -f "/etc/opendmarc/ignore.hosts" ]; then