From 9e81e1cae763dd16095d8541cba30fa08423008c Mon Sep 17 00:00:00 2001 From: bilak Date: Thu, 28 Jan 2016 12:00:31 +0100 Subject: [PATCH] - fixed crash of opendmarc --- postfix/opendmarc.conf | 2 +- start-mailserver.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/postfix/opendmarc.conf b/postfix/opendmarc.conf index 89bce44d..8ff5ad16 100644 --- a/postfix/opendmarc.conf +++ b/postfix/opendmarc.conf @@ -5,4 +5,4 @@ Syslog true UMask 0002 UserID opendmarc:opendmarc IgnoreHosts /etc/opendmarc/ignore.hosts -HistoryFile /var/run/opendmarc/opendmarc.dat \ No newline at end of file +HistoryFile /var/run/opendmarc/opendmarc.dat diff --git a/start-mailserver.sh b/start-mailserver.sh index e5f25489..4da87c74 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -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/