mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 16:24:37 +03:00
webadmin: make remaining domain settings configurable via admin web interface
for dmarc reporting address, tls reporting address, mtasts policy, dkim keys/selectors. should make it easier for webadmin-using admins to discover these settings. the webadmin interface is now on par with functionality you would set through the configuration file, let's keep it that way.
This commit is contained in:
@ -1176,11 +1176,13 @@ func prepareDynamicConfig(ctx context.Context, log mlog.Log, dynamicPath string,
|
||||
addErrorf("rsa keys should be >= 1024 bits")
|
||||
}
|
||||
sel.Key = k
|
||||
sel.Algorithm = fmt.Sprintf("rsa-%d", k.N.BitLen())
|
||||
case ed25519.PrivateKey:
|
||||
if sel.HashEffective != "sha256" {
|
||||
addErrorf("hash algorithm %q is not supported with ed25519, only sha256 is", sel.HashEffective)
|
||||
}
|
||||
sel.Key = k
|
||||
sel.Algorithm = "ed25519"
|
||||
default:
|
||||
addErrorf("private key type %T not yet supported, at selector %s in domain %s", key, name, d)
|
||||
}
|
||||
|
Reference in New Issue
Block a user