Re: [Dovecot] Deliver virtual user's mail to a specific namespace?

2010-01-02 Thread Brian Schang

Pascal:

On 1/2/2010 7:02 AM, Pascal Volk wrote:

On 01/02/2010 05:23 AM Brian Schang wrote:



Now I want to make my setup more robust and have these messages
delivered to a maildir namespace.

I have configured the LDA within the Postfix master.cf file:
dovecot   unix  -   n   n   -   -   pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f
${sender} -d ${recipient}

I have configured the 'dovecot' transport within Postfix in the
transport file:
t...@lists.schang.net   dovecot:
…
I can't get the userdb_mail portion to work. For this user,
't...@lists.schang.net', how do I tell Dovecot/deliver to put the
message in the 'test' mailbox within the 'Lists/' namespace?

I'd appreciate any insight.



Use delivers -m parameter, works also with namespaces since Dovecot
v1.1.x. See http://wiki.dovecot.org/LDA#Parameters for details.


How do I use the -m parameter from within Postfix? Does that need to be 
included in the LDA definition within master.cf?


I have a total of about ten email address and I'd like each put into a 
different mailbox. By using the -m parameter, I can set up ten dovecot 
configurations within master.cf and then map each email address via the 
transport table. I can see how this will work, but it doesn't seem very 
scalable. Is there any better way?


Or said another way: the -m parameter to deliver works beautifully when 
I use it from within procmail for other email addresses. But how do I 
efficiently use the -m parameter (or equivalent) from within postfix 
given that I have about 10 namespace/mailbox combinations to put mail into?


Thank you.


Re: [Dovecot] Deliver virtual user's mail to a specific namespace?

2010-01-02 Thread Pascal Volk
On 01/02/2010 05:23 AM Brian Schang wrote:
> …
> Now I want to make my setup more robust and have these messages 
> delivered to a maildir namespace.
> 
> I have configured the LDA within the Postfix master.cf file:
> dovecot   unix  -   n   n   -   -   pipe
>   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f 
> ${sender} -d ${recipient}
> 
> I have configured the 'dovecot' transport within Postfix in the 
> transport file:
> t...@lists.schang.net   dovecot:
> …
> I can't get the userdb_mail portion to work. For this user, 
> 't...@lists.schang.net', how do I tell Dovecot/deliver to put the 
> message in the 'test' mailbox within the 'Lists/' namespace?
> 
> I'd appreciate any insight.
> 

Use delivers -m parameter, works also with namespaces since Dovecot
v1.1.x. See http://wiki.dovecot.org/LDA#Parameters for details.


Regards,
Pascal
-- 
The trapper recommends today: cafebabe.1000...@localdomain.org


[Dovecot] Deliver virtual user's mail to a specific namespace?

2010-01-01 Thread Brian Schang

Hello:

I have virtual users set up for the various mailing lists that I 
subscribe to. Everything has been working well in both Postfix and 
Dovecot. Postfix is configured to deliver to a specific mbox file within 
my mbox mail root. I can access retrieve and read email via Dovecot 
without any issues.


Now I want to make my setup more robust and have these messages 
delivered to a maildir namespace.


I have configured the LDA within the Postfix master.cf file:
dovecot   unix  -   n   n   -   -   pipe
  	flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f 
${sender} -d ${recipient}


I have configured the 'dovecot' transport within Postfix in the 
transport file:

t...@lists.schang.net   dovecot:

In dovecot.conf I have set up the namespace as follows:
namespace private {
separator = /
prefix = "Lists/"
location = maildir:~/MailLists
subscriptions = yes
}

I'm having a hard time specifying the "Lists/" namespace in my userdb 
passwd-file:

test:{PLAIN}linux:2000:200::/home/brian::userdb_mail=maildir:Lists/test

I can't get the userdb_mail portion to work. For this user, 
't...@lists.schang.net', how do I tell Dovecot/deliver to put the 
message in the 'test' mailbox within the 'Lists/' namespace?


I'd appreciate any insight.

Thank you.

--
Brian Schang