File: filter.sh

package info (click to toggle)
spamassassin 3.0.3-2sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,532 kB
  • ctags: 1,570
  • sloc: perl: 29,159; ansic: 2,329; sh: 1,353; makefile: 181; sql: 109
file content (27 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# filter.sh
#
# Simple filter to plug Anomy Sanitizer and SpamAssassin
# into the Postfix MTA
#
# From http://advosys.ca/papers/postfix-filtering.html
# Advosys Consulting Inc., Ottawa
# Modified by Jesus Climent
#
# For use with:
#    Postfix 20010228 or later
#    SpamAssassin 2.42 or later
#
# Note: Modify the file locations to match your particular 
#       server and installation of SpamAssassin.

# File locations: 
# (CHANGE AS REQUIRED TO MATCH YOUR SERVER)

SENDMAIL=/usr/sbin/sendmail
SPAMASSASSIN=/usr/bin/spamc

/bin/cat | ${SPAMASSASSIN} -f | ${SENDMAIL} -i "$@"

exit $?