permit configuring mail system hostname
[ansible.git] / host_vars / template.yml
1 postfix:
2   # postmaster email address
3   postmaster: postmaster@example.org
4   # optional: Hostname of this email system
5   hostname: mail.example.org
6   # optional: Whether to put a postscreen on port 25
7   postscreen: True
8   # optional: Open another SMTP daemon on port 26 that only accepts mail from local hosts
9   # (and whitelisted client certs, if applicable).  Useful when the source of the mail is in
10   # a network that blocks port 25 outgoing.
11   smtpd_26: True
12   # optional: Whether to accept emails for arbitrary destination on the submission port,
13   # authenticated by dovecot.  Requires a dovecot: section (see below).
14   submission: True
15   # optional: From which IPs to accept mail.
16   mynetworks: '127.0.0.0/8 [::1]/128 203.0.113.0/24'
17   # optional: Hostnames and SHA1 certificate hashes that are allowed to relay email via this host.
18   relay_client_cert_whitelist:
19     - hostname: other.example.org
20       cert: 00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33
21   # optional: Configure a host to relay all outgoing email to.
22   # Incompatible with smtp_outgoing.
23   relay_host: mx.example.org
24   # optional: Files in /etc/postfix ($FILE.crt, $FILE.key) to use as client certificates when
25   # relaying to the relay_host.
26   relay_client_cert: client_cert
27   # optional: List multiple outgoing transports using different IP addresses.
28   # Requires default_smtp_outgoing to be set to one of them.  The file
29   # /etc/postfix/sender_transport_map on the server can be used to configure
30   # which transport is used depending on the sender address.
31   smtp_outgoing:
32     - name: smtp1
33       hostname: one.example.org
34       ip: 203.0.113.1
35       ip_v6: 2001:DB8::1
36     - name: smtp2
37       hostname: two.example.org
38       ip: 203.0.113.2
39   default_smtp_outgoing: smtp1
40   # optional: Enabled opendkim for incoming and outgoing DKIM support.
41   opendkim:
42     # list of private keys
43     private_keys:
44     - example.org
45     # table mapping outgoing domains to the private key used for signing mail
46     signing_table:
47       example.org: example.org
48       lists.example.org: example.org
49   # optional: install and configure mailman
50   mailman:
51     default_host: lists.example.org
52     default_lang: en # if you change this, also run "dpkg-reconfigure mailman" to enable more languages
53     domains: # the file /etc/postfix/virtual_alias_map can be used to configure aliases
54     - lists.example.org
55     default_footer: "-- \n%(list_name)s@%(host_name)s - %(description)s\nConfiguration: %(web_page_url)slistinfo%(cgiext)s/%(list_name)s\nUnsubscribe: %(list_name)s-unsubscribe@%(host_name)s\n"
56     form_secret: $RANDOM
57   # optional: Install and configure dovecot
58   dovecot:
59     domains: # the file /etc/postfix/virtual_alias_map can be used to configure aliases
60     - example.org
61     mysql_password: $RANDOM
62     vmail_uid: 200
63     mail_gid: 8
64     quota:
65       general: 1G
66       trash: +10M
67     # Hostname used for both web access (to changepw) and SMTP/IMAP servers in emails
68     # sent by newmail script.
69     host: mail.example.org
70     # optional: Where to generate a CGI script that users can use to change their password
71     changepw_cgi: /srv/mail.example.org/cgi/changepw
72
73 apache:
74   default_host: www.example.org
75   webmaster: webmaster@example.org
76   server_name: web.example.org
77
78 prosody:
79   host: jabber.example.org
80   admins:
81   - admin@jabber.example.org
82
83 bind:
84   # which IPv4 address to listen on
85   listen: 203.0.113.1
86   # optional: which IPv4 address to listen on
87   listen_v6: 2001:DB8::1
88
89 etherpad:
90   domain: pad.example.org
91   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"
92   mysql_password: $RANDOM
93   admin_password: $RANDOM