Re: [Exim] $local_part_suffix outside of routers

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Giuliano Gavazzi
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] $local_part_suffix outside of routers
On Sat, 14 Dec 2002, Giuliano Gavazzi wrote:

> Is there any particular reason why $local_part_suffix (and I guess
> $local_part_prefix too) is not accessible from ACLs (I have checked
> with a rcpt one)?


Yes. Suffixes and prefixes are defined only for those routers where you
set the options. So how can Exim know about them in an ACL?

> Well, I guess I know, you cannot set local_part_suffix_optional and
> local_part_suffix outside of a router, so my question becomes, why
> cannot these option be set globally (and perhaps be overridded by the
> router one?)?


In my mind, these affixes are router-specific. You don't want them
applying to remote addresses for example.

> Why do I want it? Because the $local_part_suffix is not only required
> to check existence of a local user, it can also be used to
> conditionally accept recipients, for example.


If you just want to check for suffixes, you can use something like

accept local_parts = ^.*-suffix

for example.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.