HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Mail users without individual quota (using just user quota) ? (http://www.howtoforge.com/forums/showthread.php?t=49759)

radim_h 29th October 2010 12:28

Mail users without individual quota (using just user quota) ?
 
Hello everyone!

is there any way how to create mailusers without setting quota for each of them?
I mean i want create user with quota -1 as default and only quota which matters will be total Mailbox quota for Client. Better thing should be maildomain quota, but it is not implemented
This is working in ISPC2 (but different, there is quota for domain)


I'd like also to know how to set default Spam policy selected for newly created domain and user eg "normal" instead of "not-enabled"


thaks for any hints

falko 30th October 2010 14:27

Quote:

Originally Posted by radim_h (Post 243196)
is there any way how to create mailusers without setting quota for each of them?
I mean i want create user with quota -1 as default and only quota which matters will be total Mailbox quota for Client. Better thing should be maildomain quota, but it is not implemented
This is working in ISPC2 (but different, there is quota for domain)

No, because the mail users are virtual, so system quota doesn't apply to them.


Quote:

Originally Posted by radim_h (Post 243196)
I'd like also to know how to set default Spam policy selected for newly created domain and user eg "normal" instead of "not-enabled"

Currently this isn't possible without changing the source code.

radim_h 31st October 2010 20:30

Quote:

=falko;243306]No, because the mail users are virtual, so system quota doesn't apply to them.
It should be nice to have options for quotas on domains one day, together or instead of user quotas


Quote:

Currently this isn't possible without changing the source code.
What i can modify please?
I have about 15 modifications on default setup so one more is fine .o)

till 1st November 2010 09:25

Quote:

It should be nice to have options for quotas on domains one day, together or instead of user quotas
We would implement this if one of the supported lda's has such a feature. But neither courier nor dovecot supports this.

Quote:

What i can modify please?
I have about 15 modifications on default setup so one more is fine .o)
You will have to modify the code in the /usr/local/ispconfig/interface/web/mail/mail_user_edit.php file and add e.g. a line like this right after line 95:

if($this->id == 0) $tmp_user["policy_id"] = 5;

where 5 is the numeric ID of the policy that you want to select as default. So the resulting file part looks like this:

......
$policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>";
if($this->id == 0) $tmp_user["policy_id"] = 5;
if(is_array($policys)) {
.......

radim_h 1st November 2010 09:37

Quote:

Originally Posted by till (Post 243390)
We would implement this if one of the supported lda's has such a feature. But neither courier nor dovecot supports this.

i meant filesytem quota on /var/vmail/domain.tld directory...

till 1st November 2010 10:01

Quote:

i meant filesytem quota on /var/vmail/domain.tld directory...
Thats not possible for virtual users as filesystem quota works on the username which is idenntical for all email accounts. Quota in virtual user setups is implemented by the lda and so it has to be implemented in courier or dovecot.


All times are GMT +2. The time now is 11:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.