feat: restrict smtp sender address (#3637)

* fix: check if sender address is custom domain

* fix: check if sender address is custom domain

* fix: check if sender address is custom domain

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2022-05-16 16:08:47 +02:00
committed by GitHub
parent 40de8d5b3b
commit 5c0f527a49
39 changed files with 510 additions and 153 deletions

View File

@@ -3444,6 +3444,7 @@ message GetDomainPolicyResponse {
message UpdateDomainPolicyRequest {
bool user_login_must_be_domain = 1;
bool validate_org_domains = 2;
bool smtp_sender_address_matches_instance_domain = 3;
}
message UpdateDomainPolicyResponse {
@@ -3497,6 +3498,11 @@ message AddCustomDomainPolicyRequest {
description: "defines if organisation domains should be validated org count as validated automatically"
}
];
bool smtp_sender_address_matches_instance_domain = 4 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "defines if the smtp sender address domain should match an existing domain on the instance"
}
];
}
message AddCustomDomainPolicyResponse {
@@ -3528,6 +3534,11 @@ message UpdateCustomDomainPolicyRequest {
description: "defines if organisation domains should be validated org count as validated automatically"
}
];
bool smtp_sender_address_matches_instance_domain = 4 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "defines if the smtp sender address domain should match an existing domain on the instance"
}
];
}
message UpdateCustomDomainPolicyResponse {

View File

@@ -40,6 +40,12 @@ message DomainPolicy {
description: "defines if organisation domains should be validated org count as validated automatically"
}
];
bool smtp_sender_address_matches_instance_domain = 5 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "defines if the smtp sender address domain should match an existing domain on the instance"
}
];
}
message LabelPolicy {