Re: [xmail] Problem!! Xmail Checks Maildir Size On Every RCPT command

2015-10-22 Thread Akash via xmail
 

Hi, 

Are you using mboxes or Maildirs? I am using XMail v1.27 with Debian 7
on ext4 filesystem. May be its filesystem's bottleneck but XMail does
calculate directory size on every RCPT (I looked into the codes) and
causes CPU spike, which isn't a right thing I feel. 

-Akash 

On 2015-10-22 19:04, Helio C Jr wrote: 

> I use XMail in some customers servers and they have big mailboxes, but don't 
> have such problem. What XMail version are you using? What OS and filesystem 
> type? I use XMail 1.27 on Slackware 13.37 64bits with reiserfs. How maildir 
> works with a file per message, reiserfs is very nice to handle large number 
> of files.

  ___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Problem!! Xmail Checks Maildir Size On Every RCPT command

2015-10-22 Thread Helio C Jr via xmail
I use XMail in some customers servers and they have big mailboxes, but
don't have such problem.
What XMail version are you using? What OS and filesystem type?
I use XMail 1.27 on Slackware 13.37 64bits with reiserfs.
How maildir works with a file per message, reiserfs is very nice to handle
large number of files.

2015-10-18 15:33 GMT-02:00 Akash via xmail :

> Hi,
>
> There seems to be a problem in the way XMail checks for quotas on every
> RCPT command. I have a large Maildir with around 50 emails and I
> noticed that every time XMail receives a email, the CPU spikes to 100% for
> few seconds before responding to the RCPT. On debugging I found that it
> actually calculates directory size for every RCPT command.
>
> And there is just no way to bypass this. I tried removing MaxMBSize from
> user.tab, setting it to 0, setting it to empty "" but nada. I checked the
> source and it seems UPopGetMailboxSize() is called before "MaxMBSize" value
> is evaluated.
>
> In order to tackle this I am at present using a dummy front account which
> has "redirect" in its mailproc.tab to redirect mails to the actual large
> email account. This way the directory size of only dummy account is
> calculated by XMail which is almost instant and doesn't cause any CPU spike.
>
> Shouldn't this behavior be rectified?
>
> -Akash
> ___
> xmail mailing list
> xmail@xmailserver.org
> http://xmailserver.org/mailman/listinfo/xmail
>
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


[xmail] Problem!! Xmail Checks Maildir Size On Every RCPT command

2015-10-18 Thread Akash via xmail

Hi,

There seems to be a problem in the way XMail checks for quotas on every 
RCPT command. I have a large Maildir with around 50 emails and I 
noticed that every time XMail receives a email, the CPU spikes to 100% 
for few seconds before responding to the RCPT. On debugging I found that 
it actually calculates directory size for every RCPT command.


And there is just no way to bypass this. I tried removing MaxMBSize from 
user.tab, setting it to 0, setting it to empty "" but nada. I checked 
the source and it seems UPopGetMailboxSize() is called before 
"MaxMBSize" value is evaluated.


In order to tackle this I am at present using a dummy front account 
which has "redirect" in its mailproc.tab to redirect mails to the actual 
large email account. This way the directory size of only dummy account 
is calculated by XMail which is almost instant and doesn't cause any CPU 
spike.


Shouldn't this behavior be rectified?

-Akash
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail