Initial regexp-send-only alias implementation

This commit is contained in:
Noah Overcash 2024-06-02 13:55:56 -04:00
parent f8b3f40276
commit a479b2015d
No known key found for this signature in database
7 changed files with 37 additions and 1 deletions

View file

@ -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'

View file

@ -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"