Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN set -x \
# Install packages
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends postfix mailutils busybox-syslogd opendkim opendkim-tools libsasl2-modules curl ca-certificates procps \
&& apt-get install -y --no-install-recommends postfix postfix-pcre mailutils busybox-syslogd opendkim opendkim-tools libsasl2-modules curl ca-certificates procps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
;
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Relay host parameters:
Virtual alias map:

- `VIRTUAL_ALIASMAP` - virtual alias map in format: `VIRTUAL_ALIASMAP=alias@domain1.com:user@domain2.com,no-reply@somedomain.com:devnull`
- `VIRTUAL_ALIASMAP_PCRE` - If "true" allows specifying virtual alias map as pcre_table

TLS parameters:

Expand Down
6 changes: 5 additions & 1 deletion s6/postfix/run
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ if [ -n "${VIRTUAL_ALIASMAP}" ]; then
echo "${ALIAS} ${DST}" >> /etc/postfix/virtual
done
postmap /etc/postfix/virtual
postconf -e virtual_alias_maps=hash:/etc/postfix/virtual
if [[ "${VIRTUAL_ALIASMAP_PCRE}" == "true" ]]; then
postconf -e virtual_alias_maps=pcre:/etc/postfix/virtual
else
postconf -e virtual_alias_maps=hash:/etc/postfix/virtual
fi
fi

# exit cleanly
Expand Down