diff options
author | Anders Nordby <anders@FreeBSD.org> | 2005-03-20 21:35:13 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2005-03-20 21:35:13 +0000 |
commit | 6e86014633f5c824341d88e9d116988c2e059e4d (patch) | |
tree | 7456e54690c8e401bc149de74e3c7a38033d5553 /mail/smtptrapd/files/smtptrapd.sh | |
parent | Fix build for 4.x. (diff) |
Add smtptrapd, a tool/trap to keep spammers who try to abuse MX with the
highest PRI away.
Notes
Notes:
svn path=/head/; revision=131789
Diffstat (limited to 'mail/smtptrapd/files/smtptrapd.sh')
-rw-r--r-- | mail/smtptrapd/files/smtptrapd.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/smtptrapd/files/smtptrapd.sh b/mail/smtptrapd/files/smtptrapd.sh new file mode 100644 index 000000000000..44b2f6dec8e4 --- /dev/null +++ b/mail/smtptrapd/files/smtptrapd.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: smtptrapd +# REQUIRE: LOGIN +# BEFORE: mail +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable smtptrapd: +# +#smtptrapd_enable="YES" +# +# Run smtptrapd -h for flags +# + +. %%RC_SUBR%% + +name=smtptrapd +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/smtptrapd + +smtptrapd_enable=${smtptrapd_enable:-"NO"} +smtptrapd_flags=${smtptrapd_flags:-"-c /var/run/smtptrapd-root"} + +load_rc_config $name +run_rc_command "$1" |