Re: [exim] alternative to local_part_suffix in ACL?

Top Page
Delete this message
Reply to this message
Author: Marc Sherman
Date:  
To: exim-users
Subject: Re: [exim] alternative to local_part_suffix in ACL?
Chris Knadle wrote:
>
> What I would like to do is something similar to this:
>
>   accept
>     local_parts_suffix = -*
>     condition = ${lookup ldap {ldap://localhost/dc=example,dc=com??sub?\
>                  (|(mailLocalAddress=$local_part_prefix@$domain))} {yes}{no}}


Two options:
1) use $sg in the ACL statement to remove the suffix using a regex
2) set address_data in the router where you use local_parts_suffix, and
use $address_data in the ACL after recipient verification

The second feels cleaner to me -- it puts all the address manipulation
in the router where it belongs, so if you change your suffix logic, you
only have to change it in one place.

Both of these options are documented in chapter 11:
http://exim.org/exim-html-4.60/doc/html/spec.html/ch11.html

- Marc