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: quota@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(testuser@dlutt.de): Error: read(/var/run/dovecot/dict) failed: Remote disconnected Jul 24 01:08:34 tux dovecot: lda(testuser@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(testuser@dlutt.de): Error: read(/var/run/dovecot/dict) failed: Remote disconnected Jul 24 01:18:11 tux dovecot: lda(testuser@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