Re: [Dovecot] quota warning error with dict
Timo Sirainen wrote on 26.07.2010: > On Sat, 2010-07-24 at 01:58 +0200, Daniel Luttermann wrote: >> cat << EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o >> "plugin/quota=dict:user::proxy::quota quota:noenforcing" >> quota = dict:user::proxy::quota > Well, this isn't right.. Assuming dict works normally, dovecot-lda > should be called with one of the following: > -o "plugin/quota=dict:user:noenforcing::proxy::quota" doesn't work. Error: "Error: Unknown dict module" > -o "plugin/quota=dict:user::noenforcing:proxy::quota" works :-) > -o "plugin/quota=dict:user::proxy:noenforcing::quota" doesn't work. Error: "Error: net_connect_unix(noenforcing) failed: No such file or directory" > -o "plugin/quota=dict:user::proxy::noenforcing:quota" doesn't work. Error: "Unconfigured dictionary name 'noenforcing:quota'" > I can never remember which one it is. Should write it to wiki Yes, this would be nice. I've had some problems to figure out the correct syntax of the command line for the LDA... Also I've never tried to use "noenforcing" at this postion. Thanks. -- Daniel
Re: [Dovecot] quota warning error with dict
On Sat, 2010-07-24 at 01:58 +0200, Daniel Luttermann wrote: > cat << EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o > "plugin/quota=dict:user::proxy::quota quota:noenforcing" > quota = dict:user::proxy::quota Well, this isn't right.. Assuming dict works normally, dovecot-lda should be called with one of the following: -o "plugin/quota=dict:user:noenforcing::proxy::quota" -o "plugin/quota=dict:user::noenforcing:proxy::quota" -o "plugin/quota=dict:user::proxy:noenforcing::quota" -o "plugin/quota=dict:user::proxy::noenforcing:quota" I can never remember which one it is. Should write it to wiki :)
[Dovecot] quota warning error with dict
Version: Dovecot 2.0rc3 Hi, I try to get the quota-warning.sh script working with quota/dict but I get some errors. The script looks like: #!/bin/sh PERCENT=$1 USER=$2 cat << EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o "plugin/quota=dict:user::proxy::quota quota:noenforcing" From: qu...@dlutt.de Subject: quota warning Your mailbox is now $PERCENT% full. EOF In 90-quota I use: plugin { quota = dict:user::proxy::quota quota_rule = *:storage=0 } service dict { unix_listener dict { mode = 0660 user = vmail group = vmail } } plugin { quota_warning = storage=90%% quota-warning 90 %u quota_warning2 = storage=80%% quota-warning 80 %u } service quota-warning { executable = script /usr/bin/quota-warning.sh user = vmail unix_listener quota-warning { mode = 0660 user = vmail group = vmail } } When a mailbox is nearly full I get this error: Jul 24 01:08:34 tux dovecot: dict: Error: dict client: Broken handshake Jul 24 01:08:34 tux dovecot: lda(testu...@dlutt.de): Error: read(/var/run/dovecot/dict) failed: Remote disconnected Jul 24 01:08:34 tux dovecot: lda(testu...@dlutt.de): Error: Internal quota calculation error Jul 24 01:08:34 tux dovecot: master: Error: service(quota-warning): child 8139 returned error 75 Jul 24 01:18:11 tux dovecot: dict: Error: dict client: Broken handshake Jul 24 01:18:11 tux dovecot: lda(testu...@dlutt.de): Error: read(/var/run/dovecot/dict) failed: Remote disconnected Jul 24 01:18:11 tux dovecot: lda(testu...@dlutt.de): Error: Internal quota calculation error Jul 24 01:18:11 tux dovecot: master: Error: service(quota-warning): child 8201 returned error 75 Thanks. -- Daniel