The Postwhite script can be used to generate whitelists and/or blacklists of IP addresses and CIDR subnets based on the SPF records of selected domains. These whitelists/blacklists can then be used by the Postscreen Postfix service to automatically allow or deny connections to specific SMTP clients. This is useful for accepting messages from big mail providers like Google and Outlook which may resend mail messages from different IP addresses, which in turn interferes with Postscreen SMTP client greylisting.
debops.postwhite Ansible role will install Postwhite script and
configure Postfix automatically using the debops.postfix Ansible role, as long
as the Postscreen configuration is enabled by the debops.postscreen role.
See the documentation of the mentioned roles for more details.
debops.postwhite - Manage Postscreen SPF Whitelist using Ansible Copyright (C) 2017 Maciej Delmanowski <firstname.lastname@example.org> Copyright (C) 2017 DebOps <https://debops.org/> SPDX-License-Identifier: GPL-3.0-only This Ansible role is part of DebOps. DebOps is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation. DebOps is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with DebOps. If not, see https://www.gnu.org/licenses/.