[Dovecot] Quota_rule in dovecot 1.1

drum.lucas at gmail.com drum.lucas at gmail.com
Thu Jan 13 15:34:34 EET 2011


What's up!?

Well...
i'm using this packages:

dovecot.x86_64                       1.0.7-7.el5
quota.x86_64                     1:3.13-1.2.5.el5
Squirrelmail
Postfix
MYSQL

Centos 5.5 64 Bits


I configured my dovecot.conf to leave the "TRASH" folder outside the "quota",
but without
success ...

How do I proceed to give effect to my setup?

My dovecot.conf:

plugin {
quota = maildir
quota2 = maildir:user quota
*quota_rule = Trash:ignore*
quota_exceeded_message = Quota excedida. Por favor, exclua alguns emails!
quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95
quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80
}

My dovecot-sql.conf:

driver = mysql
connect = host=localhost dbname=mail user=mail password=mail
# The new name for MD5 is MD5-CRYPT so you might need to change this
depending on version
default_pass_scheme = MD5
# Get the mailbox
user_query = SELECT '/var/vmail/%d/%n' as home, 'maildir:/var/vmail/%d/%n'
as mail, 150 AS uid, 12 AS gid, CONCAT('dirsize:storage=', ROUND(
mailbox.quota / 1024 ) ) AS quota FROM mailbox WHERE username = '%u' AND
active = '1'
######user_query = SELECT '/var/vmail/%d/%n' as home,
'maildir:/var/vmail/%d/%n' as mail, 150 AS uid, 12 AS gid,
CONCAT('*:storage=', quota_bytes, 'B') AS quota FROM mailbox WHERE username
= '%u' AND active = '1'
# Get the password
password_query = SELECT username as user, password, '/var/vmail/%d/%n' as
userdb_home, 'maildir:/var/vmail/%d/%n' as userdb_mail, 150 as userdb_uid,
12 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1'
# If using client certificates for authentication, comment the above and
uncomment the following
#password_query = SELECT null AS password, .%u. AS user


Thanks

-- 

Atenciosamente;

*Lucas Possamai
*



INFORMAÇÃO DE SEGURANÇA: Este e-mail é de uso restritamente pessoal. As
informações nele contidas podem ser de caráter confidencial e/ou
privilegiada. Se você não for o destinatário e recebeu a mensagem por
engano, avise imediatamente o remetente e em seguida apague o e-mail,
ficando, expressamente vedado o uso, cópia e/ou divulgação das informações
contidas, sob pena de responsabilização.
*P* Antes de imprimir, pense em sua responsabilidade e seu compromisso com o
meio ambiente.


More information about the dovecot mailing list