Re: [Exim] Plus extension not in FAQ?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nigel Metheringham
Datum:  
To: Sheldon Hearn
CC: exim-users
Betreff: Re: [Exim] Plus extension not in FAQ?
On Tue, 2002-03-05 at 15:50, Sheldon Hearn wrote:

> # 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}


It works by rewriting (internally - not in headers etc) the address to
remove the extension.

I tend to just add suffix handling to all directors (or local routers
for those on exim 4), as in
http://www.exim.org/exim-html-4.00/doc/html/spec_41.html#IX1728

[Steaming hot exim 4 manual reference :-) ]

I do this on all directors (OK I admit it - I haven't updated to exim 4)
other than maybe some of the alias ones... depends on what exactly I'm
trying to do... you can pass the suffixes through the aliases if you try
hard :-)

You also then end up with the suffix to play with separately within your
filter file.

    Nigel.
--
[ Nigel Metheringham           Nigel.Metheringham@??? ]
[ - Comments in this message are my own and not ITO opinion/policy - ]