postfix/service/postfix/run
2016-06-19 23:55:47 +02:00

17 lines
466 B
Bash
Executable File

#!/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