mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-05-31 19:38:44 +00:00

This adds another panel to the MailProxy configuration for DKIM-Settings. Additionally the index-template now includes the css-file from proxmox-widget-toolkit (for the pmx-hint user-class), needed in the Settings-panel. The Panel consists of 2 Grids: * DKIM Settings * DKIM Domains DKIMDomains is a list of domain, currently like RelayDomains (hence the code-reuse). The DKIM settings grid binds to the dkim-related settings in pmg.conf, but the edit-window for the selector uses the /config/dkim/selector route in the PMG-API. Additionally 2 checks for invalid configurations are excluded (you cannot enable DKIM-Signing without creating a private key first) The warnings were inspired by PVE's handling of EFIDisks and BIOS. Finally the 'View DNS Record' button displays the DKIM TXT record for the current key in the same format that opendkim-genkey writes it out. Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
65 lines
1.3 KiB
JavaScript
65 lines
1.3 KiB
JavaScript
Ext.define('PMG.MailProxyConfiguration', {
|
|
extend: 'Ext.tab.Panel',
|
|
alias: 'widget.pmgMailProxyConfiguration',
|
|
|
|
title: gettext('Configuration') + ': ' +
|
|
gettext('Mail Proxy'),
|
|
|
|
border: false,
|
|
defaults: { border: false },
|
|
|
|
items: [
|
|
{
|
|
itemId: 'relaying',
|
|
title: gettext('Relaying'),
|
|
xtype: 'pmgMailProxyRelaying'
|
|
},
|
|
{
|
|
itemId: 'relaydomains',
|
|
title: gettext('Relay Domains'),
|
|
xtype: 'pmgRelayDomains'
|
|
},
|
|
{
|
|
itemId: 'ports',
|
|
title: gettext('Ports'),
|
|
xtype: 'pmgMailProxyPorts'
|
|
},
|
|
{
|
|
itemId: 'options',
|
|
title: gettext('Options'),
|
|
xtype: 'pmgMailProxyOptions'
|
|
},
|
|
{
|
|
itemId: 'transports',
|
|
title: gettext('Transports'),
|
|
xtype: 'pmgTransport'
|
|
},
|
|
{
|
|
itemId: 'networks',
|
|
title: gettext('Networks'),
|
|
xtype: 'pmgMyNetworks'
|
|
},
|
|
{
|
|
itemId: 'tls',
|
|
title: gettext('TLS'),
|
|
xtype: 'pmgMailProxyTLSPanel'
|
|
},
|
|
{
|
|
itemId: 'dkim',
|
|
title: gettext('DKIM'),
|
|
xtype: 'pmgMailProxyDKIMPanel'
|
|
},
|
|
{
|
|
itemId: 'whitelist',
|
|
title: gettext('Whitelist'),
|
|
xtype: 'pmgObjectGroup',
|
|
hideGroupInfo: true,
|
|
showDirection: true,
|
|
otype_list: [1000, 1009, 1001, 1007, 1002, 1008, 1003, 1004],
|
|
baseurl: '/config/whitelist'
|
|
}
|
|
]
|
|
});
|
|
|
|
|