File: filter.sh

package info (click to toggle)
spamassassin 4.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,724 kB
  • sloc: perl: 89,143; ansic: 5,193; sh: 3,737; javascript: 339; sql: 295; makefile: 209; python: 49
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 $?