mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-13 16:47:20 +00:00

This panel can be used to configure sender domains for which TLS will be enforced my postfix. As this takes the usual transport domain format, either a FQDN or .FQDN (for matching subdomains) can be specified. Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
43 lines
1010 B
JavaScript
43 lines
1010 B
JavaScript
Ext.define('PMG.MailProxyTLSPanel', {
|
|
extend: 'Ext.panel.Panel',
|
|
alias: 'widget.pmgMailProxyTLSPanel',
|
|
|
|
layout: {
|
|
type: 'vbox',
|
|
align: 'stretch',
|
|
},
|
|
|
|
bodyPadding: '0 0 10 0',
|
|
defaults: {
|
|
collapsible: true,
|
|
animCollapse: false,
|
|
margin: '10 10 0 10',
|
|
},
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
var tlsSettings = Ext.create('PMG.MailProxyTLS', {
|
|
title: gettext('Settings'),
|
|
});
|
|
|
|
var tlsDestinations = Ext.create('PMG.MailProxyTLSDestinations', {
|
|
title: gettext('TLS Destination Policy'),
|
|
flex: 1,
|
|
});
|
|
|
|
const tlsInboundDomains = Ext.create('PMG.MailProxyTLSInboundDomains', {
|
|
title: gettext('TLS Inbound Domains'),
|
|
flex: 1,
|
|
});
|
|
|
|
me.items = [tlsSettings, tlsDestinations, tlsInboundDomains];
|
|
|
|
me.callParent();
|
|
|
|
tlsSettings.relayEvents(me, ['activate', 'deactivate', 'destroy']);
|
|
tlsDestinations.relayEvents(me, ['activate', 'deactivate', 'destroy']);
|
|
tlsInboundDomains.relayEvents(me, ['activate', 'deactivate', 'destroy']);
|
|
},
|
|
});
|