RE: [Exim] local_delivery transport_filter

Top Page
Delete this message
Reply to this message
Author: Eli
Date:  
To: exim-users
Subject: RE: [Exim] local_delivery transport_filter
Yeah there is - you can have a spam router that uses the accept router and
uses BSMTP to send the message to spamc/spamd. Then add a command that runs
exim to re-inject the message back into itself for final delivery. Your
router would have a condition that would check to make sure it had never
scanned the message (check a header) as well as you can specify a new
transport name when you re-inject it that you can test on as well (people
chose spam-scanned it seems).

There is an example here:
http://dman13.dyndns.org/~dman/config_docs/exim-spamassassin/node12.html

I initially used this before using exiscan. It works very well, except you
need queue runners to do final delivery, and of course you will be
unconditionally accepting all spam, which makes it hard to do bouncebacks
(lots of talk about this everywhere - which is why lots of people choose
exiscan or sa-exim to do scanning before accepting the message).

Eli.

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On Behalf
Of Chris Meadors
Sent: Thursday, January 15, 2004 11:22 AM
To: exim-users@???
Subject: [Exim] local_delivery transport_filter


I've been running SpamAssassin as a transport_filter for local_delivery,
just to tag the e-mails. This allows each user to have their own
customized settings, even when there are multiple recipients.

local_delivery:
driver = appendfile
directory = $home/Maildir
maildir_format
maildir_tag = ,S=$message_size
delivery_date_add
envelope_to_add
return_path_add
transport_filter = /usr/bin/spamc

This works great, for tagging. But I'm thinking about delivering
messages tagged as spam into "directory = $home/Maildir/.spam". There
is no way to pull the headers that SpamAssassin adds in the
transport_filter to use in a varible expantion in the transport that
runs it, is there? That is, if X-Spam-Flag exists, deliver into
~/Maildir/.spam, else ~/Maildir.

Is there another way to have spamc run as the local user that the mail
is going to be delivered to before it actually reaches the delivery
transport?

--
Chris


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##

---
[This E-mail scanned for viruses]


---
[This E-mail scanned for viruses]