Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

sieve + maildir

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


rschroev_nospam_ml at fastmail

Sep 25, 2009, 7:04 AM

Post #1 of 4 (725 views)
Permalink
sieve + maildir

Hi,

I'm trying to use Sieve filtering in Exim to deliver mails to Maildir
folders.

I'm not an Exim expert and I must admit that I'm a bit lost in the wood
of router, transports and drivers. But as far as I can see, when a mail
goes through a Sieve filter, it ends up in a transport called
address_file, while it should end up in one of the transports called
address_directory or maildir_home (because the sieve filtering system
returns address_file without trailing slash).

I guess I could set directory to an appropriate value in the
address_file transport, but that doesn't seem quite right. I have the
impression that I somehow should be able to get the mail to pass through
address_directory or maildir_home.

To be honest I don't even know if that is the general configuration in
Exim, or just something specific to our version of Exim (4.63-17 on
Debian etch).

How can I coerce Exim into delivering Sieve-filtered mails to Maildir
folders?

--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov

Roel Schroeven


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


alxgomz at gmail

Sep 26, 2009, 10:18 AM

Post #2 of 4 (665 views)
Permalink
Re: sieve + maildir [In reply to]

I have the exact same problem : my sieve filter returns strings without
trailing slash so exim tried to use the address_file transport.
My config being atest config, i took less care than you and tried to
set the address_file_transport to address_directory.
It ended up with exim complaining about path in sieve filter not being
absolute...
I've not been any further for now but will follow your thread with
interest now.

regards

Le vendredi 25 septembre 2009 à 16:04 +0200, Roel Schroeven a écrit :
> The saddest aspect of life right now is that science gathers knowledge
> faster than society gathers wisdom.


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


michael.haardt at freenet

Sep 28, 2009, 5:52 AM

Post #3 of 4 (655 views)
Permalink
Re: sieve + maildir [In reply to]

> I'm not an Exim expert and I must admit that I'm a bit lost in the wood
> of router, transports and drivers. But as far as I can see, when a mail
> goes through a Sieve filter, it ends up in a transport called
> address_file, while it should end up in one of the transports called
> address_directory or maildir_home (because the sieve filtering system
> returns address_file without trailing slash).
>
> I guess I could set directory to an appropriate value in the
> address_file transport, but that doesn't seem quite right. I have the
> impression that I somehow should be able to get the mail to pass through
> address_directory or maildir_home.

Sieve runs as part of a redirect router and generates file addresses.
File addresses are processed by the appendfile transport pointed to
by "file_transport" in the router. The file transport then decides
to use maildir delivery by using "maildir_format" and "directory".
The directory must be an absolute path, so qualify the relative file
addresses with a string expansion that uses "$address_file".

I suggest to read at least the introductional chapters of the manual to
understand how routers and transports work together and out of a sudden
the above will make sense.

Michael

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


rschroev_nospam_ml at fastmail

Sep 28, 2009, 10:02 AM

Post #4 of 4 (652 views)
Permalink
Re: sieve + maildir [In reply to]

Michael Haardt schreef:
>> I'm not an Exim expert and I must admit that I'm a bit lost in the wood
>> of router, transports and drivers. But as far as I can see, when a mail
>> goes through a Sieve filter, it ends up in a transport called
>> address_file, while it should end up in one of the transports called
>> address_directory or maildir_home (because the sieve filtering system
>> returns address_file without trailing slash).
>>
>> I guess I could set directory to an appropriate value in the
>> address_file transport, but that doesn't seem quite right. I have the
>> impression that I somehow should be able to get the mail to pass through
>> address_directory or maildir_home.
>
> Sieve runs as part of a redirect router and generates file addresses.
> File addresses are processed by the appendfile transport pointed to
> by "file_transport" in the router. The file transport then decides
> to use maildir delivery by using "maildir_format" and "directory".
> The directory must be an absolute path, so qualify the relative file
> addresses with a string expansion that uses "$address_file".
>
> I suggest to read at least the introductional chapters of the manual to
> understand how routers and transports work together and out of a sudden
> the above will make sense.

I guess I should take the time to read the manual and create an
Exim-installation from scratch on a testbox.

For now though, I solved my problem the easy/lazy way: like Mark de
Vries suggested, I use the LDA from dovecot via a pipe command in
.forward: I put

| "/usr/lib/dovecot/deliver"

in .forward of the account I need it for (that's the location of deliver
on Debian; it's different on other systems).
I also created .dovecot.sieve containing

# CMUsieve (dovecot LDA)

require ["imapflags", "fileinto" ];

# Dump messages that SpamAssassin considers spam to Junk folder
if header :contains "x-spam-score" "++++" {
fileinto "Junk";
}

else {
# Add label "to do"
addflag "$Label4";
keep;
}

in the home dir of that account. Works like a charm. I like it that
dovecot lets me use mail folder names as IMAP-clients see them, as
opposed to the real names in the filesystem as exim requires me to do
(AFAIK).

--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov

Roel Schroeven


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.