mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-11-17 22:58:46 +08:00
Upgrade: improvements to migrations
This commit is contained in:
parent
77cee99643
commit
c6e9a2e4a9
2 changed files with 5 additions and 2 deletions
|
|
@ -25,7 +25,8 @@ RUN true && \
|
|||
apk add --no-cache postfix && \
|
||||
apk add --no-cache opendkim && \
|
||||
apk add --no-cache --upgrade ca-certificates tzdata supervisor rsyslog musl musl-utils bash opendkim-utils libcurl jsoncpp lmdb && \
|
||||
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)
|
||||
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true) && \
|
||||
cp -r /etc/postfix /etc/postfix.template
|
||||
|
||||
# Copy SASL-XOAUTH2 plugin
|
||||
COPY --from=build /sasl-xoauth2/build/src/libsasl-xoauth2.so /usr/lib/sasl2/
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ set -e
|
|||
announce_startup # Print startup banner
|
||||
setup_timezone # Check if we need to configure the container timezone
|
||||
rsyslog_log_format # Setup rsyslog output format
|
||||
reown_folders # Make and reown postfix folders
|
||||
setup_conf # Copy over files from /etc/postfix.template to /etc/postfix, if the user mounted the folder manually
|
||||
reown_folders # Make and reown /var/spool/postfix/ folders
|
||||
postfix_upgrade_conf # Upgrade old coniguration, replace "hash:" and "btree:" databases to "lmdb:"
|
||||
postfix_disable_utf8 # Disable SMTPUTF8, because libraries (ICU) are missing in alpine
|
||||
postfix_create_aliases # Update aliases database. It's not used, but postfix complains if the .db file is missing
|
||||
postfix_disable_local_mail_delivery # Disable local mail delivery
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue