You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
561 B
19 lines
561 B
#!/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...
|
|
[ -d /var/spool/postfix/etc ] || mkdir -v /var/spool/postfix/etc
|
|
|
|
diff -q /var/spool/postfix/etc/resolv.conf /etc/resolv.conf
|
|
[ $? -eq 0 ] || cp -v /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
|
|
|
|
# run postfix consistency check and exit if failed
|
|
set -e
|
|
postfix check 2>&1
|
|
|
|
# run Postfix
|
|
# exec /usr/lib/postfix/master 2>&1
|
|
# after postfix 3.3.0 use postfix start-fg command
|
|
exec postfix start-fg 2>&1
|