#!/usr/bin/execlineb -P

envfile /etc/s6-rc/config/postfix.conf
importas -sCuD "" Args Args

fdmove -c 2 1
foreground { if -n { test -e /etc/postfix/main.cf } bash -c "mkdir -p /etc/postfix && cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf" }
exec -c postfix ${Args}
