[Dovecot] my quota warning script not getting executed2

ihab ihab_mishriki at hotmail.com
Thu Nov 7 15:33:03 EET 2013


Why is my quota warning script not getting executed? :( dovecot version is
1.2.15
this is part of dovecot.conf 
protocol imap {
listen = 127.0.0.1:143
#ji1 quota config
mail_plugins = quota
}
quota = maildir:User quota
quota_rule = *:storage=2M
quota_exceeded_message=Quota exceeded please go http://www.go.com .

quota_warning = storage=99%% /usr/local/bin/quota-warning.sh 99 %u
quota_warning2 = storage=98%% /usr/local/bin/quota-warning.sh 98 %u
quota_warning3 = storage=97%% /usr/local/bin/quota-warning.sh 97 %u

and this is quota-warning.sh

FROM="postmasterEmail"

msg="From: $FROM
To: TEST EMAIL
Subject: Your email quota is 10% full
Your mailbox is now 10% full."

echo -e "$msg" | /usr/sbin/sendmail -f $FROM "TEST EMAIL "
exit 0



--
View this message in context: http://dovecot.2317879.n4.nabble.com/my-quota-warning-script-not-getting-executed2-tp45196.html
Sent from the Dovecot mailing list archive at Nabble.com.


More information about the dovecot mailing list