Re: [exim] problem with Exim filtering + SpamAssassin

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Sherman
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] problem with Exim filtering + SpamAssassin
Robert Cates wrote:
>
> localuser:
> driver = accept
> check_local_user
> transport = maildir_delivery
> cannot_route_message = Unknown user
>
> maildir_delivery:
> driver = appendfile
> directory = $home/Maildir
> maildir_format
> delivery_date_add
> envelope_to_add
> return_path_add
> group = mail
> mode = 0660
>
> So, the messages get sent to my Inbox instead of my .Spam folder. I don't
> know if it has to do with the 'save' command in the .forward file? Or, the
> 'directory_transport = maildir_delivery' in the userforward: configuration?
> Or a combo of both? I had to add the 'directory_transport' in order to get
> Exim to start, due to the 'save' command in the .forward file. I read
> through the filter.pdf for exim 4.50, but I'm missing something.


http://exim.org/exim-html-4.50/doc/html/spec_26.html#SECT26.1

The directory option on the transport overrides the directory you saved
to in the filter file. I prefer to solve this problem by removing the
directory option from the maildir_delivery transport, and then changing
the localuser router from accept to redirect, changing transport to
directory_transport, and adding "data = $home/Maildir/". That way you
have a single transport responsible for all maildir deliveries, and the
folder being delivered to is always decided by the router (or the filter
called by the router).

- Marc