Re: [Exim] Plus extension not in FAQ?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Sheldon Hearn
CC: exim-users
Betreff: Re: [Exim] Plus extension not in FAQ?
On Tue, 5 Mar 2002, Sheldon Hearn wrote:

> Am I being obtuse, or is the fairly frequently required "plus extension"
> not covered in the FAQ? I found sample configuration C010, but it's
> horribly complicated. I had to figure this director out for myself:
>
> # This director allows localpart+arbitrary_extension@??? style
> # addresses.
> #
> # If you don't have a LOCAL_DOMAINS macro defined, replace it with
> # your list of local domains.
> #
> plus_extension:
> domains = LOCAL_DOMAINS
> local_parts = ^.+\\+.+
> driver = smartuser
> new_address = ${extract{1}{+}{${local_part}}}@${domain}
>
> If I'm _not_ being obtuse, can I suggest its inclusion in the FAQ?
> Perhaps as an answer to:
>
>    How do I configure Exim to allow arbitrary extensions in local
>    localparts, of the form "+extension"?


The answer to the question is much simpler than your director above.
Just put

  suffix = +*
  suffix_optional       <-- if you want it to be optional


on all the relevant directors.


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