mirror of
https://github.com/tomav/docker-mailserver
synced 2025-09-01 23:05:26 +00:00
- fixed crash of opendmarc
This commit is contained in:
@@ -5,4 +5,4 @@ Syslog true
|
|||||||
UMask 0002
|
UMask 0002
|
||||||
UserID opendmarc:opendmarc
|
UserID opendmarc:opendmarc
|
||||||
IgnoreHosts /etc/opendmarc/ignore.hosts
|
IgnoreHosts /etc/opendmarc/ignore.hosts
|
||||||
HistoryFile /var/run/opendmarc/opendmarc.dat
|
HistoryFile /var/run/opendmarc/opendmarc.dat
|
||||||
|
@@ -100,10 +100,10 @@ chmod -R 0700 /etc/opendkim/keys/
|
|||||||
# DMARC
|
# DMARC
|
||||||
# if ther is no AuthservID create it
|
# if ther is no AuthservID create it
|
||||||
if [ `cat /etc/opendmarc.conf | grep -w 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
|
echo "AuthservID $(hostname)" >> /etc/opendmarc.conf
|
||||||
fi
|
fi
|
||||||
if [ `cat /etc/opendmarc.conf | grep -w 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
|
echo "TrustedAuthservIDs $(hostname)" >> /etc/opendmarc.conf
|
||||||
fi
|
fi
|
||||||
if [ ! -f "/etc/opendmarc/ignore.hosts" ]; then
|
if [ ! -f "/etc/opendmarc/ignore.hosts" ]; then
|
||||||
mkdir -p /etc/opendmarc/
|
mkdir -p /etc/opendmarc/
|
||||||
|
Reference in New Issue
Block a user