User Tools

Site Tools


dotrc:exim:per-domain_lookup_of_aliases

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dotrc:exim:per-domain_lookup_of_aliases [2007/05/29 09:09] – external edit 127.0.0.1dotrc:exim:per-domain_lookup_of_aliases [2011/09/01 13:51] (current) – added a slightly different version of per domain aliases adi
Line 15: Line 15:
  
 There is now on standard alias file for each domain in ''CONFDIR/virtual/$domain''. There is now on standard alias file for each domain in ''CONFDIR/virtual/$domain''.
 +With no_more disabled there is a fallback to /etc/aliases.
 +
 +====== per-domain configuration with directories ======
 +
 +each virtual domain has a file named CONFDIR/virtual/<DOMAIN>/aliases. This allows for different configuration options like message size or spam handling options on a per-domain basis:
 +
 +''350_local-config-virtual-users''
 +<file>
 +# 350_local-config-virtual-users
 +#################################
 +
 +# This router takes care of all domains configured in
 +# /etc/exim4/virtual/DOMAIN/
 +# it expects an aliases file in this directory and returns a list
 +# of local users.
 +
 +virtual_users:
 +  debug_print = "R: virtual_users for $local_part@$domain"
 +  driver = redirect
 +  allow_defer
 +  allow_fail
 +  # get the domains this router is responsible for
 +  domains = dsearch;CONFDIR/virtual
 +  # resolve aliases from this file
 +  data = ${expand:${lookup{$local_part}lsearch*@{CONFDIR/virtual/$domain/aliases}}}
 +  # do not try to "fully qualify" an email address -- just take it as it is
 +  qualify_preserve_domain
 +  retry_use_local_part
 +  # this router is authoritative for this domain - stop after here
 +  no_more
 +</file>
 +
dotrc/exim/per-domain_lookup_of_aliases.1180429744.txt.gz · Last modified: 2011/09/01 13:51 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki