#! /bin/sh # update postfix copy of resolv.conf; only default instance is handled file=/etc/resolv.conf queue=/var/spool/postfix if [ -d $queue${file%/*} ] && [ -f /etc/postfix/main.cf ] then # just refresh, glibc pick it up automatically [ ! -f $file ] && rm -f $queue$file || cp -pLu $file $queue$file fi