[Dovecot] Dovecot Postfix Quota Policy Service

Daniel Luttermann daniel at dlutt.de
Sat May 4 22:11:35 EEST 2013


On 2013-05-04, Robert Schetterer wrote:

> Am 04.05.2013 15:06, schrieb Daniel Luttermann:
>> service quota-status {
>>   client_limit = 1
>>   executable = quota-status -p postfix
>>   unix_listener /var/spool/postfix/private/quota-status {
>>     group = postfix
>>     mode = 0660
>>     user = postfix
>>   }

> try


> service quota-status {
> executable = quota-status -p postfix
> unix_listener /var/spool/postfix/private/quota-status {
> group = postfix
> mode = 0666
> user = postfix
> }
> client_limit = 1
> }

OK, changed the permissions of the service as you suggested:

srw-rw-rw- 1 postfix postfix 0 May  4 20:53 /var/spool/postfix/private/quota-status

Log of the first incoming email:

May  4 20:54:13 mail postfix/postscreen[12627]: CONNECT from [193.99.144.71]:46355 to [217.11.53.6]:25
May  4 20:54:13 mail postfix/postscreen[12627]: PASS OLD [193.99.144.71]:46355
May  4 20:54:13 mail postfix/smtpd[12631]: connect from web.heise.de[193.99.144.71]
May  4 20:54:13 mail postfix/smtpd[12631]: warning: access table unix:private/quota-status entry  has empty value

Mail gets delivered...

Second incoming email (mail.log)

May  4 20:55:16 mail postfix/postscreen[12627]: CONNECT from [193.99.144.71]:33634 to [217.11.53.6]:25
May  4 20:55:16 mail postfix/postscreen[12627]: PASS OLD [193.99.144.71]:33634
May  4 20:55:16 mail postfix/smtpd[12631]: connect from web.heise.de[193.99.144.71]
May  4 20:55:16 mail dovecot: quota-status(daniel at dlutt.de): Error: user daniel at dlutt.de: Error reading configuration: net_connect_unix(/usr/var/run/dovecot/config) failed: Permission denied
May  4 20:55:16 mail postfix/smtpd[12631]: NOQUEUE: reject: RCPT from web.heise.de[193.99.144.71]: 450 4.7.1 <daniel at dlutt.de>: Recipient address rejected: Internal error occurred. Refer to server log for more information.; from=<www at heise.de> to=<daniel at dlutt.de> proto=ESMTP helo=<web.heise.de>
May  4 20:55:16 mail postfix/smtpd[12631]: disconnect from web.heise.de[193.99.144.71]

mail.warn:

May  4 20:55:16 mail dovecot: quota-status(daniel at dlutt.de): Error: user daniel at dlutt.de: Error reading configuration: net_connect_unix(/usr/var/run/dovecot/config) failed: Permission denied

Permissions of the Dovecot config service:

srw------- 1 root root 0 May  4 20:53 /usr/var/run/dovecot/config

Maybe the problem has something to do with the double space as pointed
out by Andreas?

    "quota-status entry  has empty value"


--
Daniel




More information about the dovecot mailing list