Re: [exim] testing a quota value pulled in from LDAP

Góra strony
Delete this message
Reply to this message
Autor: Pat Hastings
Data:  
Dla: exim-users
Temat: Re: [exim] testing a quota value pulled in from LDAP
Hi,

I have tried to use sg as suggested but I just get a lot of
"maildir_virtual transport failed: missing or misplaced { or }" messages
in the panic log

The line I am trying is:

quota = ${sg${lookup
ldap{ldap://LDAPSERVER/o=$domain,LDAPBASE?quota?sub?(mail=$local_part@$d
omain)}{$value}{20480k}}{\N^0k\N}{100M}}
Each open curly brace has a closed one and the it all seems to match up
but obviously I have the syntax wrong somewhere - can any one help.

Regards,

Pat

-----Original Message-----
From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org]
On Behalf Of Jeremy Harris
Sent: 18 March 2007 21:41
To: exim-users@???
Subject: Re: [exim] testing a quota value pulled in from LDAP


Pat Hastings wrote:
> Is possible to change the code that reads in the quota from the LDAP
> (quota = ${extract{quota}{$address_data}}) so that it pulls in the
> quota from ldap but if the value is 0k then it defaults it to say
> 100M?


Something like

quota = ${sg {${extract{quota}{$address_data}}} {\N^0k\N} {100M}}

maybe?


Cheers,
Jeremy

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]