On 05/04/2015 09:22 AM, Tom Kinghorn wrote:
> Morning List.
>
> Please could someone explain how the negation takes place.
>
> I have a single address which needs to be excluded from quotas.
>
> under *groups* i have:
> whitelist_quotas - which contains the single email address.
>
> Under *Main* i have:
> Default 0 Default System Policy no
> Test 50 Test policy no
>
> *Test* contains:
> Source Destination Disabled
> any, !%whitelist_quotas any no
>
> This gives the error:
>
> [2015/05/04-10:55:43 - 168] [POLICIES] DEBUG: [ID:26/Name:Test]: Main
> policy sources 'any, !%whitelist_quotas'
> [2015/05/04-10:55:43 - 168] [POLICIES] WARNING: [ID:26/Name:Test]: -
> Source 'any' is not a valid specification
'any' or '!%whitelist_quotas' doesn't make sense, if I'd hazard a guess
without looking 'any' is resolved before components of a specification
and is not valid as a component of a specification as it makes no sense
to use it like this.
>
> If i remove the any, it produces
>
> [2015/05/04-11:09:36 - 78] [POLICIES] DEBUG: [ID:26/Name:Test]: Main
> policy sources '!%whitelist_quotas'
> Can't call method "get" on an undefined value at
> /usr/local/lib/cbpolicyd-2.1/awitpt/cache.pm line 256.
>
> I cannot seem to get the exclude to work.
This is line 256:
my $res = $cache->get("$cacheName/$key");
$cache seems to be undefined (it comes from the Cache::FastMmap
package), check your startup logs, failing that please paste all
versions of the libs you're currently using.
-N
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org