[Exim] Combining Delivery and Forwards in Virtual Hosts lsea…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jonathan Vanasco
Data:  
Para: Exim-users
Assunto: [Exim] Combining Delivery and Forwards in Virtual Hosts lsearch file
Am I crazy/stupid/both for thinking this?

I'm testing different setups, I think that I'd like to try and have
virtual domains setup like this
    /path/to/exim/virtual_domains/domainname = list of addresses in
domainname and what they expand to


so you'd see something like this in that textfile
    a: /var/spool/virtualMail/domain/a
    b: /var/spool/virtualMail/domain/b
    c: /var/spool/virtualMail/domain/c
    aa: /var/spool/virtualMail/domain/a
    bb:bb@???


and something like this in the /usr/exim/configure
    begin routers
    virtuals:
      driver         = accept
      domains         = +local_domains
      address_data    =
${lookup{$local_part}lsearch*{/usr/exim/virtual_domains/$domain}}
      transport     =   ${if eq \
              {${substr_0_1:$address_data:}} \
              {/} \
              {virtuals_maildir_delivery} \
              {remote_smtp} \
          }
      no_more
    begin transports


    virtuals_maildir_delivery:
      driver             = appendfile
      create_directory
      delivery_date_add
      envelope_to_add
      return_path_add
      maildir_format
      group             = mail
      directory         = $address_data



I can see a lot of pitfalls in that setup though

i also thought of this:
    /path/to/exim/virtual_domains/domainname.deliver  == all local forwards
    /path/to/exim/virtual_domains/domainname.forward == all external
forwards



I'd like an efficient use of routers/transports and queries to the data
files. So i thought i'd try and combine it all into 1 router. But all
the ways i've thought this up (one evidenced above), I end up creating
a new smtp send/receive for lookups that are new addresses and a local
domain (not maildir deliveries)

Anyone have some suggestions?