scripts: misc improvements (#3281)

* corrected typo
* corrected indentation
This commit is contained in:
Georg Lauterbach 2023-04-23 12:16:53 +02:00 committed by GitHub
parent 1c9ed6ce32
commit 88cd244e47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -98,12 +98,11 @@ policyd-spf unix - n n - 0 spawn
user=policyd-spf argv=/usr/bin/policyd-spf user=policyd-spf argv=/usr/bin/policyd-spf
EOF EOF
# SPF policy settings
postconf 'policyd-spf_time_limit = 3600'
sedfile -i -E \ sedfile -i -E \
's|^(smtpd_recipient_restrictions.*reject_unauth_destination)(.*)|\1, check_policy_service unix:private/policyd-spf\2|' \ 's|^(smtpd_recipient_restrictions.*reject_unauth_destination)(.*)|\1, check_policy_service unix:private/policyd-spf\2|' \
/etc/postfix/main.cf /etc/postfix/main.cf
# SPF policy settings
postconf 'policyd-spf_time_limit = 3600'
else else
_log 'debug' 'Disabling policyd-spf' _log 'debug' 'Disabling policyd-spf'
fi fi

View file

@ -52,7 +52,7 @@ function __setup__security__postgrey
cp -f /tmp/docker-mailserver/whitelist_recipients /etc/postgrey/whitelist_recipients cp -f /tmp/docker-mailserver/whitelist_recipients /etc/postgrey/whitelist_recipients
fi fi
else else
_log 'debug' 'Postscreen is disabled' _log 'debug' 'Postgrey is disabled'
fi fi
} }