quota:
general: 1G
trash: +10M
+ # Hostname used for both web access (to changepw) and SMTP/IMAP servers in emails
+ # sent by newmail script.
+ host: mail.example.org
# optional: Where to generate a CGI script that users can use to change their password
changepw_cgi: /srv/mail.example.org/cgi/changepw
- name: create newmail dir
file: path=/root/newmail state=directory
- name: install newmail script
- copy:
+ template:
dest: /root/newmail/newmail
- src: files/newmail/newmail
+ src: templates/newmail/newmail
mode: u=rwx,g=rx,o=rx
-- name: install newmail templates
- copy:
- dest: /root/newmail/templates.py
- src: files/newmail/templates.py
+- name: install newmail config
+ template:
+ dest: /root/newmail/{{ item }}
+ src: templates/newmail/{{ item }}
+ loop:
+ - templates.py
+ - settings.py
- name: install changepw script
when: postfix.dovecot.changepw_cgi is defined
template:
--- /dev/null
+# -*- coding: utf-8 -*-
+DB_NAME = 'vmail'
+DB_USER = 'vmail'
+DB_PW = '{{postfix.dovecot.mysql_password}}'
+MAIL_ADDR = '{{postfix.postmaster}}'
+HOST = '{{postfix.dovecot.host}}'
+DOMAINS = [
+{% if postfix.mailman is defined %}
+{% for item in postfix.mailman.domains %}
+ '{{item}}',
+{% endfor %}
+{% endif %}
+{% if postfix.dovecot is defined %}
+{% for item in postfix.dovecot.domains %}
+ '{{item}}',
+{% endfor %}
+{% endif %}
+]
Bitte prüfe, ob das alles funktioniert. Bei Problemen kannst du dich gerne an mich wenden.
Viele Grüße,
-Ralf"""
+{host} Postmaster"""
INCOMING_FORWARD = "Eingehende Mails werden an deine Adresse {forward} weitergeleitet."
INCOMING_IMAP = '''Der Zugriff auf das Postfach erfolgt via IMAP:
Server: {host}
Port: 143
Verschlüsselung: STARTTLS
Benutzername: {user}'''
-