Pārlūkot izejas kodu

save user mail in /home/vmail

master
vecāks
revīzija
b8141aa973
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      tasks/main.yml
  2. +1
    -1
      templates/dovecot-sql.conf.ext.j2

+ 1
- 1
tasks/main.yml Parādīt failu

@@ -27,7 +27,7 @@
uid: "{{vmail_uid}}" uid: "{{vmail_uid}}"
group: vmail group: vmail
system: yes system: yes
home: /var/vmail
home: /home/vmail


- name: dovecot configuration files - name: dovecot configuration files
template: template:


+ 1
- 1
templates/dovecot-sql.conf.ext.j2 Parādīt failu

@@ -130,7 +130,7 @@ password_query = SELECT username AS user,password FROM mailbox WHERE username =
# FROM users WHERE username = '%n' AND domain = '%d' # 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. # 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 \ {{vmail_uid}} AS uid, {{vmail_gid}} AS gid \
FROM mailbox WHERE username = '%u' AND active='1' FROM mailbox WHERE username = '%u' AND active='1'




Notiek ielāde…
Atcelt
Saglabāt