- fixed crash of opendmarc

This commit is contained in:
bilak 2016-01-28 12:00:31 +01:00
parent 7fdcfe3f1b
commit 9e81e1cae7
2 changed files with 3 additions and 3 deletions

View File

@ -5,4 +5,4 @@ Syslog true
UMask 0002
UserID opendmarc:opendmarc
IgnoreHosts /etc/opendmarc/ignore.hosts
HistoryFile /var/run/opendmarc/opendmarc.dat
HistoryFile /var/run/opendmarc/opendmarc.dat

View File

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