<br><br><div><span class="gmail_quote">On 3/1/07, <b class="gmail_sendername">Timo Sirainen</b> <<a href="mailto:tss@iki.fi">tss@iki.fi</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 2007-03-01 at 20:29 +0800, Abu Gid wrote:<br>><br>> You'll have to make your userdb return<br>> "quota=dirsize:storage=123456"<br>> setting for different users. What userdb do you use? http://
<br>> <a href="http://wiki.dovecot.org/Quota">wiki.dovecot.org/Quota</a> shows some examples for SQL/LDAP.<br>><br>><br>> The problem is I don't use any userdb, only use the passdb_pam.<br><br>You do use a userdb. Most likely passwd. Otherwise you couldn't log in
<br>at all.<br><br>> So, do I have to use userdb to authenticate users? or can I just use<br>> any userdb for the quota part only. If that is so how can I set up the<br>> db config? search the <a href="http://wiki.dovecot.org/Quota">
wiki.dovecot.org/Quota</a> but could not find any<br>> config that suit my current config ,that's why I plan to use the dict<br>> server. Thanks again.<br><br>You'll still have the exact same problem with dict, since you'd still
<br>have to set the quota from the userdb.<br><br>There's an alternative way you could do with<br><a href="http://wiki.dovecot.org/PostLoginScripting">http://wiki.dovecot.org/PostLoginScripting</a>, for example (just the
<br>simplest script I could think of):<br><br>#!/bin/sh<br><br>quota=/etc/dovecot-quota/$USER<br>if [ -f $quota ]; then<br> export QUOTA=dirsize:storage=`cat $quota`<br>fi<br><br>exec /usr/local/libexec/dovecot/imap</blockquote>
<div><br>Have done that . What should I put in the plugin {}.<br>Should it be : <br><pre>quota = dirsize:storage=10240 or <br>quota = $QUOTA<br></pre>Sorry, I'm a bit of newbie at this.<br> -- azhar --<br> <br></div>
<br></div><br>