|
Exim/spamassassin problems
I've posted this before, but I'm going to be specific this time (I've been told that helps! :-)
I'm running exim 3.x (can't tell which version) and I installed SpamAssassin 2.63. This machine is in our DMZ and it forwards mail to an Exchange server on our internal network.
I installed SA and the daemon runs fine and I tested it using spamc and that worked. When I tried to add it to exim.conf, exim stopped forwarding mail to and from Exchange (no mail to or from the company was delivered). When I copied the backup exim.conf file over the modified one, mail worked again.
This is what I added to my exim.conf file:
Under transports:
# SpamAssassin
spamcheck:
driver = pipe
command = /usr/sbin/exim -oMr spam-scanned -bS
transport_filter = /usr/local/bin/spamc
bsmtp = all
home_directory = "/tmp"
current_directory = "/tmp"
# must use a privileged user to set $received_protocol
# in the second exim process!
user = mail
group = mail
return_path_add = false
log_output = true
return_fail_output = true
prefix =
suffix =
Under directors:
# SpamAssassin
spamcheck_director:
# do not use this director when verifying a local-part at SMTP-time
no_verify
# When to scan a message :
# - it isn't already flagged as spam
# - it isn't already scanned
# - it didn't originate locally (as long as I don't harbor spammers :-))
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}"
driver = smartuser
transport = spamcheck
|