mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-22 11:44:25 +02:00
Initial regexp-send-only alias implementation
This commit is contained in:
parent
f8b3f40276
commit
a479b2015d
7 changed files with 37 additions and 1 deletions
|
@ -14,7 +14,11 @@ function _setup_spoof_protection() {
|
|||
# NOTE: This file is always created at startup, it potentially has content added.
|
||||
# TODO: From section: "SPOOF_PROTECTION=1 handling for smtpd_sender_login_maps"
|
||||
# https://github.com/docker-mailserver/docker-mailserver/issues/2819#issue-1402114383
|
||||
if [[ -f /etc/postfix/regexp ]]; then
|
||||
if [[ -f /etc/postfix/regexp && -f /etc/postfix/regexp-send-only ]]; then
|
||||
postconf 'smtpd_sender_login_maps = unionmap:{ texthash:/etc/postfix/virtual, hash:/etc/aliases, pcre:/etc/postfix/maps/sender_login_maps.pcre, pcre:/etc/postfix/regexp, pcre:/etc/postfix/regexp-send-only }'
|
||||
elif [[ -f /etc/postfix/regexp-send-only ]]; then
|
||||
postconf 'smtpd_sender_login_maps = unionmap:{ texthash:/etc/postfix/virtual, hash:/etc/aliases, pcre:/etc/postfix/maps/sender_login_maps.pcre, pcre:/etc/postfix/regexp-send-only }'
|
||||
elif [[ -f /etc/postfix/regexp ]]; then
|
||||
postconf 'smtpd_sender_login_maps = unionmap:{ texthash:/etc/postfix/virtual, hash:/etc/aliases, pcre:/etc/postfix/maps/sender_login_maps.pcre, pcre:/etc/postfix/regexp }'
|
||||
else
|
||||
postconf 'smtpd_sender_login_maps = texthash:/etc/postfix/virtual, hash:/etc/aliases, pcre:/etc/postfix/maps/sender_login_maps.pcre'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue