Re: [exim] error when testing .mailfilter

Pàgina inicial
Delete this message
Reply to this message
Autor: John Burnham
Data:  
A: exim users
Assumpte: Re: [exim] error when testing .mailfilter
> Sorry. I did not really get it how exim and maildrop work together.
> My understanding was, that exim calls maildrop. So I was
> trying to it
> that way:
> http://www.courier-mta.org/?maildropfilter.html
>

Yes, but the filter files there don't seem to have anything to do with Exim.
They seem to be courier filter files.
What you need is (AFAICT) the router

maildrop:
debug_print = "R: maildrop for $local_part@$domain"
driver = accept
domains = +local_domains
check_local_user
transport = maildrop_pipe
require_files = ${local_part}:${home}/.mailfilter:+/usr/bin/maildrop
no_verify
no_expn

and its associated transport

maildrop_pipe:
debug_print = "T: maildrop_pipe for $local_part@$domain"
driver = pipe
path = "/bin:/usr/bin:/usr/local/bin"
command = "/usr/local/bin/maildrop"
return_path_add
delivery_date_add
envelope_to_add

Remember that routers are run in order so you might need to adjust the order in
your config file.
Play around with exim -d -bt {email address} and see if you can work out what
the issue is.
J