File: smtp-refuserconfig

package info (click to toggle)
smtp-refuser 1.0.5.0.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 84 kB
  • ctags: 18
  • sloc: ansic: 209; sh: 70; makefile: 43
file content (23 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

TMPFILE=`tempfile` || exit 1

echo "What is the name of the person who handles spam blocking?"
read NAME
echo $NAME > $TMPFILE

echo "What is that person's phone number?"
read PHONE
echo $PHONE >> $TMPFILE

mv $TMPFILE /etc/smtp-refuser.conf

echo You must also have rules to block specific sites in your
echo tcpd hosts.allow file.  Please see the example file in
echo /usr/share/doc/smtp-refuser/examples/.
echo ""
echo Press enter to continue...
read JUNK

unset NAME PHONE JUNK