mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-23 12:16:01 +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
|
@ -30,6 +30,17 @@ function _handle_postfix_regexp_config() {
|
|||
fi
|
||||
}
|
||||
|
||||
function _handle_postfix_regexp_send_only_config() {
|
||||
: >/etc/postfix/regexp-send-only
|
||||
|
||||
if [[ -f /tmp/docker-mailserver/postfix-regexp-send-only.cf ]]; then
|
||||
_log 'trace' "Adding regexp-send-only alias file postfix-regexp-send-only.cf"
|
||||
|
||||
cp -f /tmp/docker-mailserver/postfix-regexp-send-only.cf /etc/postfix/regexp-send-only
|
||||
# we specifically do NOT append this to virtual_alias_maps
|
||||
fi
|
||||
}
|
||||
|
||||
function _handle_postfix_aliases_config() {
|
||||
_log 'trace' 'Configuring root alias'
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ function _monitored_files_checksums() {
|
|||
"${DMS_DIR}/postfix-accounts.cf"
|
||||
"${DMS_DIR}/postfix-virtual.cf"
|
||||
"${DMS_DIR}/postfix-regexp.cf"
|
||||
"${DMS_DIR}/postfix-regexp-send-only.cf"
|
||||
"${DMS_DIR}/postfix-aliases.cf"
|
||||
"${DMS_DIR}/postfix-relaymap.cf"
|
||||
"${DMS_DIR}/postfix-sasl-password.cf"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue