On 2014-07-02 at 17:15 +0400, Oleg wrote:
> I use macros LOCALDOMAIN because a domains list isn't expanded. E.g.:
>
> deny message = You must authenticate youself before using this domain
> condition = ${if inlist{$sender_address_domain}{+local_domains}}
> ! authenticated = *
>
> doesn't work.
>
> Do anybody know how use lists in string expansions?
condition = ${if match_domain{$sender_address_domain}{+local_domains}}
The match_domain condition takes an arbitrary specification in the
second parameter; however, because too many real-world setups introduced
security holes using this, we restricted it so that the second parameter
is not subject to dollar-expansion. Every other type of lookup still
works.
If you need to dollar expand the second parameter, you use inlisti or
some other more complex condition; if you don't need to dollar-expand
it, then the common case match_* conditions provide the most power and
flexibility.
--
My employer, Apcera Inc, is hiring sysadmin; primarily San Francisco:
http://www.apcera.com/jobs/#operations-engineer
(but all the mistakes in this email are made in my personal capacity)