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