Add main.unkin.net as a second mail domain
This commit is contained in:
@@ -101,12 +101,19 @@ spec:
|
||||
configMap:
|
||||
name: rspamd-sa-rules
|
||||
- name: dkim
|
||||
secret:
|
||||
secretName: dkim-unkin-net
|
||||
projected:
|
||||
defaultMode: 0440
|
||||
items:
|
||||
- key: private_key
|
||||
path: unkin.net.mail.key
|
||||
sources:
|
||||
- secret:
|
||||
name: dkim-unkin-net
|
||||
items:
|
||||
- key: private_key
|
||||
path: unkin.net.mail.key
|
||||
- secret:
|
||||
name: dkim-main-unkin-net
|
||||
items:
|
||||
- key: private_key
|
||||
path: main.unkin.net.mail.key
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
---
|
||||
|
||||
@@ -60,6 +60,24 @@ spec:
|
||||
type: kv-v2
|
||||
vaultAuthRef: default
|
||||
---
|
||||
# DKIM private key for main.unkin.net, selector `mail` (field `private_key`).
|
||||
apiVersion: secrets.hashicorp.com/v1beta1
|
||||
kind: VaultStaticSecret
|
||||
metadata:
|
||||
name: dkim-main-unkin-net
|
||||
namespace: mail
|
||||
spec:
|
||||
destination:
|
||||
create: true
|
||||
name: dkim-main-unkin-net
|
||||
overwrite: true
|
||||
hmacSecretData: true
|
||||
mount: kv
|
||||
path: kubernetes/namespace/mail/default/dkim-main-unkin-net
|
||||
refreshAfter: 5m
|
||||
type: kv-v2
|
||||
vaultAuthRef: default
|
||||
---
|
||||
# Controller (web UI) password; config reads the `rspamadm pw` hash (field `password_hash`).
|
||||
apiVersion: secrets.hashicorp.com/v1beta1
|
||||
kind: VaultStaticSecret
|
||||
|
||||
@@ -2,6 +2,7 @@ sign_authenticated = false;
|
||||
sign_local = true;
|
||||
sign_inbound = false;
|
||||
use_domain = "header";
|
||||
use_esld = false;
|
||||
allow_hdrfrom_mismatch = false;
|
||||
selector = "mail";
|
||||
path = "/etc/rspamd/dkim/$domain.$selector.key";
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
unkin.net OK
|
||||
main.unkin.net OK
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
unkin.net lmtp:[stalwart.mail.svc.cluster.local]:24
|
||||
main.unkin.net lmtp:[stalwart.mail.svc.cluster.local]:24
|
||||
|
||||
@@ -12,7 +12,7 @@ data:
|
||||
config.json: |
|
||||
{"@type":"PostgreSql","host":"stalwart-db-rw.mail.svc","port":5432,"database":"stalwart","authUsername":"stalwart","authSecret":{"@type":"EnvironmentVariable","variableName":"DB_PASSWORD"},"useTls":true}
|
||||
plan.ndjson: |
|
||||
{"@type":"upsert","object":"Domain","matchOn":["name"],"value":{"unkin":{"name":"unkin.net","certificateManagement":{"@type":"Manual"},"dkimManagement":{"@type":"Manual"},"dnsManagement":{"@type":"Manual"},"subAddressing":{"@type":"Enabled"}}}}
|
||||
{"@type":"upsert","object":"Domain","matchOn":["name"],"value":{"unkin":{"name":"unkin.net","aliases":{"main.unkin.net":true},"certificateManagement":{"@type":"Manual"},"dkimManagement":{"@type":"Manual"},"dnsManagement":{"@type":"Manual"},"subAddressing":{"@type":"Enabled"}}}}
|
||||
{"@type":"upsert","object":"Certificate","matchOn":["certificate"],"value":{"cert":{"certificate":{"@type":"File","filePath":"/etc/stalwart/tls/tls.crt"},"privateKey":{"@type":"File","filePath":"/etc/stalwart/tls/tls.key"}}}}
|
||||
{"@type":"upsert","object":"Directory","matchOn":["description"],"value":{"authentik":{"@type":"Oidc","description":"Authentik","issuerUrl":"https://identity.unkin.net/application/o/stalwart/","requireAudience":"stalwart","requireScopes":{},"claimUsername":"preferred_username","usernameDomain":"unkin.net","claimName":"name"}}}
|
||||
{"@type":"upsert","object":"Application","matchOn":["description"],"value":{"webui":{"description":"Stalwart Web Interface","resourceUrl":"https://github.com/stalwartlabs/webui/releases/download/v1.0.11/webui.zip","urlPrefix":{"/admin":true,"/account":true},"unpackDirectory":"/var/lib/stalwart/webui","oauthClientId":"stalwart"}}}
|
||||
|
||||
Reference in New Issue
Block a user