mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2024-10-18 10:18:07 +02:00
getmail: remove temp file usage (#3920)
This commit is contained in:
parent
3649699197
commit
267fc552d2
@ -18,10 +18,10 @@ function _setup_getmail() {
|
||||
CONFIGS=1
|
||||
ID=$(cut -d '-' -f 3 <<< "${FILE}" | cut -d '.' -f 1)
|
||||
local GETMAIL_CONFIG="${GETMAILRC}/getmailrc-${ID}"
|
||||
cat /etc/getmailrc_general >"${GETMAIL_CONFIG}.tmp"
|
||||
echo -e "message_log = /var/log/mail/getmail-${ID}.log\n" >>"${GETMAIL_CONFIG}.tmp"
|
||||
cat "${GETMAIL_CONFIG}.tmp" "${FILE}" >"${GETMAIL_CONFIG}"
|
||||
rm "${GETMAIL_CONFIG}.tmp"
|
||||
|
||||
cat /etc/getmailrc_general >"${GETMAIL_CONFIG}"
|
||||
echo -e "message_log = /var/log/mail/getmail-${ID}.log\n" >>"${GETMAIL_CONFIG}"
|
||||
cat "${FILE}" >>"${GETMAIL_CONFIG}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -128,7 +128,7 @@ expand_keys = true;
|
||||
|
||||
EOF
|
||||
|
||||
# We do not use `{{HOSTNAME}}` but only `{{COMPRES}}` to better support
|
||||
# We do not use `{{HOSTNAME}}` but only `{{COMPRESS}}` to better support
|
||||
# Kubernetes, see https://github.com/orgs/docker-mailserver/discussions/3922
|
||||
cat >"${RSPAMD_LOCAL_D}/history_redis.conf" << "EOF"
|
||||
# documentation: https://rspamd.com/doc/modules/history_redis.html
|
||||
|
Loading…
Reference in New Issue
Block a user