On Jun 9, 2015, at 12:51 PM, RW <rwmailli...@googlemail.com> wrote:

> Bogofilter is pretty easy to use without a plugin. Typically it's just
> a matter of piping your mail through bogofilter -e -p
> In general the most efficient way to score-in an external filter is to
> run it separately and have SA score the result -  by scoring
> headers or  otherwise.

My SA setup is that mail is piped to spamc for individual users, as follows:

[host] $ cat /etc/procmailrc 
HOSTNAME=`hostname`
:0 fw
| /usr/bin/spamc -u "${LOGNAME}@${HOSTNAME}" -s 1500000

[host] $ cat ~/.procmailrc
SPAM_FOLDER="$HOME/mail/Spam"
:0 :$HOME/spamassassin.lock
* X-Spam-Status: Yes
$SPAM_FOLDER

I'm unfortunately not a procmail expert... in fact, I barely understand how it 
works at all.  Given the above, how would I incorporate bogofilter?  Would it 
be as "simple" as adding a line like:

| /usr/bin/bogofilter -e -p

into /etc/procmailrc right above the pipe into spamc?  And then, presumably, 
I'd add custom rules (into SA's local.cf) that would score the Bogo results?

Thanks.

--- Amir


Reply via email to