[Dovecot] put procmail between postfix and dovecot

M. Fioretti mfioretti at mclink.it
Sat Sep 16 08:36:06 EEST 2006


Hello,

a couple of months ago, also thanks to help from this list, I set up
postfix and dovecot for virtual domains on a Centos 4 remote server.

I have postfix set up to deliver all email for marco at domain1.net to

/var/mail/vhosts/marco_domain1.net/

Everything is fine, as far as postfix is concerned: all email to
marco at domain1.net goes in that mailbox, dovecot sees it, etc...

Now I need to add sorting all incoming email in subfolders:

mail from SOME_LIST to marco_domain1.net/SOMELIST/
(lots of other rules for custom folders)
all else to main inbox

I have to do all this sorting with procmail for two reasons:

- I want to have as little sw as possible on that server, and update
  it semi-automatically, if possible only from the official
  repositories: procmail has these characteristics

- I want to reuse as is, with the smallest possible amount of
  translation, filtering, etc, the very long and complicated
  procmailrc files I have built over the years on several servers.

My question is how do I have to modify (with a perl or similar script)
the procmail rules so that they sort messages in maildir folders which:

- are fully compatible with dovecot (and Squirrelmail)
- (very useful, but not mandatory) can be viewed in categories and subcategories
  from Squirrelmail:

	      personal/
			friends/
			family/
	      mailing_lists/
			postfix/
			dovecot/
			....
	      work/

- *all* the messages, no matter how they were sorted on the server, can still
  be downloaded with fetchmail from home

Note that I am not asking anybody to write the script for me (if you
want to share a ready one, of course, I'll be glad). I just need to
know what is the exact syntax/ folder naming conventions I have to follow
to make all I wrote above happen.

TIA,
	Marco

-- 
Marco Fioretti                    mfioretti, at the server mclink.it
Fedora Core 5 for low memory      http://www.rule-project.org/

Everyone is entitled to their own opinion, but not their own facts
					       Daniel Patrick Moynihan


More information about the dovecot mailing list