[Dovecot] 2.0.5: quota warning failing
Daniel Luttermann
daniel at dlutt.de
Wed Oct 6 14:12:00 EEST 2010
Ralf Hildebrandt wrote on 06.10.2010:
>>From the log:
> Oct 6 09:54:10 postamt dovecot: imap(hkunte): Error: quota:
> connect(/usr/local/scripts/quota-warning2) failed: Permission denied
>>From the config:
> quota = maildir
> quota_rule = INBOX.Trash:storage=+2048M
> quota_warning = storage=99%% /usr/local/scripts/quota-warning2 99 %u
> quota_warning2 = storage=95%% /usr/local/scripts/quota-warning2 95 %u
> quota_warning3 = storage=90%% /usr/local/scripts/quota-warning2 90 %u
> quota_warning4 = storage=85%% /usr/local/scripts/quota-warning2 85 %u
>
> service quota-warning {
> executable = script /usr/local/scripts/quota-warning2
> # use some unprivileged user for executing the quota warnings
> user = vmail
> unix_listener quota-warning {
> }
> }
> But how exactly does this work? the user vmail cannot write to the
> users' mailboxes, so I'd have to run /usr/local/scripts/quota-warning2
> as root, don't I?
Personally I use this:
service quota-warning {
executable = script /usr/bin/quota-warning.sh
user = vmail
unix_listener quota-warning {
mode = 0660
user = vmail
group = vmail
}
}
Same for some other sockets like "dict"...
--
Daniel
More information about the dovecot
mailing list