Commit c377bc4c authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use /var/mail/virtual as mail user base

parent 3e3b45f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ ssl_cert = </etc/tls/tls.crt
ssl_key = </etc/tls/tls.key

# The mail volume is mounted to /var/mail, indexes at /var/indexes
mail_home = /var/mail/%d/%n
mail_home = /var/mail/virtual/%d/%n
mail_location = maildir:~/mail:INBOX=~/mail/.INBOX:INDEX=/var/indexes/%d/%n:ITERINDEX=:UTF-8=

# The UID/GID of all virtual users
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ default_pass_scheme = SHA256
password_query = \
	SELECT \
	  REPLACE(password, 'sha256_unsalted$', '') AS password, \
	  CONCAT('/var/mail/virtual/', mailbox) AS userdb_mail \
	  CONCAT('maildir:/var/mail/virtual/', mailbox) AS userdb_mail \
	FROM users \
	WHERE username = '%u' \
	  AND enabled = 1