Hi everyone,

I've had an awful time trying to figure this one out on my own, and have
been scouring the 'net for someone with a similar problem, but can't
find anything.

I'm converting an existing Postfix (2.0.6)/Procmail setup to use
SpamAssassin.  I installed SpamAssassin via CPAN.

I followed Greg Webster's howto at
http://www.geekly.com/entries/archives/00000155.htm and got things up
and running.

Then I noticed that for messages tagged as spam, I get two messages
delivered for every one received by the system.  The headers are
identical, I just get two copies of the spam in my inbox.  This happens
system-wide.

Here are my configuration details:

/etc/mail/spamassassin/local.cf:
rewrite_header Subject [SPAM]
report_safe 2
trusted_networks my.ip.addrs.
lock_method flock
required_score 8.0
use_bayes 1
bayes_auto_learn 1
ok_languages    en
ok_locales      en

/etc/postfix/master.cf
#services:
smtp inet n - n - - smtpd
  -o content_filter=spamfilter:
#interfaces:
spamfilter unix - n n - - pipe
  flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f
${sender} -- ${recipient}

/etc/postfix/main.cf
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN

/usr/local/bin/spamfilter.sh:
#!/bin/bash
/usr/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?

I can provide the full files if necessary, I removed what I thought was
irrelevant to keep this message short.

Any ideas?

Thanks,
Jacob Cord


Reply via email to