3 # This file sets up the qmail config files on a RedHat system using
4 # default values gleaned from the system itself. This script is
5 # intended to replace the "config" script included with qmail itself.
9 cd ${1:-/var/qmail/control}
13 if ! [ -e "$file" -a -s "$file" ]; then
21 hostname
=`/bin/hostname -f`
22 domainname
=`/bin/domainname -d`
24 echo $hostname | makefile me
25 echo $domainname | makefile defaultdomain
26 echo $domainname | makefile defaulthost
33 if str
=`ipcalc --hostname $ip 2>/dev/null`; then
39 ) |
sort -u | makefile locals
41 cat locals | makefile rcpthosts