summaryrefslogtreecommitdiff
path: root/hosts/surtr/email
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr/email')
-rw-r--r--hosts/surtr/email/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix
index f73b4be0..8889991c 100644
--- a/hosts/surtr/email/default.nix
+++ b/hosts/surtr/email/default.nix
@@ -139,11 +139,16 @@ in {
139 virtual_mailbox_domains = ''pgsql:${pkgs.writeText "virtual_mailbox_domains.cf" '' 139 virtual_mailbox_domains = ''pgsql:${pkgs.writeText "virtual_mailbox_domains.cf" ''
140 hosts = postgresql:///email 140 hosts = postgresql:///email
141 dbname = email 141 dbname = email
142 query = SELECT domain FROM virtual_mailbox_domain WHERE domain = '%s' 142 query = SELECT 1 FROM virtual_mailbox_domain WHERE domain = '%s'
143 ''}''; 143 ''}'';
144 virtual_mailbox_maps = ''pgsql:${pkgs.writeText "virtual_mailbox_maps.cf" '' 144 virtual_mailbox_maps = ''pgsql:${pkgs.writeText "virtual_mailbox_maps.cf" ''
145 hosts = postgresql:///email 145 hosts = postgresql:///email
146 dbname = email 146 dbname = email
147 query = SELECT 1 FROM virtual_mailbox_mapping WHERE lookup = '%s'
148 ''}'';
149 lmtp_generic_maps = ''pgsql:${pkgs.writeText "virtual_mailbox_maps.cf" ''
150 hosts = postgresql:///email
151 dbname = email
147 query = SELECT mailbox FROM virtual_mailbox_mapping WHERE lookup = '%s' 152 query = SELECT mailbox FROM virtual_mailbox_mapping WHERE lookup = '%s'
148 ''}''; 153 ''}'';
149 virtual_transport = "lmtp:unix:/run/postfix/dovecot-lmtp"; 154 virtual_transport = "lmtp:unix:/run/postfix/dovecot-lmtp";