Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users
lookup in and
 

Index | Next | Previous | View Flat


Klaus+exim at Ethgen

Dec 1, 2011, 7:14 AM


Views: 498
Permalink
lookup in and

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

I stumble over the problem that "lookup" is not possible inside of an
"and" construct.

While it seems to be ok to have as much "condition" lines as you wish in
a acl, a router only accept one. That implies to use "and" for all
conditions. But if I need to use a "lookup" inside them I get an error.
However, after some search I found one post in this list that this is
not possible. But there is no way out of the problem. Also I do not find
any about this problem in the original documentation.

It might be a solution to use the sole lookup and put the rest of the
"and" in the first expansion part. But what if the lookup should be only
done if the first condition matches?

At the moment I utilize a embedded perl construct. This is not nice as
all lookups can be done by exim itself. But I find no way else out.
Anybody an idea?

${if and{{={25}{$received_port}}{lookup ldap{...}}}}

Regards
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus [at] Ethgen>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQGcBAEBCgAGBQJO15nxAAoJEKZ8CrGAGfasKQUL/jmjJT2Xi6StQe3jYqe7wZcx
IJbGjSqIwXcGWRNH2NoqSa60dWbni8KgMfG/TytzphuZOLfI17/mvUKMIk6Iwh9b
qj/xlpJXQBKK0+hErbmBUEDbAlxY4V7JnDoPIwDAEtZRjy2/BVNcfXrVXg+FwiKt
fQtlWscJx3frnBsty7jkbC3qjAaWUXidN5ue+QbrJOoz1OpCdh8y4AO1B+Qf1CZv
TxRozVjGQ53WbJ5pmuHxg8jIYrSREWG5kpQ5PpTX5OOIvXTdJ1ASG/B7n67+dbJw
/egy1uFu0Gjn4v6B+MsyN4f8jd/T+aDOUskdpIicGalc7vJeS2uwPJVuDqf45rVM
j1IiBTPwo3CF34NKMnuGWRCIUlUh/SPuiTSofhTtq7V/2SweVK08QJZgTQBycwbu
SbMssMw1JFhYZQ1Hvuf+lZdnNfo4dtZzSD4wFlUSQjXK8paQiZHglssdDIWXcZEZ
wmeWaanadHPssRuypENJQf3oXNPqkVZa663zFN5ZQA==
=1fgx
-----END PGP SIGNATURE-----

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Subject User Time
lookup in and Klaus+exim at Ethgen Dec 1, 2011, 7:14 AM
    Re: lookup in and tlyons at ivenue Dec 1, 2011, 7:36 AM
    Re: lookup in and Klaus+exim at ethgen Dec 1, 2011, 8:37 AM
    Re: lookup in and jh at plonk Dec 1, 2011, 9:40 AM
        Re: lookup in and Klaus+exim at Ethgen Dec 1, 2011, 4:09 PM
            Re: lookup in and jh at plonk Dec 4, 2011, 2:53 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.