chiark / gitweb /
defs.m4: New macros for inserting separators into lists.
[exim-config] / lists.m4
CommitLineData
185b5456
MW
1### -*-m4-*-
2###
3### Lists of addresses and suchlike for distorted.org.uk Exim configuration
4###
5### (c) 2012 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This program is free software; you can redistribute it and/or modify
11### it under the terms of the GNU General Public License as published by
12### the Free Software Foundation; either version 2 of the License, or
13### (at your option) any later version.
14###
15### This program is distributed in the hope that it will be useful,
16### but WITHOUT ANY WARRANTY; without even the implied warranty of
17### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18### GNU General Public License for more details.
19###
20### You should have received a copy of the GNU General Public License
21### along with this program; if not, write to the Free Software Foundation,
22### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24SECTION(global, lists)m4_dnl
25## Definitions for known networks.
26hostlist localnet = <; \
27 127.0.0.0/8 ; ::1
4ff4ad42
MW
28hostlist thishost = <; \
29 +localnet ; @[]
185b5456
MW
30hostlist border = <; \
31 62.49.204.144/28 ; 2001:470:1f09:1b98::/64 ; \
32 212.13.198.64/28 ; 2001:ba8:0:1d9::/64
33hostlist trusted = <; \
34 +localnet ; +border ; \
35 172.29.199.0/24 ; 2001:ba8:1d9::/49 ; 2001:470:9740::/49
36hostlist allnets = <; \
37 +localnet ; +border ; \
38 172.29.198.0/23 ; 2001:ba8:1d9::/48 ; 2001:470:9740::/48
39
40## Domains we're authoritative for.
41domainlist thishost = @ : @[] : \
42 ${map {${extract {${extract {1}{.}{$primary_hostname}}} \
43 { telecaster=tele \
44 stratocaster=strat }}} \
45 {$item.$qualify_domain}}
e913c999 46domainlist public = +thishost : CONF_sysdomains
185b5456
MW
47
48## Some magic lists used because `match_local_parts' and friends don't expand
49## their right-hand sides.
50localpartlist dom_users = ${expand:KV(users, {$value}{*})}
51localpartlist dom_locals = ${expand:KV(locals, {$value}{+user_extaddr})}
52localpartlist user_extaddr = ^CONF_user_extaddr_regexp
4e544ee6 53addresslist user_extaddr = ^CONF_user_extaddr_regexp
459abd49 54addresslist value = $value
185b5456 55
6d7af7e4
MW
56## All of the `standard' local parts which ought to be provided by a domain.
57localpartlist required = postmaster : abuse
58
185b5456
MW
59DIVERT(null)
60###----- That's all, folks --------------------------------------------------