#!/bin/sh chroot_resolv=$(postconf -h queue_directory)/etc/resolv.conf if grep -qs "# ppp temp entry" /etc/resolv.conf; then [ -f ${chroot_resolv} ] && cp -pf /etc/resolv.conf $chroot_resolv /usr/sbin/postfix reload 2>/dev/null fi /usr/sbin/postfix flush