Re: [exim] Help needed with router configuration [SOLVED]

Top Page
Delete this message
Reply to this message
Author: Drav Sloan
Date:  
To: Mike Clarke
CC: exim-users
Subject: Re: [exim] Help needed with router configuration [SOLVED]
Mike Clarke wrote:
> > suffixed_user:
> > driver = redirect
> > check_local_user
> > file = $home/.suffixrc
> > local_part_suffix = -*
> > allow_filter
> > allow_fail
> > no_verify
> > file_transport = address_file
> > directory_transport = dravs_suffix_maildir
> >
> > The use then has to create a .suffixrc in their home dir to activate
> > this address. Mine contains:
> >
> > --- BEGIN ---
> > # Exim Filter
> >
> > if $local_part_suffix contains "-" then
> >     # note that the save path here is for maildir, you will probably
> >     # want to remove the trailing / to make it an mbox delivery. The 
> >     # lc/substr  stuff lowercases the folder name and takes the suffix 
> >     # part of the address.
> >     save "$home/.folders/${lc:${substr_1:$local_part_suffix}}/"
> > endif

> >
> > # paranoia
> > if not delivered then
> >     save $home/.mail/anomalous/
> > endif
> > --- END ---

> >
> > This means I can create any email I want just by adding a hypen and a
> > new mailbox name for the new address, and the address will then
> > deliver to that mailbox.
>
> An interesting method but I think my approach is a bit simpler:
>
> system_aliases:
> driver = redirect
> allow_fail
> allow_defer
> data = ${lookup{$local_part}wildlsearch{/etc/aliases}}
> user = mailnull
> group = mail
> file_transport = address_file
> pipe_transport = address_pipe
>
> I.E. just change lsearch to wildsearch in the default configuration for
> the system_aliases router.
>
> Then to allow user mike to use wildcard email names just
> edit /etc/aliases with a line like this
>
> ^mike-.*: mike
>
> ... without the need for the user to have to set up any files.


But without the delivery to _separate_ mail folders for the end user. This
was the motivation behind my configuration setup (that and the ability for users
to "switch the functionality on" by placing the .suffixrc in place - no access to
exim configs required).

Regards

D.