generate relay_clientcerts whitelist from host_vars
[ansible.git] / host_vars / template.yml
1 postfix:
2   # optional: Whether to put a postscreen on port 25
3   postscreen: True
4   # optional: Whether to accept emails for arbitrary destination on the submission port,
5   # authenticated by dovecot.  Requires a dovecot: section (see below).
6   submission: True
7   # optional: Whether to install mailman and add it as a possible postfix transport.
8   mailman: True
9   # optional: From which IPs to accept mail.
10   mynetworks: '127.0.0.0/8 [::1]/128 203.0.113.0/24'
11   # optional: List multiple outgoing transports using different IP addresses.
12   # Requires default_smtp_outgoing to be set to one of them.  The file
13   # /etc/postfix/sender_transport_map on the server can be used to configure
14   # which transport is used depending on the sender address.
15   smtp_outgoing:
16     - name: smtp1
17       hostname: one.example.org
18       ip: 203.0.113.1
19       ip_v6: 2001:DB8::1
20     - name: smtp2
21       hostname: two.example.org
22       ip: 203.0.113.2
23   default_smtp_outgoing: smtp1
24   # optional: Enabled opendkim for incoming and outgoing DKIM support.
25   opendkim:
26     # list of private keys
27     private_keys:
28     - example.org
29     # table mapping outgoing domains to the private key used for signing mail
30     signing_table:
31       example.org: example.org
32       lists.example.org: example.org
33   # optional: List of domains and transports to use.  The file /etc/postfix/virtual_alias_map
34   # can be used to configure aliases for these domains.
35   virtual_mailbox_domains:
36     - domain: lists.example.org
37       transport: mailman
38     - domain: example.org
39       transport: lmtp:unix:private/dovecot-lmtp
40   # optional: Install and configure dovecot
41   dovecot:
42     mysql_password: $RANDOM
43     vmail_uid: 200
44     mail_gid: 8
45     postmaster: postmaster@example.org
46     quota:
47       general: 1G
48       trash: +10M
49   # optional: Hostnames and SHA1 certificate hashes that are allowed to relay email via this host.
50   relay_client_cert_whitelist:
51     - hostname: other.example.org
52       cert: 00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33
53   # optional: Configure a host to relay all outgoing email to.
54   # Incompatible with smtp_outgoing.
55   relay_host: mx.example.org
56   # optional: Files in /etc/postfix ($FILE.crt, $FILE.key) to use as client certificates when
57   # relaying to the relay_host.
58   relay_client_cert: client_cert
59
60 apache:
61   default_host: www.example.org
62
63 prosody:
64   host: jabber.example.org
65   admins:
66   - admin@jabber.example.org
67
68 bind:
69   # which IPv4 address to listen on
70   listen: 203.0.113.1
71   # optional: which IPv4 address to listen on
72   listen_v6: 2001:DB8::1
73
74 etherpad:
75   domain: pad.example.org
76   default_text: "Welcome to Etherpad!\\n\\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\\n\\nGet involved with Etherpad at http:\/\/etherpad.org\\n"
77   mysql_password: $RANDOM
78   admin_password: $RANDOM