Implement mailfrom/masquerading setting

This commit is contained in:
Johannes Zellner
2025-03-11 12:50:05 +01:00
parent a5ca8781ff
commit 5c354db1b2
2 changed files with 25 additions and 1 deletions
+11
View File
@@ -72,6 +72,17 @@ function create() {
if (result.status !== 202) return [result];
return [null];
},
async setMailFromValidation(domain, enabled) {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/mail/${domain}/mail_from_validation`, { enabled }, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 202) return [result];
return [null];
},
async setEnabled(domain, enabled) {
let result;
try {