ispCP - Board - Support
[solved] default mail quota - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: [solved] default mail quota (/thread-8472.html)



[solved] default mail quota - kouga - 11-17-2009 05:30 PM

Hi all,

I want to change the default mail quota size.
At the moment it is set to 10Mb.
Wish to change it to 50Mb.

Is /etc/ispcp/database/database.sql the right one to edit?
Or, is there some other file needed to edit.

Someone, please help...Sad


RE: default mail quota - Knut - 11-17-2009 05:46 PM

For change the sending mail quota you must add a value at /etc/postfix/main.cf

Code:
pico /etc/postfix/main.cf
Code:
# Message size limit
# => 0 for unlimited
# => 104857600 for 100 MB
message_size_limit           = 52428800

don't forget to restart postfix


Knut


RE: default mail quota - kouga - 11-17-2009 06:16 PM

Thanks for your quick reply, KnutBig Grin

Sorry for the rack of explanation.
I meant to change the default mail quota in mysql database.

My ispCP runs with Dovecot's quota plug-in with mysql at backend.
I need the default quota set to 50Mb, and let my client change the
quota size by phpmyadmin or using Web interface mentioned HERE.


(11-17-2009 05:46 PM)Knut Wrote:  For change the sending mail quota you must add a value at /etc/postfix/main.cf

Code:
pico /etc/postfix/main.cf
Code:
# Message size limit
# => 0 for unlimited
# => 104857600 for 100 MB
message_size_limit           = 52428800

don't forget to restart postfix


Knut



RE: default mail quota - aseques - 11-17-2009 06:47 PM

We've did some small changes in the interface to allow the quota modification, I'll look for the script and post it somewhere...


RE: default mail quota - aseques - 11-17-2009 08:53 PM

We are currently using this patch (it should apply cleanly on rev2175 branch 1.0.3).
It allows you ONLY IF you are using DOVECOT, to be able to edit the quota from the control pannel.
It's not the same patch you posted, our version is simpler and only does the quota stuff.
It's only valid for dovecot because, with courier you are not reading the mailboxes information from the database directly as you do with dovecot.

To change the default quota I think you have to alter the database to match the value you need. It's better if you do it directly from phpmyadmin changing the structure of the table.


RE: default mail quota - kouga - 11-18-2009 12:01 PM

aseques,

Thank you for the great patch!! I will try this later.

Meanwhile, I still don't have a clue how to change the default mail quota.
I'm a bit confused by the suggested method you gave me.
"directly from phpmyadmin changing the structure of the table. "
How is this possible...?


RE: default mail quota - kouga - 11-18-2009 02:24 PM

aseques,

I got it!!!
Default mail quota has been changed to 50MB!!!

Thank you so much for your helpSmile