Merge branch 'master' into rspamd/use-sieve-for-subject-rewrite
This commit is contained in:
commit
d77c6a6741
|
@ -51,6 +51,7 @@ The most noteworthy change of this release is the update of the container's base
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
- DMS config files that are parsed line by line are now more robust to parse by detecting and fixing line-endings ([#3819](https://github.com/docker-mailserver/docker-mailserver/pull/3819))
|
- DMS config files that are parsed line by line are now more robust to parse by detecting and fixing line-endings ([#3819](https://github.com/docker-mailserver/docker-mailserver/pull/3819))
|
||||||
|
- Variables related to Rspamd are declared as `readonly`, which would cause warnings in the log when being re-declared; we now guard against this issue ([#3837](https://github.com/docker-mailserver/docker-mailserver/pull/3837))
|
||||||
|
|
||||||
## [v13.3.1](https://github.com/docker-mailserver/docker-mailserver/releases/tag/v13.3.1)
|
## [v13.3.1](https://github.com/docker-mailserver/docker-mailserver/releases/tag/v13.3.1)
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,10 @@ function __do_as_rspamd_user() {
|
||||||
# they cannot be modified. Use this function when you require common directory
|
# they cannot be modified. Use this function when you require common directory
|
||||||
# names, file names, etc.
|
# names, file names, etc.
|
||||||
function _rspamd_get_envs() {
|
function _rspamd_get_envs() {
|
||||||
|
# If the variables are already set, we cannot set them again as they are declared
|
||||||
|
# with `readonly`. Checking whether one is declared suffices, because either all
|
||||||
|
# are declared at once, or none.
|
||||||
|
if [[ ! -v RSPAMD_LOCAL_D ]]; then
|
||||||
readonly RSPAMD_LOCAL_D='/etc/rspamd/local.d'
|
readonly RSPAMD_LOCAL_D='/etc/rspamd/local.d'
|
||||||
readonly RSPAMD_OVERRIDE_D='/etc/rspamd/override.d'
|
readonly RSPAMD_OVERRIDE_D='/etc/rspamd/override.d'
|
||||||
|
|
||||||
|
@ -23,6 +27,7 @@ function _rspamd_get_envs() {
|
||||||
readonly RSPAMD_DMS_OVERRIDE_D="${RSPAMD_DMS_D}/override.d"
|
readonly RSPAMD_DMS_OVERRIDE_D="${RSPAMD_DMS_D}/override.d"
|
||||||
|
|
||||||
readonly RSPAMD_DMS_CUSTOM_COMMANDS_F="${RSPAMD_DMS_D}/custom-commands.conf"
|
readonly RSPAMD_DMS_CUSTOM_COMMANDS_F="${RSPAMD_DMS_D}/custom-commands.conf"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Parses `RSPAMD_DMS_CUSTOM_COMMANDS_F` and executed the directives given by the file.
|
# Parses `RSPAMD_DMS_CUSTOM_COMMANDS_F` and executed the directives given by the file.
|
||||||
|
|
|
@ -95,8 +95,9 @@ function _setup_apply_fixes_after_configuration() {
|
||||||
_log 'debug' 'Removing files and directories from older versions'
|
_log 'debug' 'Removing files and directories from older versions'
|
||||||
rm -rf /var/mail-state/spool-postfix/{dev,etc,lib,pid,usr,private/auth}
|
rm -rf /var/mail-state/spool-postfix/{dev,etc,lib,pid,usr,private/auth}
|
||||||
|
|
||||||
|
_rspamd_get_envs
|
||||||
# /tmp/docker-mailserver/rspamd/dkim
|
# /tmp/docker-mailserver/rspamd/dkim
|
||||||
_log 'debug' "Ensuring ${RSPAMD_DMS_DKIM_D} is owned by '_rspamd:_rspamd'"
|
_log 'debug' "Ensuring '${RSPAMD_DMS_DKIM_D}' is owned by '_rspamd:_rspamd'"
|
||||||
chown -R _rspamd:_rspamd "${RSPAMD_DMS_DKIM_D}"
|
chown -R _rspamd:_rspamd "${RSPAMD_DMS_DKIM_D}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue