[Exim] alias settings and multiple personal mailboxes

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Marc Haber
Data:  
Para: exim-users
Asunto: [Exim] alias settings and multiple personal mailboxes
Hi,

users have multiple aliases, implemented via an aliasfile-director.

mailbox:    mailbox
first:        mailbox
last:        mailbox
first.last:    mailbox


This works fine. We now want to implement multiple personal mailboxes,
allowing arbitrary suffixes. I have added:

suffix = "+*"
suffix_optional = yes

to the relevant directors (system_aliases, userforward and localuser).

Especially, my system_aliases director looks like this:

system_aliases:
  driver                = aliasfile
  file                  = /etc/aliases
  search_type           = lsearch*
  suffix                = "-*"
  suffix_optional       = yes


Addressing to mailbox+foo works fine. However, the system_aliases
director obviously does not strip the suffix before trying the match,
thus first.last+foo isn't properly aliased to mailbox+foo as it is
intended to work.

What I would like to have is:

(1)
deliver mailbox+foo, first+foo, last+foo and first.last+foo to
mailbox+foo, allowing a user .forward file to sort out the message to
the intended folder.

(2)
if, however, mailbox+bar is explicitly aliased to external@???
in /etc/aliases, deliver mailbox+bar, first+bar, last+bar and
first.last+bar to external@???.

Thinking more closely will probably show that exim isn't able to
decide if behavior (1) or behavior (2) is intended. For example, having

mailbox:    mailbox
mailbox+bar:    external@???
first.last:    mailbox


When I e-mail to first.last+foo, this should be aliased to mailbox+foo
by the third line, which is matched by the first line. When I e-mail
to first.last+bar, this should be aliased to mailbox+bar by the third
line, which in turn matches the second line. Hm. This will probably
work.

Now, how do I configure exim to properly handle the suffixes in the
system_aliases director?

Any hints will be appreciated.

Greetings
Marc