Re: [Exim] .how to do qmail-style alias partial wildcards?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Kirill Miazine
Date:  
À: Ben Hardy
CC: exim-users
Sujet: Re: [Exim] .how to do qmail-style alias partial wildcards?
Ben Hardy wrote:
> Thank you. I found these links and your advice very helpful.
>
> What I ended up doing was adding a director (to the end of the list)
>
> qmail_suffixes:
>         driver = smartuser
>         suffix = -*
>         new_address =  $local_part${sg {$local_part_suffix}{-([^-]*)\$}{}}@$domain
>         new_director = system_aliases

>
> so any incoming message addressed to boing-1234 gets reduced to boing,
> for which I have a pipe alias which processes the boings :)


Be careful - you should rather say

    ${quote:\
        $local_part${sg {$local_part_suffix}{-([^-]*)\$}{}}\
     }@$domain


since $local_part_suffix can contain some characters which will make the
new resulting address invalid (e.g. a space). Just to be on the safe
side.

> existing aliases with hyphens (like mailman's aliases) are not affected
> (yay!)
>
> cheers
> b
>
> On Wed, 2003-07-09 at 01:59, Kirill Miazine wrote:
> > Actually the fact that I remember nothing about Exim 3 made me check
> > Exim 3 docs - the name of the option you will have to look for is
> > "suffix", not "local_part_suffix".
> >
> > http://www.no.exim.org/exim-html-3.30/doc/html/spec_21.html#SEC620
> >
> > Below is a configuration file for converting a qmail system to Exim 3,
> > written by Nico (where is he now?). You may find some hints there.
> >
> >     http://mail.tmtowtdi.de/exim/exim3.qmail


--
Kirill Miazine
mailto:km@krot.org
http://km.krot.org/