0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

mail-filter: obsolete

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@472 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
David Goodwin 2008-11-05 21:04:29 +00:00
parent 75c5c62ed0
commit 4c4c54a5ae

View File

@ -1,17 +0,0 @@
#!/bin/sh
FILTER_DIR=/home/vacation
SENDMAIL="/usr/sbin/sendmail -i"
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
trap "rm -f in.$$" 0 1 2 3 15
cd $FILTER_DIR || { echo $FILTER_DIR does not exist; exit $EX_TEMPFAIL; }
cat > in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }
/home/vacation/vacation.pl < in.$$ || { echo Message content rejected; exit $EX_UNAVAILABLE; }
$SENDMAIL "$@" < in.$$
exit $?