Re: [exim] Exim Conditions

Top Page
Delete this message
Reply to this message
Author: Ian Eiloart
Date:  
To: Michal G
CC: <exim-users@exim.org>
Subject: Re: [exim] Exim Conditions

On 22 Apr 2013, at 13:57, Michal G. <michal@???>
wrote:

> Hi,
> Is there anyone how can describe creating of ACL's conditions ? Wiki doesn't said enough about this.


The wiki is not the official documentation, which is at http://www.exim.org/docs.html

I generally prefer to use the PDF format of the documentation, but the html docs at http://www.exim.org/exim-html-current/doc/html/spec_html/index.html are good, too. You'll see that there are 60 chapters, and it's all very good quality.





> For example:
> 1. condition = ${if >{$demime_errorlevel}{2}{1}{0}} - why there is 3 kind of value (2,1,0) ?


Actually, there are four values: $demime_errorlevel, 2, 1, and 0. "if >" compares the first two values. If $demime_errorlevel is greater than 2, then "1" is returned. Otherwise "0" is returned.

> 2. condition = ${lookup{$authenticated_id}lsearch{/etc/mail/block_accounts}{yes}{no}} - why there is yes and no ?


Chapter 10 of the documentation covers expansion items, of which ${lookup is one. In this case, "yes" is returned when the lookup succeeds, and "no" is returned when it fails. The values there could, for example, be another lookup if you wanted. In each case, there are defaults, so you don't have to specify the return values if the defaults are what you want.

> 3. and many other
>
> On net theres thousands of examples with multiple value after variables but how use them ?
>
> --
> Pozdrawiam / Best Regards
> Michał Giżyński
> http://nat.net.pl
>
> --
> ## 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/


--
Ian Eiloart
Postmaster, University of Sussex
+44 (0) 1273 87-3148