]> git.proxmox.com Git - pmg-api.git/commit
greylist: make netmasks configurable
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 20 Apr 2020 11:22:42 +0000 (13:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Apr 2020 15:18:19 +0000 (17:18 +0200)
commita01b071cd0e6b55fafa9299b2c27e4ea7bd2ab42
tree4c89a5e24a10dd84212cbf85bacfb1c2b3d28683
parente159c0fd0db6842de5befac45f6a68d263ee908d
greylist: make netmasks configurable

Instead of hardcoding the netmask used for comparing greylistentries to
the current ip (24 for ipv4 and 64 for ipv6) - make them configurable in
pmg.conf

This should help with some cloud providers who send the same mail with
different ips from a large network - which all get greylisted separately.
In the worst case the sending cloud drops the mail, after it got defered
too often.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Config.pm
src/bin/pmgpolicy