Hey Jorge:
Yup I think all the instructions are in the script. I pipe the mail through a shell script which sets some conditions for spamassassin ---> If this doesn't work in email transmission try the actual text file this link: http://dbma.ca/spamchq.txt


[snip]

#!/bin/sh

# -----------------------------------------------------------------
# File:        spamchk
#
# Author Mike
#
# Report Bugs to [EMAIL PROTECTED]
#
# Purpose:     SPAMASSASIN shell-based filter
#
# Location:    /etc/postfix
#
# Usage:       Call this script from master.cf (Postfix)
#
# SpamAssassin Config  /etc/mail/spamassassin/local.cf
#
# Whitelist Config in  /etc/mail/spamassassin/local.cf
#

# These are the Postfix master.cf entries
#smtp      inet  n       -       n       -       -       smtpd
#        -o content_filter=spamchk:dummy
#spamchk   unix  -       n       n       -       10      pipe
# flags=Rq user=filter argv=/etc/postfix/spamchk -f ${sender} -- ${recipient}
#
#
#
# Remember to run the following to build the seed bayesian dbs files
# sa-learn --spam /home/spamd
# sa-learn --ham /home/spamd
# -----------------------------------------------------------------

# Variables
SENDMAIL="/usr/local/sbin/sendmail -i"
EGREP=/usr/bin/egrep

# Exit codes from <sysexits.h>
EX_UNAVAILABLE=69

# Number of *'s in X-Spam-level header needed to sideline message:
# (Eg. Score of 5.5 = "*****" )
SPAMLIMIT=3

# Clean up when done or when aborting.
trap "rm -f /usr/tmp/out.$$" 0 1 2 3 15

# Pipe message to spamc
cat | /usr/local/bin/spamc -u filter > /usr/tmp/out.$$

# serious business
if $EGREP -q "^X-Spam-Level: \*\*\*" < /usr/tmp/out.$$
#if $EGREP -q "^X-Spam-Level: *{$SPAMLIMIT,}" < /usr/tmp/out.$$

then
  # $SENDMAIL [EMAIL PROTECTED] < /usr/tmp/out.$$
  rm -f /usr/tmp/out.$$

else

$SENDMAIL "$@"  < /usr/tmp/out.$$

fi

# Postfix returns the exit status of the Postfix sendmail command.
exit $?

[snip]

----- Original Message ----- From: "Jorge Bastos" <[EMAIL PROTECTED]>
To: "DBMail mailinglist" <[email protected]>
Sent: Saturday, August 12, 2006 6:26 PM
Subject: Re: [Dbmail] Opinion


hum... seams cool mike
want to tell me how? :P

Jorge


----- Original Message ----- From: "M. J. [Mike] OBrien" <[EMAIL PROTECTED]>
To: "DBMail mailinglist" <[email protected]>
Sent: Saturday, August 12, 2006 9:04 PM
Subject: Re: [Dbmail] Opinion


Hey Jorge... how doin?

What I do:
Squirt the *** matches into an account called "jnk". Once a week have the admin scan it for anything useful (or if a user says OmG I lost something) ... then delet the lot.

:o)
Mike



----- Original Message ----- From: "Jorge Bastos" <[EMAIL PROTECTED]>
To: "DBMail mailinglist" <[email protected]>
Sent: Saturday, August 12, 2006 6:04 AM
Subject: [Dbmail] Opinion


People,

I know that this if offtopic, but not that i have the mail sistem like i always wanted i wounder how you guys do with spam. I have spamassassin rewriting the subject with the default tab *****SPAM***** and the user still receives the spam, but this sometimes can be as embarassed as receiving the spam in normal way, so, do you delete spam? put it to a spam folder in the user mailbox? move all spam sent to the server to a separate account?
Maybe already someone asked something about this but i didn't saw :P

Jorge


--------------------------------------------------------------------------------


_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail


_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail


_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail


Reply via email to