blob: eb241b0d9fb2ea730a81183d53b36ca0ccc39e7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#! /bin/bash
# if /etc/tcpserver/smtp.rules does not already exist,
# create it with some reasonable defaults
dest=$1
: ${dest:=/etc/tcpserver/smtp.rules}
install -d $( dirname $dest )
if test -r $dest ; then
1>&2 echo "Oops, destination '$dest' already exists."
exit 1
fi
<<EoF cat > $dest
10.:allow,RELAYCLIENT=""
127.0.0.:allow,RELAYCLIENT=""
:allow
EoF
|