Re: Piped command and Maildir delivery

Dominic Cleal <[email protected]>
Newsgroups gmane.mail.exim.vexim.devel
Message-ID <20080518122111.6f9b4aeb@tungsten>
On Sat, 17 May 2008 10:07:34 -0600, Tomas Hood wrote:
> Can mail delivery be both the the default Maildir (as if no pipe
> command is used), yet still use .procmailrc?  I want to have mail
> delivered the way Vexim does, when not using a pipe command, yet, I
> need to filter certain messages out for archiving on the mail
> server.  I used to do that with sendmail and procmail.  Now with
> Exim, and Vexim, I like the way mail is delivered and I can interface
> with dovecot through the MySQL configuration.  However, it seems to
> me that you can only do one or the other (Maildir or pipe to
> procmail).
> 
> Thanks, in advance, for any pointers.

Read up on the "unseen" router option[1], which would let you add a new
router in the Exim config to run procmail for archiving and then the
execution will continue through the routers to deliver as normal.

Your procmail router could be quite simple, perhaps copy
the virtual_domains one to begin with and set the data to be the
procmail pipe command.

[1]http://www.exim.org/exim-html-current/doc/html/spec_html/ch15.html#id566451

-- 
Dominic Cleal
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.