Charles Marcus a écrit :
> On 3/6/2009 3:43 PM, LuKreme wrote:
>> On 6-Mar-2009, at 12:27, Charles Marcus wrote:
>>> Hmmm... I'm now wondering if ${extension} can somehow be used with the
>>> virtual_mailbox_maps query to accomplish what I want?
> 
>> Yes, but you need procmail (or, I assume, Maildrop)
> 
> Many thanks for the detail... but with Victor and Wietse's responses, I
> think the 2x4 is no longer needed... :)
> 
> Procmail is not a beast I want to unleash on my server, so, since the
> conversion to dovecot is probably not far away (I'm waiting for 1.2),
> I'll just wait for that...
> 

given a list of users (which you have) and a list of acceptable
extensions, you can build a list of user+extens...@domain and use it.

if all extensions are acceptable (not very recommended), you can build a
pcre list. something like

/^joe+([a-z]{1,2...@example\.com$/
        /blah/blah/example.com/joe/maildir/.$1/

adjust the path to match your imap server conventions.

PS. if using mysql or the like, these "lists" can be generated on the fly.

Reply via email to