Hi all,
I have finally get working the quota with dovecot. Now i am setting up the quota warning, with this in dovecot.conf:
quota_warning = storage=70%% /usr/bin/quota_warning.sh 70
In the plugin section naturally.
All seems to work fine, the quota is calculated right, but seems the script is not executed... In dovecot logs i have this:
deliver(test@test.com): Oct 27 15:14:53 Info: Quota warning: bytes=10752000 (70%) messages=0 (0%) command=/usr/bin/quota_warning.sh 70
But...nothing happens.
My quota_warning.sh is this:
#!/bin/bash PERCENT=$1 echo "/usr/lib/dovecot/deliver -d "$USER" -c /usr/local/etc/dovecot-nowarning.conf" > /var/log/quotanotify cat << EOF | /usr/lib/dovecot/deliver -d "$USER" -c /usr/local/etc/dovecot-nowarning.conf From: postmaster@mediaservice.net Subject: quota warning Your mailbox is now $PERCENT% full. EOF
I have added the echo for debug pourpose, but no file was created, so the script is not executed. I thinked is a permission problem, but seems not. Now the script is like this:
-rwx--x--x 1 dovecot dovecot 317 Oct 27 15:30 /usr/bin/quota_warning.sh
What can be the problem? Stuck!!!
Claudio.