Okay, it seems to be working now. For the sake of documentation, here's
what I've done.
In order to implement .forward rules for virtual users (using a mysql
back-end), I've created the following director:
mysql_forward:
driver = forwardfile
filter
check_local_user = false
data = ${lookup mysql {SELECT forward FROM users WHERE email =
'$local_part@$domain'}{$value}}
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
directory_transport = address_directory
user = mail
group = mail
By pulling the forward field from the database, I'll be able to provide a
web-based tool for advanced users to maintain their own rules. The data in
the field itself is just like a .forward file:
#Exim filter
if
$h_X-Spam-Status: contains "Yes"
or
"${if def:h_X-Spam-Flag {def}{undef}}" is "def"
then
save /path/to/user/Maildir/.spam/
finish
Endif
Adam
-----Original Message-----
From: exim-users-admin@??? [
mailto:exim-users-admin@exim.org] On Behalf
Of Nico Erfurth
Sent: Friday, February 07, 2003 4:50 PM
To: Adam Israel
Cc: 'Derek Simkowiak'; exim-users@???
Subject: RE: [Exim] Exim w/virtual users and procmail
On Fri, 7 Feb 2003, Adam Israel wrote:
> I forgot to mention that I am using Maildir. Does that kill the
> ability to use exim's filtering?
No it doesn't.
exim supports directory-delivery from filters without a problem here.
Nico
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##