]> git.proxmox.com Git - pmg-gui.git/commitdiff
MailProxyOptions: add greylist enhancements
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 20 Apr 2020 11:22:44 +0000 (13:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Apr 2020 15:37:46 +0000 (17:37 +0200)
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@proxmox.com>
js/MailProxyOptions.js

index 58a6a8a479bacb87997b0349555cca08ac698d1a..bc4f3f6adafdf6a7fb92b65a0718a8bbbd47aec9 100644 (file)
@@ -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: 64, minValue: 0 });
+
        me.add_boolean_row('spf', gettext('Use SPF'), { defaultValue: 1 });
 
        me.add_boolean_row('hide_received', gettext('Hide Internal Hosts'));