> From: Sam Varshavchik <[EMAIL PROTECTED]>
> Re: pop3d performance  
> 2002-04-03 14:11
> 
> Mark Lehrer writes: 
>  
>  > > I have a question about the pop3 server; I have been using Courier
>  > for awhile and I have several users who unfortunately like to leave
>  > their mail on the server for 7 days. 
>  > > The problem I have is that it appears that the pop3 server is reading
>  > the contents of every email... when you have 3 users simultaneously
>  > reading 100 megabytes of mail every 5 minutes, it leads to significant
>  > degradation of performance on the server.
>  
>  Certain POP3 commands require the entire mailbox to be rescanned.


just look at pop3dserver.c:

/*
** The RFC is pretty strict in stating that octet size must count the CR
** in the CRLF endofline.
*/

static void calcsize(struct msglist *m)
{
        ...
}

this will surely lead to significant degradation of performance...

i have a "quick and dirty" (but efficient) patch for this. contact me
since i don't want to pollute the mailing-list with patches that will
not make it into mr sam's code :)

can't this be cached somehow ? i have a proposal for caching, which 
would not break anything regarding the RFCs :) for this again you can
contact me...

 
>  
>  > My key reason for making the switch to Maildirs was to avoid this kind
>  > of thrashing.  Has anyone else run into this?  Is there a setting in
>  > pop3d that I can use to have it only read the headers, or does pop3
>  > have to read the complete contents?
>  
>  You're using the wrong tool for the job.  POP3 is not designed for 
>  hundred-megabyte mailboxes.  That's what IMAP's for.  POP3's purpose is to 
>  serve as a means to download mail from an external mailbox, and that's it. 
>  
>  -- 
>  Sam

but there are strange people out there that we call "customers" and who 
buy POP3 access :) and since customers are users they -sometimes- forget 
to pop their mails... and this is not a reason for sending servers in 
space...

-- 
Olivier


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to