[pmg-devel] [PATCH pmg-gui 1/1] MailProxyOptions: add greylist enhancements
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Apr 15 12:53:19 CEST 2020
This patch adds 3 new configuration settings to the MailProxy Options Tab, for
comfortably enabling greylisting for IPv6 addresses, and configuring the
netmask used for greylist matching
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
js/MailProxyOptions.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/js/MailProxyOptions.js b/js/MailProxyOptions.js
index ce36411..7ebee1b 100644
--- a/js/MailProxyOptions.js
+++ b/js/MailProxyOptions.js
@@ -44,9 +44,18 @@ Ext.define('PMG.MailProxyOptions', {
});
/*jslint confusion: false*/
- me.add_boolean_row('greylist', gettext('Use Greylisting'),
+ me.add_boolean_row('greylist', gettext('Use Greylisting for IPv4'),
{ defaultValue: 1 });
+ me.add_integer_row('greylistmask4', gettext('Netmask for Greylisting IPv4'),
+ { defaultValue: 24, minValue: 0 });
+
+ me.add_boolean_row('greylist6', gettext('Use Greylisting for IPv6'),
+ { defaultValue: 0 });
+
+ me.add_integer_row('greylistmask6', gettext('Netmask for Greylisting IPv6'),
+ { defaultValue: 24, minValue: 0 });
+
me.add_boolean_row('spf', gettext('Use SPF'), { defaultValue: 1 });
me.add_boolean_row('hide_received', gettext('Hide Internal Hosts'));
--
2.20.1
More information about the pmg-devel
mailing list