drum.lucas at gmail.com
2011-Feb-28 13:49 UTC
[Dovecot] Dovecot+Postfix+Mysql+quotas doesn't work
Hi ! I'm using postfix with mysql, dovecot and squirrelmail for WEBMAIL In my dovecot.conf I've: plugin { quota = maildir:User quota quota2 = maildir:Shared quota:ns=Public/ quota_rule = *:storage=400M quota_rule2 = Trash:storage=100M 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 } In my webmail, he informs me that I'm using the percentage of quota. But I can't make the TRASH folder is ignored. That is, I can't put a higher limit on it than the others. Am I doing something wrong? Another thing. I'm not receiving message of quota exceeded. This is with the MTA or dovecot? ############################################################################################################## ############################################################################################################## ############################################################################################################## ############################################################################################################## My quota-warning.sh: #!/bin/sh PERCENT=$1 FROM="postmaster at xxxxxxxx.br" qwf="/tmp/quota.warning.$$" echo "From: $FROM To: $USER To: postmaster at xxxxxxx.br Subject: Your email quota is $PERCENT% full Content-Type: text/plain; charset="UTF-8" Sua caixa de e-mail est?: $PERCENT% full." >> $qwf cat $qwf | /usr/sbin/sendmail -f $FROM "$USER" rm -f $qwf exit 0 ############################################################################################################## ############################################################################################################## ############################################################################################################## DOVECOT: dovecot.x86_64 1.0.7-7.el5 POSTFIX: postfix.x86_64 2:2.3.3-2.1.centos.mysql_pgsql MYSQL: mysql-server.x86_64 5.0.77-4.el5_5.4 thank's ! -- Atenciosamente; Graciously; *Lucas Possamai * http://psyscrew.posterous.com/ "Sexo? O governo d? camisinha! Engravidou? Bolsa fam?lia! Preso? Ele d? dinheiro! Agora vai estudar pra voc? v?." "Sucesso ? a capacidade de enfrentar o fracasso sem perder o entusiasmo" *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. *SAFETY INFORMATION:* This e-mail is strictly personal use. The information contained here may be confidential and / or privileged. If you aren't the intended recipient and received the message in error, please notify the sender immediately and delete the email, being expressly forbidden the use, copying and / or disclosure of information, under penalty of accountability. *P* Antes de imprimir, pense em sua responsabilidade e seu compromisso com o meio ambiente. *P* Before printing, think about your responsibility and commitment to the environment.**
drum.lucas at gmail.com
2011-Feb-28 22:47 UTC
[Dovecot] Dovecot+Postfix+Mysql+quotas doesn't work
PLEASE ! Any help? 2011/2/28 drum.lucas at gmail.com <drum.lucas at gmail.com>> Hi ! > I'm using postfix with mysql, dovecot and squirrelmail for WEBMAIL > > In my dovecot.conf I've: > > plugin { > quota = maildir:User quota > quota2 = maildir:Shared quota:ns=Public/ > quota_rule = *:storage=400M > quota_rule2 = Trash:storage=100M > 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 > } > > In my webmail, he informs me that I'm using the percentage of quota. But I > can't make the TRASH folder is ignored. That is, I can't put a higher > limit on it than the others. > Am I doing something wrong? > > Another thing. I'm not receiving message of quota exceeded. This is with > the MTA or dovecot? > > > ############################################################################################################## > > ############################################################################################################## > > ############################################################################################################## > > ############################################################################################################## > > My quota-warning.sh: > > #!/bin/sh > > PERCENT=$1 > FROM="postmaster at xxxxxxxx.br" > qwf="/tmp/quota.warning.$$" > > echo "From: $FROM > To: $USER > To: postmaster at xxxxxxx.br > Subject: Your email quota is $PERCENT% full > Content-Type: text/plain; charset="UTF-8" > > Sua caixa de e-mail est?: $PERCENT% full." >> $qwf > > cat $qwf | /usr/sbin/sendmail -f $FROM "$USER" > rm -f $qwf > > exit 0 > > > > ############################################################################################################## > > ############################################################################################################## > > ############################################################################################################## > > > > DOVECOT: dovecot.x86_64 1.0.7-7.el5 > POSTFIX: postfix.x86_64 2:2.3.3-2.1.centos.mysql_pgsql > MYSQL: mysql-server.x86_64 5.0.77-4.el5_5.4 > > thank's ! > > > > -- > > Atenciosamente; > > Graciously; > > *Lucas Possamai > * > > http://psyscrew.posterous.com/ > > "Sexo? O governo d? camisinha! Engravidou? Bolsa fam?lia! Preso? Ele d? > dinheiro! Agora vai estudar pra voc? v?." > > "Sucesso ? a capacidade de enfrentar o fracasso sem perder o entusiasmo" > > *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. > > *SAFETY INFORMATION:* This e-mail is strictly personal use. The > information contained here may be confidential and / or privileged. If you > aren't the intended recipient and received the message in error, please > notify the sender immediately and delete the email, being expressly forbidden > the use, copying and / or disclosure of information, under penalty of > accountability. > *P* Antes de imprimir, pense em sua responsabilidade e seu compromisso com > o meio ambiente. > *P* Before printing, think about your responsibility and commitment to the > environment.** >-- Atenciosamente; Graciously; *Lucas Possamai * http://psyscrew.posterous.com/ "Sucesso ? a capacidade de enfrentar o fracasso sem perder o entusiasmo" "Success is the ability to cope with failure without losing enthusiasm" *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. *SAFETY INFORMATION:* This e-mail is strictly personal use. The information contained here may be confidential and / or privileged. If you aren't the intended recipient and received the message in error, please notify the sender immediately and delete the email, being expressly forbidden the use, copying and / or disclosure of information, under penalty of accountability. *P* Antes de imprimir, pense em sua responsabilidade e seu compromisso com o meio ambiente. *P* Before printing, think about your responsibility and commitment to the environment.**