/etc/resolvconf/update-libc.d/postfix - Ubuntu 18.04 LTS (Bionic Beaver)

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

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.
/usr/sbin/service postfix status >/dev/null 2>&1 || exit 0

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

exit 0

    
  

Config Details

Location
/etc/resolvconf/update-libc.d/postfix
Operating system
Ubuntu 18.04 LTS (Bionic Beaver)
Length
13 lines
MD5 checksum
0eb42cb5df572c0af15ea8d29340d107

Usage

Download the raw file with wget or curl

Wget

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

cURL

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