Hi,
I setting up a Mail server for my company. I have installed Postfix, it
is working fine. I have installed Dovecot IMAP Server, i want to know how to implement quotas for users mailbox. I have created Users using /etc/passwd, No Mysql or LDAP at present. can you provide me the links to do this.
Regards, P. Prasanna
On Ter, 15 Dez 2009, Pattabi Prasanna wrote:
I setting up a Mail server for my company. I have installed Postfix, it
is working fine. I have installed Dovecot IMAP Server, i want to know how to implement quotas for users mailbox. I have created Users using /etc/passwd, No Mysql or LDAP at present. can you provide me the links to do this.
This link should give you some starting point: http://wiki.dovecot.org/Quota
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br
Hi, I edited the /etc/passwd file for one of user, but the quota is not taking effect for this user, the user is able to receive mails more than the quota allocated.
testuser:x:515:516::/home/testuser:/bin/bash:userdb_quota_rule=*.bytes=3M
My output of dovecot -n
base_dir: /var/run/dovecot/ log_path: /var/log/dovecot ssl: no disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable: /usr/local/libexec/dovecot/imap-login mail_privileged_group: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u lda: postmaster_address: postmaster@xxxx.in auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd plugin: quota: maildir:User quota quota_rule: *:storage=2048 quota_rule2: Trash:storage=1024
Are my editing in /etc/passwd and dovecot.conf is correct, guide me
Thanks in advance
Regards, P. Prasanna
On Tue, Dec 15, 2009 at 5:15 PM, Eduardo M KALINOWSKI < eduardo@kalinowski.com.br> wrote:
On Ter, 15 Dez 2009, Pattabi Prasanna wrote:
I setting up a Mail server for my company. I have installed Postfix, it is working fine. I have installed Dovecot IMAP Server, i want to know how to implement quotas for users mailbox. I have created Users using /etc/passwd, No Mysql or LDAP at present. can you provide me the links to do this.
This link should give you some starting point: http://wiki.dovecot.org/Quota
-- Eduardo M KALINOWSKI eduardo@kalinowski.com.br
On Wed, 2009-12-16 at 08:34 +0530, Pattabi Prasanna wrote:
Hi, I edited the /etc/passwd file for one of user, but the quota is not taking effect for this user, the user is able to receive mails more than the quota allocated.
testuser:x:515:516::/home/testuser:/bin/bash:userdb_quota_rule=*.bytes=3M .. userdb: driver: passwd
passwd backend doesn't support extra fields. There's just no way to do what you want with it.
Modifying /etc/passwd the way you did could easily break other programs. Using something like chsh to modify /etc/passwd could drop the fields you added. I wouldn't recommend doing it.
You should probably be using userdb passwd-file. I guess you could simply do userdb passwd-file { args = /etc/passwd } and the above modification would work, but because of 2) I'd recommend using a different file and figuring out some way to keep it in sync with /etc/passwd.
participants (3)
-
Eduardo M KALINOWSKI
-
Pattabi Prasanna
-
Timo Sirainen