Based on RainLoop discussion #2079,

i've added a security option to set Sender per Domain.
NOTE: Not tested yet
This commit is contained in:
djmaze 2021-03-22 14:17:18 +01:00
parent 10de3b8138
commit f69b1195e6
13 changed files with 75 additions and 28 deletions

View file

@ -168,6 +168,7 @@ class RemoteAdminFetch extends AbstractFetchRemote {
OutSecure: oDomain.smtpSecure(),
OutShortLogin: oDomain.smtpShortLogin() ? 1 : 0,
OutAuth: oDomain.smtpAuth() ? 1 : 0,
OutSetSender: oDomain.smtpSetSender() ? 1 : 0,
OutUsePhpMail: oDomain.smtpPhpMail() ? 1 : 0,
WhiteList: oDomain.whiteList()

View file

@ -47,6 +47,7 @@ class DomainPopupView extends AbstractViewPopup {
smtpSecure: 0,
smtpShortLogin: false,
smtpAuth: true,
smtpSetSender: false,
smtpPhpMail: false,
whiteList: '',
aliasName: '',
@ -298,6 +299,7 @@ class DomainPopupView extends AbstractViewPopup {
this.smtpSecure(oDomain.OutSecure);
this.smtpShortLogin(!!oDomain.OutShortLogin);
this.smtpAuth(!!oDomain.OutAuth);
this.smtpSetSender(!!oDomain.OutSetSender);
this.smtpPhpMail(!!oDomain.OutUsePhpMail);
this.whiteList(oDomain.WhiteList);
this.aliasName(oDomain.AliasName);
@ -333,6 +335,7 @@ class DomainPopupView extends AbstractViewPopup {
this.smtpSecure(0);
this.smtpShortLogin(false);
this.smtpAuth(true);
this.smtpSetSender(true);
this.smtpPhpMail(false);
this.whiteList('');