Sam Varshavchik a écrit :
> Jérôme Blion writes:
>
>> Hello,
>>
>> (as you noticed) I'm trying to set up quotas on a fresh Courier 0.60 
>> + Courier-authlib 0.61 server.
>> I want to use virtual users stored in a Mysql database.
>>
>> I created the same table as indicated in the README: 
>> http://www.courier-mta.org/authlib/README.authmysql.html
>>
>> # /usr/lib/courier/sbin/authtest [EMAIL PROTECTED] toto
>> Authentication succeeded.
>>
>>      Authenticated: [EMAIL PROTECTED]  (uid 65534, gid 65534)
>>     Home Directory: /home/courier/jerome
>>            Maildir: (none)
>>              Quota: 1S
>> Encrypted Password: oX7w/WT7FRqvM
>> Cleartext Password: toto
>>            Options: (none)
>>
>>
>> As "defaultdelivery", I set up: "| /usr/lib/courier/bin/deliverquota 
>> -c -w 90 ./Maildir"
>
> Append \$MAILDIRQUOTA to the above (mind the quoting and the escaping).
IT WORKS (I checked IMAP too) !!! Can you confirm me that mails are 
refused with a temporary failure?

Sep 25 08:35:26 sandbox courierd: newmsg,id=0000F6A5.48DB312E.000067ED: 
dns; localhost (localhost [127.0.0.1])
Sep 25 08:35:26 sandbox courierd: 
started,id=0000F6A5.48DB312E.000067ED,from=<[EMAIL 
PROTECTED]>,module=local,[EMAIL PROTECTED]/home/courier/jerome!| 
/usr/lib/courier/bin/deliverquota -c -w 90 ./Maildir 
$MAILDIRQUOT...,addr=<jerome>
Sep 25 08:35:26 sandbox courierd: Waiting.  shutdown time=none, wakeup 
time=Thu Sep 25 08:36:02 2008, queuedelivering=11, inprogress=5
Sep 25 08:35:26 sandbox courierlocal: 
id=0000F6A5.48DB312E.000067ED,from=<[EMAIL PROTECTED]>,addr=<[EMAIL 
PROTECTED]>: 
Mail quota exceeded.
Sep 25 08:35:26 sandbox courierlocal: 
id=0000F6A5.48DB312E.000067ED,from=<[EMAIL PROTECTED]>,addr=<[EMAIL 
PROTECTED]>,status: 
failure
Sep 25 08:35:26 sandbox courierd: completed,id=0000F6A5.48DB312E.000067ED

In the deliverquota manpage, I read that: "The second argument to 
*deliverquota* is optional. If present, /|quota|/ specifies a new quota 
setting for this maildir. Specifying /|quota|/ is equivalent to running 
maildirmake(1) <http://www.courier-mta.org/maildirmake.html> with the 
|-q| option. The second argument to *deliverquota* is considered 
obsolete, and may be removed in the future."

Do you know when you will clean that?
Do you know a better way to manage dynamic quotas?

Thanks for the tip :)
Jerome Blion.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to