SquirrelMail - Fatal Error

Discussion in 'Server Operation' started by dipeshmehta, Jul 21, 2009.

  1. dipeshmehta

    dipeshmehta Member

    Hello,

    I recently have installed squirrelmail on my server. I have been using postfix + courier IMAP/POP3. The interface works fine for user who have very less mails in their folders, but two or three users have approx 9000 to 12000 mails in their inbox, and when they try to login, this error message displayed:

    Code:
    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4096 bytes) in /usr/share/squirrelmail/functions/imap_general.php on line 92
    I tried to increase the $buffer into the imap_general.php, but didn't work. Can any body please help me?

    Moreover, I do not want to allow user can change their passwords. I use system users for mail with shell of /bin/false. Is it possible not to allow users to change their password using squirrelmail?

    Dipesh
     
  2. TheRudy

    TheRudy Member

    Try to increase PHP memory limit.
    Edit php.ini and find "memory_limit", increase it.
    Code:
    memory_limit = 20M
    As for the password change, remove the password change plugin from squirrelmail and that's it. You'll have to run squirrelmail configuration script.
     
  3. dipeshmehta

    dipeshmehta Member

    I tried to make it 20M and on fail, I now put 32M. Now, another error shows:
    Code:
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 551 bytes) in /usr/share/squirrelmail/functions/date.php on line 428
    Dipesh
     
  4. Flash

    Flash New Member

    you can put it more up depending on the ram in your server, I use roundcube personally, but I have my memory limit set to 128M which was required for my mailboxes.
     
  5. dipeshmehta

    dipeshmehta Member

    Thanks to you both, it works now.
     

Share This Page