Re: [Dovecot] Possible to split message store location?

2010-09-24 Thread Timo Sirainen
On Fri, 2010-09-24 at 15:55 +0200, Pierre wrote:
> Yes, but I'm thinking about putting mails in different places, for instance:
> 
> unread mails are delivered to server1
> read mails go to server2
> old mails go to server3...
> 
> question 1: can we set more than one alternative storage place (cf 
> alternative_storage in dovecot wiki) ?

No.

> question 2: can we split deliver, then ?

New mails are always delivered to primary storage.

Also this works only when using dbox storage format, it won't work for
maildir.




Re: [Dovecot] Possible to split message store location?

2010-09-24 Thread Pierre

On 24/sep - 14:55, Patrick Westenberg wrote:
> Pierre schrieb:
>> On 23/sep - 08:17, Patrick Westenberg wrote:
>>> You can set a different maildir (or home location) in your userdb which
>>> points to a different mountpoint.
>>
>> Ok, and then how to get back emails when reading from IMAP, when emails
>> are split in different places ?
>
> It works the same way.
> If a maildir is stored in the userdb and queried from the user_query,
> it overrides the mail_location set in your configuration file.

Yes, but I'm thinking about putting mails in different places, for instance:

unread mails are delivered to server1
read mails go to server2
old mails go to server3...

question 1: can we set more than one alternative storage place (cf 
alternative_storage in dovecot wiki) ?
question 2: can we split deliver, then ?

I read something about replication, but does not feet my needs.
Also, delivering in other places is not a pb, the issue resides in fetching the 
good emails. May I do it using namespaces ? How ?


Re: [Dovecot] Possible to split message store location?

2010-09-24 Thread Patrick Westenberg

Pierre schrieb:

On 23/sep - 08:17, Patrick Westenberg wrote:

You can set a different maildir (or home location) in your userdb which
points to a different mountpoint.


Ok, and then how to get back emails when reading from IMAP, when emails
are split in different places ?


It works the same way.
If a maildir is stored in the userdb and queried from the user_query,
it overrides the mail_location set in your configuration file.


Re: [Dovecot] Possible to split message store location?

2010-09-24 Thread Pierre


On 23/sep - 08:17, Patrick Westenberg wrote:
> 
> On Wed, 22 Sep 2010 23:03:58 -0400, Edward Carraro 
> wrote:
> 
> > This could lead to a possible bottleneck eventually and we were wondering
> > if
> > it's possible to have dovecot
> > direct x number of users to one message store location while others get
> > their mail on a different mount?
> 
> You can set a different maildir (or home location) in your userdb which
> points to a different mountpoint.

Ok, and then how to get back emails when reading from IMAP, when emails
are split in different places ?


Re: [Dovecot] Possible to split message store location?

2010-09-23 Thread Stan Hoeppner
Edward Carraro put forth on 9/22/2010 10:03 PM:
> We have a few dovecot servers all pointing to the same mail location (an NFS
> mount on a NAS drive).
> 
> This could lead to a possible bottleneck eventually and we were wondering if
> it's possible to have dovecot
> direct x number of users to one message store location while others get
> their mail on a different mount?

There are better ways to solve a storage bottleneck than trying to split
user mailboxes across different storage back ends at the IMAP server
(application) level.  The most obvious is tweaking, upgrading, or
wholesale replacing the storage infrastructure, not just slapping
another NAS box on the network and splitting users.  Doing what you are
asking is a bandaid, not a good permanent solution, IMO.  If you're
going to add another NAS box, get a decent unit that is sufficiently
expandable (disks and ports) and just migrate the entire mail store to
it.  For that matter, if your skill set is up to it, you could build
your own Linux NFS server better and cheaper.

Could you give us more details as to why you believe you have a storage
bottleneck looming?  Are you unable to add disks to the current NAS box
to increase spindle performance and total space?  Given it's 2010, I'm
assuming your NAS device has at least 2 GigE ports and you are doing
link aggregation/port bonding with the quality managed switch it's
connected too.

That should give you ~200 MB/s full duplex bandwidth and decent packet
latency, which is more than sufficient for a half dozen or more dovecot
cluster servers and a couple thousand users--assuming the NAS device
isn't a piece of junk.

So exactly where is this looming bottleneck?

-- 
Stan


Re: [Dovecot] Possible to split message store location?

2010-09-22 Thread Patrick Westenberg

On Wed, 22 Sep 2010 23:03:58 -0400, Edward Carraro 
wrote:

> This could lead to a possible bottleneck eventually and we were wondering
> if
> it's possible to have dovecot
> direct x number of users to one message store location while others get
> their mail on a different mount?

You can set a different maildir (or home location) in your userdb which
points to a different mountpoint.


[Dovecot] Possible to split message store location?

2010-09-22 Thread Edward Carraro
We have a few dovecot servers all pointing to the same mail location (an NFS
mount on a NAS drive).

This could lead to a possible bottleneck eventually and we were wondering if
it's possible to have dovecot
direct x number of users to one message store location while others get
their mail on a different mount?