[Dovecot] Quota, message is never send?

Luuk@dovecot dovecot at vosslamber.nl
Sat May 12 18:59:05 EEST 2012


On 12-05-2012 17:42, Luuk at dovecot wrote:
> On 12-05-2012 15:55, Gedalya wrote:
>> On 05/12/2012 04:50 AM, Luuk at dovecot wrote:
>>> It seems i am at 79% of my quota
>>> so, i added a line to conf.d/90-quota.conf, to get a wraning when quota
>>> exceeds 10%:
>> Quota warnings are only sent when you _cross_ the limit, they are not
>> sent (again) when you are already over the limit.
>> So, in your case you will get your next warnings at 90% and 95%.
>>
> 
> OK, so i tweaked my rules a bit, and send meself a huge mail to make
> sure i cross a border. (I've overdone this, because the pdf got base64
> encoded, and stored in Sent AND in INBOX   ;)
> 
> 
> I also followed the suggestion form 'Duane Hill' and delete the path
> before the quota-warning.sh. I hope he did mean that when he was
> referring to the docs ;)
> 
> In the log, the following message showed:
> 2012-05-12 17:11:43 imap(luuk): Error: quota:
> net_connect_unix(/var/run/dovecot/quota-warning.sh) failed: No such file
> or directory
> 
> I think i have to revert the changes, and retest..... ;)
> 


2012-05-12 17:50:22 imap(luuk): Error: quota:
net_connect_unix(/usr/local/bin/quota-warning.sh) failed: Permission
denied (euid=1000(luuk) egid=100(users) missing +w perm:
/usr/local/bin/quota-warning.sh, dir owned by 0:0 mode=0755)
^C
opensuse:/etc/dovecot # ll /usr/local/bin/quota-warning.sh
-rwxr-xr-x 1 root root 301 Apr  9 16:09 /usr/local/bin/quota-warning.sh

Why does this script need +w ?? or am i misreading the error message?


opensuse:/home/luuk # dovecot -n | grep -i quota
mail_plugins = mail_log notify fts fts_squat quota
  quota = maildir:User quota
  quota_rule = *:storage=800M
  quota_rule2 = *:messages=60000
  quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 %u
  quota_warning2 = storage=90%% /usr/local/bin/quota-warning.sh 90 %u
  quota_warning3 = storage=72%% /usr/local/bin/quota-warning.sh 72 %u
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
  mail_plugins = mail_log notify fts fts_squat quota imap_quota
opensuse:/home/luuk #


More information about the dovecot mailing list