mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 17:44:49 +02:00
- added DMARC (opendmarc) support with basic setup
This commit is contained in:
parent
364748ab83
commit
07ec823f45
6 changed files with 42 additions and 3 deletions
|
@ -97,6 +97,20 @@ chown -R opendkim:opendkim /etc/opendkim/
|
|||
# And make sure permissions are right
|
||||
chmod -R 0700 /etc/opendkim/keys/
|
||||
|
||||
# DMARC
|
||||
# if ther is no AuthservID create it
|
||||
if [ `cat /etc/opendmarc.conf | grep AuthservID | wc -l` -gt 0 ]; then
|
||||
echo "AuthservID $hostname" >> /etc/opendmarc.conf
|
||||
fi
|
||||
if [ `cat /etc/opendmarc.conf | grep TrustedAuthservIDs | wc -l` -gt 0 ]; then
|
||||
echo "TrustedAuthservIDs $hostname" >> /etc/opendmarc.conf
|
||||
fi
|
||||
if [ ! -f "/etc/opendmarc/ignore.hosts" ]; then
|
||||
mkdir -p /etc/opendmarc/
|
||||
echo "localhost" >> /etc/opendmarc/ignore.hosts
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# SSL Configuration
|
||||
case $DMS_SSL in
|
||||
|
@ -188,6 +202,7 @@ fi
|
|||
/etc/init.d/clamav-daemon start
|
||||
/etc/init.d/amavis start
|
||||
/etc/init.d/opendkim start
|
||||
/etc/init.d/opendmarc start
|
||||
/etc/init.d/postfix start
|
||||
|
||||
echo "Listing SASL users"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue