Per-user quota (passwd)

Evgeniy Korneechev ekorneechev at altlinux.org
Thu Jun 29 13:58:22 EEST 2017


Hi!
workaround:
administrator:*:95400500:95400513:Administrator:/home/DOM/administrator:/bin/bash::userdb_quota_rule=*:bytes=10G userdb_mail=maildir:/var/vmail/glu_vrem/administrator/Maildir
administrator at email.dom:*:95400500:95400513:Administrator:/home/DOM/administrator:/bin/bash::userdb_quota_rule=*:bytes=10G userdb_mail=maildir:/var/vmail/glu_vrem/administrator/Maildir

But this is not a solution for 1000 users ...
Maybe is there extra field "userdb_mail=administrator at email.dom" for email to passwd-file?

----- Исходное сообщение -----
> От: "Aki Tuomi" <aki.tuomi at dovecot.fi>
> Кому: "dovecot" <dovecot at dovecot.org>
> Отправленные: Среда, 28 Июнь 2017 г 12:40:48
> Тема: Re: Per-user quota (passwd)

> On 28.06.2017 12:36, Aki Tuomi wrote:
>> On 28.06.2017 12:25, Evgeniy Korneechev wrote:
>>> Hello!
>>> We have passwd=pam, userdb=passwd.
>>> passdb {
>>>   driver = pam #server was entered domain Active Directory
>>> }
>>> userdb {
>>>   driver = passwd
>>>   override_fields = home=/var/vmail/glu_vrem/%u
>>> }
>>>
>>> How can i use per-user quota? Only passwd-file?
>>>
>>> I tried:
>>> userdb {
>>>   args = /etc/imap.passwd
>>>   driver = passwd-file
>>>   override_fields = home=/var/vmail/glu_vrem/%u
>>> }
>>> /etc/imap.passwd:
>>> administrator:*:95400500:95400513:Administrator:/home/DOM/administrator:/bin/bash::userdb_quota_rule=*:bytes=10G
>>>
>>> Authentication and quota - now OK. But doesn't work sending and receiving
>>> mail...
>>> postfix say 'Unknown user'...
>>>
>>>
>>> Turn on auth_debug and auth_verbose and see what it says.
>>>
>>> Aki
> 
> Also you can set auth_username_format = %Ln to force usernames into
> lowercase without domain.
> 
> Aki

-- 
WBR, Korneechev Evgeniy
BaseALT/ALTLinux Team


More information about the dovecot mailing list