Re: [Exim] Deny from all hosts except... ACL help.

Pàgina inicial
Delete this message
Reply to this message
Autor: Alan J. Flavell
Data:  
A: Exim users list
Assumpte: Re: [Exim] Deny from all hosts except... ACL help.
On Mon, 22 Dec 2003, Brett Thorson wrote:

> In my config file I have:
>
> INCOMING_HUBS = 132.151.6.1 : 132.151.1.2


[...]

>   deny    hosts = !INCOMING_HUBS
>           message = use the proper MX please


[..]

> 23708 processing "deny"
> 23708 check hosts = !132.151.6.1 : 132.151.1.2


Negation on the right of the "=" only acts on a single value.

The effect was somewhat obfuscated by the way that you formulated it,
but the actual check that was performed is shown right there in the
log.

> Is there something I am missing here? Do I need that "+" sign in front of my
> constant?


They're two different animals. In exim terminology, you were using a
"macro", but now you're asking whether you should be using a "Named
list". Could I suggest looking these terms up in the documentation,
to see if things get any clearer?

In fact, "10.6. Named lists compared with macros" shows exactly what
you're doing wrong here, with examples.

hope this helps.