summaryrefslogtreecommitdiff
path: root/tools/mk_smtp_rules
blob: 85c3298aad536ce5d2e46db8558e78f060d9ed43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /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

<<EoF cat > $dest
10.:allow,RELAYCLIENT=""
127.0.0.:allow,RELAYCLIENT=""
:allow
EoF

fi