From b8141aa973370505d77e88b152422d21bb50e190 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 15 Sep 2017 12:08:29 +0000 Subject: [PATCH] save user mail in /home/vmail --- tasks/main.yml | 2 +- templates/dovecot-sql.conf.ext.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index f74ca8b..94848af 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -27,7 +27,7 @@ uid: "{{vmail_uid}}" group: vmail system: yes - home: /var/vmail + home: /home/vmail - name: dovecot configuration files template: diff --git a/templates/dovecot-sql.conf.ext.j2 b/templates/dovecot-sql.conf.ext.j2 index ed08f6b..b749bae 100644 --- a/templates/dovecot-sql.conf.ext.j2 +++ b/templates/dovecot-sql.conf.ext.j2 @@ -130,7 +130,7 @@ password_query = SELECT username AS user,password FROM mailbox WHERE username = # FROM users WHERE username = '%n' AND domain = '%d' # # postfixadmin: Query to retrieve user information, note uid matches dovecot.conf AND Postfix virtual_uid_maps parameter. -user_query = SELECT CONCAT('/var/vmail/', maildir) AS home, \ +user_query = SELECT CONCAT('/home/vmail/', maildir) AS home, \ {{vmail_uid}} AS uid, {{vmail_gid}} AS gid \ FROM mailbox WHERE username = '%u' AND active='1'