also create newmail settings.py
[ansible.git] / roles / email / templates / newmail / settings.py
1 # -*- coding: utf-8 -*-
2 DB_NAME = 'vmail'
3 DB_USER = 'vmail'
4 DB_PW   = '{{postfix.dovecot.mysql_password}}'
5 MAIL_ADDR = '{{postfix.postmaster}}'
6 HOST    = '{{postfix.dovecot.host}}'
7 DOMAINS = [
8 {% if postfix.mailman is defined %}
9 {% for item in postfix.mailman.domains %}
10   '{{item}}',
11 {% endfor %}
12 {% endif %}
13 {% if postfix.dovecot is defined %}
14 {% for item in postfix.dovecot.domains %}
15   '{{item}}',
16 {% endfor %}
17 {% endif %}
18 ]