postfix can't handle multi-instance configurations
When attempting to setup postfix using multi-instances as described at http://www.postfix.org/MULTI\_INSTANCE\_README.html I ran into a fatal error as daemon_directory and shlib_directory both point to /usr/lib/postfix which Wietse Venema has stated should not be done but appears to be done as Linux does not use /usr/libexec. Debian packing solution to this has been to build with daemon_directory set to /usr/lib/postfix/sbin while leavin shlib_directory set to /usr/lib/postfix.
Error can be reproduced by the following:
FROM alpine:edge
RUN set -ex && \
apk upgrade —update && \
apk add —no-cache postfix && \
postconf -e smtputf8_enable=no && \
postmulti -e init
Which will generate a non-zero exit code of 1. Running ‘docker run -it —rm alpine:edge sh’ and then installing postfix and running the postmulti command manually you receive the following error message:
postmulti: fatal: instance /etc/postfix, shlib_directory=/usr/lib/postfix conflicts with instance /etc/postfix, daemon_directory=/usr/lib/postfix
I’ve confirmed the issue affects all available Alpine versions of postfix 3.x that area available.
(from redmine: issue id 6764, created on 2017-01-27)