#!/bin/sh # WORKAROUND: # postfix has to be aware of the DNS servers # without this workaround it uses 127.0.0.1:53 for some unknown (yet) reason... mkdir -v /var/spool/postfix/etc cp -v /etc/resolv.conf /var/spool/postfix/etc command_directory=$(postconf -h command_directory) daemon_directory=$($command_directory/postconf -h daemon_directory) # make consistency check $command_directory/postfix check 2>&1 # run Postfix exec $daemon_directory/master 2>&1