#! /bin/bash # if /etc/tcpserver/smtp.rules does not already exist, # create it with some reasonable defaults dest=/etc/tcpserver/smtp.rules install -d $( dirname $dest ) if ! test -r $dest ; then < $dest 10.:allow,RELAYCLIENT="" 127.0.0.:allow,RELAYCLIENT="" :allow EoF fi