/etc/resolvconf/update-libc.d/postfix - Debian GNU/Linux 8 (jessie)

This is the default example configuration of postfix provided by Postfix. This config file was generated by Postfix running on Debian 8.

It is located under: /etc/resolvconf/update-libc.d/postfix

    #!/bin/sh -e

# we only need to copy this in if the service is already running.
# if it's not running, it'll get picked up by the init script on start.
/etc/init.d/postfix status >/dev/null 2>&1 || exit 0

QUEUEDIR="$(/usr/sbin/postconf -h queue_directory 2>/dev/null || true)"
if [ -n "$QUEUEDIR" ]; then
    cp /etc/resolv.conf ${QUEUEDIR}/etc/resolv.conf
    /etc/init.d/postfix reload >/dev/null 2>&1 || exit 0
fi

exit 0

    
  

Config Details

Location
/etc/resolvconf/update-libc.d/postfix
Operating system
Debian GNU/Linux 8 (jessie)
Length
13 lines
MD5 checksum
a0548352443659052ed16d4ae7314506

Usage

Download the raw file with wget or curl

Wget

wget -O postfix.example http://exampleconfig.com/static/raw/postfix/debian8/etc/resolvconf/update-libc.d/postfix

cURL

curl http://exampleconfig.com/static/raw/postfix/debian8/etc/resolvconf/update-libc.d/postfix > postfix.example