summaryrefslogtreecommitdiff
path: root/hosts/surtr/email/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr/email/default.nix')
-rw-r--r--hosts/surtr/email/default.nix12
1 files changed, 4 insertions, 8 deletions
diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix
index 89dc35f1..e120b337 100644
--- a/hosts/surtr/email/default.nix
+++ b/hosts/surtr/email/default.nix
@@ -137,16 +137,12 @@ in {
137 recipient_canonical_classes = ["envelope_recipient" "header_recipient"]; 137 recipient_canonical_classes = ["envelope_recipient" "header_recipient"];
138 138
139 virtual_mailbox_domains = ''pgsql:${pkgs.writeText "virtual_mailbox_domains.cf" '' 139 virtual_mailbox_domains = ''pgsql:${pkgs.writeText "virtual_mailbox_domains.cf" ''
140 dbname = emails 140 hosts = postgresql://localhost/emails
141 table = virtual_mailbox_domain 141 query = SELECT domain FROM virtual_mailbox_domain WHERE domain = '%s'
142 select_field = domain
143 where_field = domain
144 ''}''; 142 ''}'';
145 virtual_mailbox_maps = ''pgsql:${pkgs.writeText "virtual_mailbox_maps.cf" '' 143 virtual_mailbox_maps = ''pgsql:${pkgs.writeText "virtual_mailbox_maps.cf" ''
146 dbname = emails 144 hosts = postgresql://localhost/emails
147 table = virtual_mailbox_mapping 145 query = SELECT mailbox FROM virtual_mailbox_mapping WHERE mailbox = '%s'
148 select_field = mailbox
149 where_field = lookup
150 ''}''; 146 ''}'';
151 virtual_transport = "lmtp:unix:/run/postfix/dovecot-lmtp"; 147 virtual_transport = "lmtp:unix:/run/postfix/dovecot-lmtp";
152 }; 148 };