5fb2faf98a4ad9028b089b458d970c7e7346bed9
[exim-website.git] / config.samples / C030
1 From: Marc.Haber-lists@gmx.de (Marc Haber)
2 Date: Fri, 12 Nov 1999 10:52:21 GMT
3
4 I am currently configuring an exim for a site that will to mail
5 hosting for several domains. I want the domain holders to have control
6 over "their" alias files, being able to create their own aliases.
7 However, I don't want them to have postmaster, abuse and other role
8 accounts under their control.
9
10 Here are my directors:
11
12 local_roleaccount_aliases:
13   driver = aliasfile
14   include_domain = yes
15   file = /etc/roleaccount_aliases
16   search_type = lsearch
17
18 global_roleaccount_aliases:
19   driver = aliasfile
20   include_domain = no
21   file = /etc/roleaccount_aliases
22   search_type = lsearch
23
24 domain_aliases:
25   driver = aliasfile
26   requrie_files = /etc/domain_aliases/$domain
27   file = /etc/domain_aliases/$domain
28   search_type = lsearch
29
30 That way, I can have /etc/roleaccount_aliases say
31
32 abuse@some_hosted_domain: them@their_address.example.com
33 abuse:  me@my_address.example.com
34
35 If an address is mentioned in /etc/roleaccount_aliases, specifications
36 done in a domain alias file are ignored, e-mail to role accounts that
37 are not explicitly stated with domain in /etc/roleaccount_aliases goes
38 to me, and I can have role accounts for domains that I trust aliased
39 to their own administration.
40
41 Please note, however, that I use /etc/roleaccount_aliases as aliasfile
42 in two directors. One of them has include_domain = yes and the other
43 has include_domain = no. I believe this is the only way to have fully
44 qualified addresses _and_ unqualified "catch-all-domains" addresses in
45 a single alias file (having abuse@* with include_domain=yes doesn't
46 catch any addresses).
47
48 I don't know how exotic this setup is, but I believe it does what I
49 want. If other users need something like that, too, I think it would
50 be good to have a new option to the aliasfile director that makes that
51 director catch qualified and unqualified addresses.
52
53 If the FAQ maintainer finds it useful, I agree to have the setup
54 mentioned above put into the FAQ as a recipe.
55