#!/bin/sh
CONFDIR=/etc/postfix
if [ ! -f "$CONFDIR"/postfix.key ] ; then
  openssl req -new -x509 -days 3650 -nodes -out /etc/postfix/postfix.crt \
    -subj '/C=US/ST=Oregon/L=Portland/CN=invalid.org' \
    -keyout /etc/postfix/postfix.key || exit 1
fi

exec /usr/libexec/postfix/master -d 2>&1
