[exim] Exim + SpamAssassin

Pàgina inicial
Delete this message
Reply to this message
Autor: Oleksandr Samoylyk
Data:  
A: exim-users
Assumpte: [exim] Exim + SpamAssassin
Hi!

I've problem with Exim 4.43 & SpamAssassin 3.0.2.

It doesn't check emails for spam. So it's running but doesn't do its
work.

I'm running Fedora Core 1.
I installed ClamAv.
Exim & ClamAv worked fine together. ClamAv used to find viruses.
Then I installed the latest SpamAssassin.
All services have been restarted without errors.

# ps aux | grep spamd
root     18981  0.0  2.1 26560 21724 ?       S    19:16   0:00 
/usr/bin/spamd -d -c -m 5
root     18984  0.0  2.1 26560 21724 ?       S    19:16   0:00 spamd child
root     18985  0.0  2.1 26560 21724 ?       S    19:16   0:00 spamd child
root     18986  0.0  2.1 26560 21724 ?       S    19:16   0:00 spamd child
root     18987  0.0  2.1 26560 21724 ?       S    19:16   0:00 spamd child
root     18988  0.0  2.1 26560 21724 ?       S    19:16   0:00 spamd child


# spamd -V
SpamAssassin Server version 3.0.2
running on Perl 5.8.3

# cat /etc/mail/spamassassin/local.cf | grep "^[a-z,A-Z]"
required_score 5.0
rewrite_header Subject *****SPAM*****
report_safe 1
lock_method flock

# /usr/bin/./spamassassin --lint
Nothing.

I've added the following to exim.conf:

# Spam Assassin
spamcheck_director:
  driver = accept
  condition = "${if and { \
      {!def:h_X-Spam-Flag:} \
      {!eq {$received_protocol}{spam-scanned}} \
      {!eq {$received_protocol}{local}} \
      {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
    } {1}{0}}"
  retry_use_local_part
  transport = spamcheck
  no_verify


and

spamcheck:
driver = pipe
batch_max = 100
command = /usr/sbin/exim -oMr spam-scanned -bS
current_directory = "/tmp"
group = mail
home_directory = "/tmp"
log_output
message_prefix =
message_suffix =
return_fail_output
no_return_path_add
transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}
use_bsmtp
user = mail

BTW, my full Exim configuration file & init script are in attachment.

However, SA doesn't parse any email for spam :(.
There's no X-Spam-Status in mail headers or so...
Why?

Any suggestions would be much appreciated.

Thanks!

--
Oleksandr Samoylyk