[Exim] do-all type-2 virtual delivery file

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Randy Bush
Data:  
Para: exim users
Assunto: [Exim] do-all type-2 virtual delivery file
i am using exim 4, and have a lot of the second type of 'virtual'
domains, those for which there are local users.

for a specific list of users, if the message is for user@ain, i want to
deliver using all the local delivery systems, alias, .forward, append,
....

if it is for @domain, but the user is not in the list for that domain, i
want to reject.

currently i am trying

  bogus:
    driver = redirect
    domains = bogus.com
    local_parts = randy:foux
    data = ${local_part}@???


  bogus_reject:
    driver = redirect
    allow_defer
    allow_fail
    data = :fail: Unknown local part
    domains = bogus.com
    retry_use_local_part


but it requires hacking the config file for each added domain.

i would like to avoid having all the files needed by "41.6. Virtual
domains" using

  my_domains:
    driver = accept
    domains = dsearch;/etc/mail/domains
    local_parts = lsearch;/etc/mail/domains/$domain
    transport = my_mailboxes


and i don't want direct transport either, as one needs to check for
aliasing, .forward, ...

i would love to have a single file something like

  bogus.com   randy:foux
  foo.com     barre:feene:frob
  ...


a message comes for some user@domain
  if dom.ain is in the list
     if user is in the rhs for that domain
        deliver using alias/forward/append/etc
     else (user not in rhs for that domain) reject
  else (domain not in list) fall through to next router


make sense?

randy