problem with quota warning script execution, error 75

Ximo Mira ximo at openmomo.com
Tue Oct 11 07:37:44 UTC 2016


Its working now. 

I thought that i have taken that step before with no success, but looks like I did it wrong. 

Thanks a lot. 

----- Mensaje original -----

De: "Aki Tuomi" <aki.tuomi at dovecot.fi> 
Para: dovecot at dovecot.org 
Enviados: Lunes, 10 de Octubre 2016 11:45:41 
Asunto: Re: problem with quota warning script execution, error 75 

You are running LDA directly, from within user's context. You need to 
let your users access auth-userdb, as explained in the error log entry: 

service auth { 
unix_listener /var/run/dovecot/auth-userdb { 
mode=0777 
} 
} 

Aki 

On 10.10.2016 12:41, Ximo Mira wrote: 
> Output is 0 and mail is delivered. 
> 
> [root at server quota]# ./quota-warning.sh 85 existing_mailbox at domain.com ; echo $? 
> 0 
> 
> ----- Mensaje original ----- 
> 
> De: "Aki Tuomi" <aki.tuomi at dovecot.fi> 
> Para: dovecot at dovecot.org 
> Enviados: Lunes, 10 de Octubre 2016 11:37:26 
> Asunto: Re: problem with quota warning script execution, error 75 
> 
> No, 
> 
> ./quota-warning.sh 85 existing_mailbox at domain.com ; echo $? 
> 
> the '?' is part of the cmdline. 
> 
> On 10.10.2016 12:21, Ximo Mira wrote: 
>> Like this? 
>> 
>> [root at server quota]# ./quota-warning.sh 85 existing_mailbox at domain.com ; echo $ 
>> $ 
>> 
>> Got message succesfully delivered. 
>> 
>> 
>> ----- Mensaje original ----- 
>> 
>> De: "Aki Tuomi" <aki.tuomi at dovecot.fi> 
>> Para: dovecot at dovecot.org 
>> Enviados: Lunes, 10 de Octubre 2016 11:14:01 
>> Asunto: Re: problem with quota warning script execution, error 75 
>> 
>> 
>> 
>> On 10.10.2016 11:49, Ximo Mira wrote: 
>>> Hi, 
>>> 
>>> Im quite new to dovecot and im trying to run quota warning script with no success. Using "quota = count:User quota" and this script: 
>>> ________________________ 
>>> #!/bin/sh 
>>> PERCENT=$1 
>>> USER=$2 
>>> cat << EOF | /usr/libexec/dovecot/dovecot-lda -d $USER -o "plugin/quota=count:User quota:noenforcing" 
>>> From: support at company.com 
>>> To: $USER 
>>> Subject: Quota alert 
>>> 
>>> Quota usage is $PERCENT% 
>>> Bye 
>>> 
>>> EOF 
>>> ________________________ 
>>> 
>>> If I run the script manually from command line it works and message is delivered. If user reaches first configured limit (85%) Im getting this error. 
>>> 
>>> Oct 10 10:38:01 auth: Error: userdb(USER at DOMAIN.com): client doesn't have lookup permissions for this user: userdb reply doesn't contain uid (to bypass this check, set: service auth { unix_listener /var/run/dovecot/auth-userdb { mode=0777 } }) 
>>> Oct 10 10:38:01 lda(USER at DOMAIN.com): Error: user USER at DOMAIN.com: Auth USER lookup failed 
>>> Oct 10 10:38:01 lda: Fatal: Internal error occurred. Refer to server log for more information. 
>>> Oct 10 10:38:01 quota-warning: Fatal: master: service(quota-warning): child 24515 returned error 75 
>>> 
>>> Auth is LDAP based. 
>> Hi 
>> 
>> can you run the script by hand so that you do 
>> ./script params ; echo $? 
>> 
>> Aki 



More information about the dovecot mailing list