diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 20:19:01 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-05-05 20:19:01 +0200 |
commit | c5fe4cc91fcd5354807fe2e2cf528edf9496198a (patch) | |
tree | bea0b33b284c14b96a8756a09717725c5eb0509e /hosts | |
parent | 289b8bc8e04af7e75f4713b9132f905f2f699954 (diff) | |
download | nixos-c5fe4cc91fcd5354807fe2e2cf528edf9496198a.tar nixos-c5fe4cc91fcd5354807fe2e2cf528edf9496198a.tar.gz nixos-c5fe4cc91fcd5354807fe2e2cf528edf9496198a.tar.bz2 nixos-c5fe4cc91fcd5354807fe2e2cf528edf9496198a.tar.xz nixos-c5fe4cc91fcd5354807fe2e2cf528edf9496198a.zip |
surtr: ...
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/surtr/email/default.nix | 12 |
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 | }; |