From dfd405e444c51fb3a846cfedb7de839d281180f6 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 3 Feb 2018 10:48:17 +0100 Subject: [PATCH] Build Postfix aliases database --- postfix/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postfix/Dockerfile b/postfix/Dockerfile index a65539d..d49f20a 100644 --- a/postfix/Dockerfile +++ b/postfix/Dockerfile @@ -7,6 +7,8 @@ RUN \ && adduser -S -u 587 -h /var/spool/postfix -s /bin/false -g postfix -G postfix postfix \ # Install Postfix && apk --no-cache add ca-certificates postfix s6 \ + # Build aliases database + && newaliases \ # Cleanup && sed -ir '/^(#.*)?$/d' /etc/postfix/aliases \ && rm -r /etc/postfix/access /etc/postfix/canonical /etc/postfix/dynamicmaps.cf* /etc/postfix/generic /etc/postfix/header_checks /etc/postfix/postfix-files.d /etc/postfix/relocated /etc/postfix/transport /etc/postfix/virtual