summaryrefslogtreecommitdiff
path: root/hosts/surtr/email/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-05-05 23:33:08 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-05-05 23:33:08 +0200
commitfbe1b755f3cfc0eda924c0810a938c8ab157933c (patch)
treea5bbf49671222d39db1ed6f6be8ba3a7738608f9 /hosts/surtr/email/default.nix
parent3711fb79884120e199906d7ff0126315450e7b80 (diff)
downloadnixos-fbe1b755f3cfc0eda924c0810a938c8ab157933c.tar
nixos-fbe1b755f3cfc0eda924c0810a938c8ab157933c.tar.gz
nixos-fbe1b755f3cfc0eda924c0810a938c8ab157933c.tar.bz2
nixos-fbe1b755f3cfc0eda924c0810a938c8ab157933c.tar.xz
nixos-fbe1b755f3cfc0eda924c0810a938c8ab157933c.zip
surtr: ...
Diffstat (limited to 'hosts/surtr/email/default.nix')
-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";