mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
commit
afffb8d151
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -69,5 +69,9 @@ assert_raises "docker exec mail_pop3 grep ': error:' /var/log/mail.log" 1
|
|||
# Testing OpenDKIM
|
||||
assert "docker exec mail cat /etc/opendkim/KeyTable | wc -l | sed -e 's/^[ \t]*//'" "2"
|
||||
|
||||
# Testing OpenDMARC
|
||||
assert "docker exec mail cat /etc/opendmarc.conf | grep ^AuthservID | wc -l" "1"
|
||||
assert "docker exec mail cat /etc/opendmarc.conf | grep ^TrustedAuthservID | wc -l" "1"
|
||||
|
||||
# Ending tests
|
||||
assert_end
|
||||
|
|
Loading…
Reference in a new issue