LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2006, 08:03 AM   #1
Belette
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Bogofilter and spamassassin with postfix


Hi !

I found this in the FAQ :

How can I use SpamAssassin to train Bogofilter?

If you have a working SpamAssassin installation (or care to create one), you can use its return codes to train bogofilter. The easiest way is to create a script for your MDA that runs SpamAssassin, tests the spam/non-spam return code, and runs bogofilter to register the message as spam (or non-spam). The sample procmail recipe below shows one way to do this:

BOGOFILTER = "/usr/bin/bogofilter"
BOGOFILTER_DIR = "training"
SPAMASSASSIN = "/usr/bin/spamassassin"

:0 HBc
* ? $SPAMASSASSIN -e
#spam yields non-zero
#non-spam yields zero
| $BOGOFILTER -n -d $BOGOFILTER_DIR
#else (E)
:0Ec
| $BOGOFILTER -s -d $BOGOFILTER_DIR

:0fw
| $BOGOFILTER -p -e

:0:
* ^X-Bogosity:.Spam
spam

:0:
* ^X-Bogosity:.Ham
non-spam


but my problem is.. i have only postfix, not procmail.
is there a script somewhere on the internet i can use ?

thx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Clamsmtpd and Spamassassin carlmarshall Linux - Networking 1 01-31-2007 04:51 AM
Setting up SpamAssassin with POSTFIX wfernley Linux - Software 1 11-29-2005 07:51 AM
Postfix Dovecot Spamassassin php4u Fedora 1 04-09-2005 02:48 AM
Postfix and Spamassassin Phaethar Linux - Networking 0 10-30-2003 08:30 AM
Postfix/Spamassassin on firewall Pcghost Linux - Software 0 04-10-2003 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration