[Dovecot] different users with different quota
Hello,
How can one assign different users different Quota? So properly?
quota_rule1 = userONE:storage=1G quota_rule2 = Trash:storage=100M quota_rule3 = SPAM:ignore
quota_rule4 = userTWO:storage=5M quota_rule5 = Trash:storage=50M quota_rule6 = SPAM:ignore
and so on ... Right or how?
-- Mit freundlichen Grüßen, Jim Knuth
P.S.: Bitte senden Sie KEINE HTML-Mails! Zufallszitat: Die Geschichte wird freundlich mit mir umgehen, denn ich habe vor, sie zu schreiben. [Churchill]
Jim Knuth jk@jkart.de wrote:
How can one assign different users different Quota? So properly?
No, totally wrong, sorry.
quota_rule1 = userONE:storage=1G quota_rule2 = Trash:storage=100M quota_rule3 = SPAM:ignore
quota_rule4 = userTWO:storage=5M quota_rule5 = Trash:storage=50M quota_rule6 = SPAM:ignore
and so on ... Right or how?
Have you read http://wiki2.dovecot.org/Quota/Configuration and http://wiki2.dovecot.org/UserDatabase/ExtraFields?
How your different user quotas are configured depends on the userdb backend you use.
Grüße, S°
-- Sig lost. Core dumped.
am 23.03.11 17:33 schrieb Sven Hartge sven@svenhartge.de:
Jim Knuthjk@jkart.de wrote:
How can one assign different users different Quota? So properly?
No, totally wrong, sorry.
quota_rule1 = userONE:storage=1G quota_rule2 = Trash:storage=100M quota_rule3 = SPAM:ignore
quota_rule4 = userTWO:storage=5M quota_rule5 = Trash:storage=50M quota_rule6 = SPAM:ignore
and so on ... Right or how?
Have you readhttp://wiki2.dovecot.org/Quota/Configuration and http://wiki2.dovecot.org/UserDatabase/ExtraFields?
How your different user quotas are configured depends on the userdb backend you use.
it`s via pam
Grüße, S°
-- Mit freundlichen Grüßen, Jim Knuth
P.S.: Bitte senden Sie KEINE HTML-Mails! Zufallszitat: Nichts teilen wir so gerne an andre mit als das Siegel der Verschwiegenheit - samt dem, was darunter ist. [Nietzsche]
On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
am 23.03.11 17:33 schrieb Sven Hartge sven@svenhartge.de:
Sorry Sven, this is not against you!
Jim Knuthjk@jkart.de wrote:
How can one assign different users different Quota?
[..]
Have you readhttp://wiki2.dovecot.org/Quota/Configuration and
This link alone would have been a sufficient answer to your question.
This could be undoubtedly counted as spoon feeding.
Jim, RTFM!
How your different user quotas are configured depends on the userdb backend you use.
it`s via pam
PAM is no userdb: http://wiki2.dovecot.org/PasswordDatabase/PAM
"Usually PAM is used with passwd (NSS) or static user databases." is a direct quote from this link and should tell you which example to follow in Sven's links.
Dennis
am 23.03.11 18:38 schrieb Dennis Guhl dg@dguhl.org:
On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
am 23.03.11 17:33 schrieb Sven Hartgesven@svenhartge.de:
Sorry Sven, this is not against you!
Jim Knuthjk@jkart.de wrote:
How can one assign different users different Quota?
[..]
Have you readhttp://wiki2.dovecot.org/Quota/Configuration and
This link alone would have been a sufficient answer to your question.
This could be undoubtedly counted as spoon feeding.
Jim, RTFM!
How your different user quotas are configured depends on the userdb backend you use.
it`s via pam
PAM is no userdb: http://wiki2.dovecot.org/PasswordDatabase/PAM
"Usually PAM is used with passwd (NSS) or static user databases." is a direct quote from this link and should tell you which example to follow in Sven's links.
Dennis
ok, than
plugin { quota = maildir:UserONE quota quota_rule = *:storage=1G quota_rule2 = Trash:storage=100M quota = maildir:UserTWO quota quota_rule = *:storage=5M quota_rule2 = Trash:storage=50M }
-- Mit freundlichen Grüßen, Jim Knuth
P.S.: Bitte senden Sie KEINE HTML-Mails! Zufallszitat: Eine gute Rede ist eine Ansprache, die das Thema erschöpft, aber keineswegs die Zuhörer. [Churchill]
On Wed, Mar 23, 2011 at 07:36:20PM +0100, Jim Knuth wrote:
am 23.03.11 18:38 schrieb Dennis Guhl dg@dguhl.org:
On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
am 23.03.11 17:33 schrieb Sven Hartgesven@svenhartge.de:
[..]
Jim Knuthjk@jkart.de wrote:
How can one assign different users different Quota?
[..]
Have you readhttp://wiki2.dovecot.org/Quota/Configuration and
This link alone would have been a sufficient answer to your question.
This could be undoubtedly counted as spoon feeding.
Jim, RTFM!
The key is to not only read the manual but to understand, too.
[..]
plugin {
[garbage]
}
What did you make believe this could actually work?
Dennis
am 23.03.11 19:45 schrieb Dennis Guhl dg@dguhl.org:
On Wed, Mar 23, 2011 at 07:36:20PM +0100, Jim Knuth wrote:
am 23.03.11 18:38 schrieb Dennis Guhldg@dguhl.org:
On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
am 23.03.11 17:33 schrieb Sven Hartgesven@svenhartge.de:
[..]
Jim Knuthjk@jkart.de wrote:
How can one assign different users different Quota?
[..]
Have you readhttp://wiki2.dovecot.org/Quota/Configuration and
This link alone would have been a sufficient answer to your question.
This could be undoubtedly counted as spoon feeding.
Jim, RTFM!
The key is to not only read the manual but to understand, too.
*lol* I understand only "Bahnhof", because I understand nothing. Sorry, please give me an example. Thanx.
[..]
plugin {
[garbage]
}
What did you make believe this could actually work?
Dennis
-- Mit freundlichen Grüßen, Jim Knuth
P.S.: Bitte senden Sie KEINE HTML-Mails! Zufallszitat: Mit bösen Worten, die man ungesagt herunterschluckt, hat sich noch niemand den Magen verdorben. [Churchill]
On Wed, Mar 23, 2011 at 07:52:39PM +0100, Jim Knuth wrote:
am 23.03.11 19:45 schrieb Dennis Guhl dg@dguhl.org:
On Wed, Mar 23, 2011 at 07:36:20PM +0100, Jim Knuth wrote:
am 23.03.11 18:38 schrieb Dennis Guhldg@dguhl.org:
On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
am 23.03.11 17:33 schrieb Sven Hartgesven@svenhartge.de:
[..]
Jim Knuthjk@jkart.de wrote:
>How can one assign different users different Quota?
[..]
Have you readhttp://wiki2.dovecot.org/Quota/Configuration and
This link alone would have been a sufficient answer to your question.
This could be undoubtedly counted as spoon feeding.
Jim, RTFM!
The key is to not only read the manual but to understand, too.
*lol* I understand only "Bahnhof", because I understand nothing. Sorry, please give me an example. Thanx.
Prove that you actually read and at least try to understand the directions we give you. Until now you stated a bad idea, answer a question without thought and repeated your bad idea. To top it you tried an ignorant joke and ask us to read the wiki to you.
Have a look at Eric Raymonds How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html particularly http://www.catb.org/~esr/faqs/smart-questions.html#homework and http://www.catb.org/~esr/faqs/smart-questions.html#rtfm.
[..]
plugin {
[garbage]
}
What did you make believe this could actually work?
You should answer questions. They are usually not asked out of the blue.
Dennis
Jim Knuth jk@jkart.de wrote:
am 23.03.11 18:38 schrieb Dennis Guhl dg@dguhl.org:
On Wed, Mar 23, 2011 at 05:44:51PM +0100, Jim Knuth wrote:
am 23.03.11 17:33 schrieb Sven Hartgesven@svenhartge.de:
How your different user quotas are configured depends on the userdb backend you use.
it`s via pam
PAM is no userdb: http://wiki2.dovecot.org/PasswordDatabase/PAM
"Usually PAM is used with passwd (NSS) or static user databases." is a direct quote from this link and should tell you which example to follow in Sven's links.
ok, than
plugin { quota = maildir:UserONE quota quota_rule = *:storage=1G quota_rule2 = Trash:storage=100M quota = maildir:UserTWO quota quota_rule = *:storage=5M quota_rule2 = Trash:storage=50M }
Umm.
Think logical for a moment: Would such a configuration scale to 10 users? 100 users? 10000 users?
No, it would not. So without knowing if this _could_ work, you can outright deduce this one as wrong.
Ask yourself one question:
a) "Do I have different quota_rules for my users?" b) "Are my quota_rules the same for every user?"
If a) then you need to setup a userdb with this information in it (This is documented in the wiki for a text-, LDAP- any SQL-based one, with the LDAP-based one being a bit strange to configure, but I asked a question concerning the syntax not long ago, so the archive is your friend.)
If b) then you can hardcode your quota_rule inside the config, just as you are trying to do.
I would suggest to start with b) and if this works, _then_ work your way up to a).
Hardcoding a "fall back" quota_rule inside the config has also the added benefit of, well, having a fall back, in case the quote inside your userdb is not set for a user.
Grüße, Sven.
-- Sig lost. Core dumped.
participants (3)
-
Dennis Guhl
-
Jim Knuth
-
Sven Hartge