summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
author(no author) <(no author)>2004-07-08 18:21:20 +0000
committer(no author) <(no author)@37549a05-7cf3-0310-b41a-658052d0713c>2004-07-08 18:21:20 +0000
commitc493a11b449f5071aed9adb34faa3e3dd85ea762 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /scripts
parente650d1da777c76d94f023557b110725113a2b778 (diff)
New repository initialized by cvs2svn.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/add_header.sh43
-rw-r--r--scripts/proxsmtpd.sh32
-rw-r--r--scripts/spamassassin.sh52
3 files changed, 0 insertions, 127 deletions
diff --git a/scripts/add_header.sh b/scripts/add_header.sh
deleted file mode 100644
index d4d524a..0000000
--- a/scripts/add_header.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# PROXSMTP SAMPLE SCRIPT
-#
-# These sample scripts are to give you an idea of how to use proxsmtp
-# filtering. They are NOT intended for use on production servers.
-#
-# A simple proxsmtp script which replaces the subject line with one
-# containing the senders email address. Uses the 'formail' command
-# that comes with the 'procmail' package.
-#
-# Make sure the option 'FilterType' is set as follows:
-# FilterType: pipe
-#
-# See proxsmtpd.conf(5) for configuration details
-#
-
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-# WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-#
-# By using variables passed in from clamsmtpd in file
-# manipulation commands without escaping their contents
-# you are opening yourself up to REMOTE COMPROMISE. You
-# have been warned. Do NOT do the following unless you
-# want to be screwed big time:
-#
-# mv $EMAIL "$SENDER.eml"
-#
-# An attacker can use the above command to compromise your
-# computer. The only variable that is guaranteed safe in
-# this regard is $EMAIL.
-#
-# The following script does not escape its variables
-# because it only uses them in safe ways.
-#
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
-# Pipe the email through this command
-formail -i "Subject: Changed subject from $SENDER ..."
-
-# Filter success
-exit 0 \ No newline at end of file
diff --git a/scripts/proxsmtpd.sh b/scripts/proxsmtpd.sh
deleted file mode 100644
index fcc3493..0000000
--- a/scripts/proxsmtpd.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-###########################################################################
-# CONFIGURATION
-
-# Most configuration options are found in the proxsmtpd.conf file.
-# For more info see:
-# man proxsmtpd.conf
-
-# The prefix proxsmtpd was installed to
-prefix=/usr/local/
-
-# The location for pid file
-piddir=/var/run/
-
-###########################################################################
-# SCRIPT
-
-case $1 in
-start)
- mkdir -p $piddir
- $prefix/sbin/proxsmtpd -p $piddir/proxsmtpd.pid
- echo -n "proxsmtpd "
- ;;
-stop)
- [ -f $piddir/proxsmtpd.pid ] && kill `cat $piddir/proxsmtpd.pid`
- echo -n "proxsmtpd "
- ;;
-*)
- echo "usage: proxsmptd.sh {start|stop}" >&2
- ;;
-esac
diff --git a/scripts/spamassassin.sh b/scripts/spamassassin.sh
deleted file mode 100644
index 9e88f75..0000000
--- a/scripts/spamassassin.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-################################################################################
-# PROXSMTP SAMPLE SCRIPT
-#
-# These sample scripts are to give you an idea of how to use proxsmtp
-# filtering. They are NOT intended for use on production servers.
-#
-# A simple proxsmtp script which sends email through spamassassin.
-#
-# Make sure the option 'FilterType' is set as follows:
-# FilterType: pipe
-#
-# See proxsmtpd.conf(5) for configuration details
-#
-
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-# WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-#
-# By using variables passed in from clamsmtpd in file
-# manipulation commands without escaping their contents
-# you are opening yourself up to REMOTE COMPROMISE. You
-# have been warned. Do NOT do the following unless you
-# want to be screwed big time:
-#
-# mv $EMAIL "$SENDER.eml"
-#
-# An attacker can use the above command to compromise your
-# computer. The only variable that is guaranteed safe in
-# this regard is $EMAIL.
-#
-# The following script does not escape its variables
-# because it only uses them in safe ways.
-#
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
-# Pipe mail through this command
-spamassassin -e
-
-# Now check return value
-if [ $? -ne 0 ]; then
-
- # The last line of output to stderr will be used
- # as an error message when the filter fails
- echo "550 Content Rejected: We don't like spam" >&2
-
- # Cause the filter to fail, email will be rejected
- exit 1
-fi
-
-# Filter success
-exit 0