get postfwd | tarball | https

postfwd page

News
Apr 2019: postfwd3 2.02 is available at postfwd-2.02 (tarball). Please refer to the changelog and the manual for more information.
Mar 2019: postfwd pre-built docker images are now based on alpine linux at DockerHub.
Nov 2018: postfwd can be found at GitHub.
Mar 2018: postfwd.org is now available via HTTPS.

Description
postfwd is written in perl to combine complex postfix restrictions in a ruleset similar to those of the most firewalls. The program uses the postfix policy delegation protocol to control access to the mail system before a message has been accepted (please visit http://www.postfix.org/SMTPD_POLICY_README.html for more information). It allows you to choose an action (e.g. reject, dunno) for a combination of several smtp parameters (like sender and recipient address, size or the client's TLS fingerprint).

Features Ressources

Help


Required PERL modules

mandatory optional

To install them you may either run:

	perl -MCPAN -e shell
	install <Module>
	
or get them from CPAN archive and run:
	perl Makefile.pl
	make
	make test
	make install
	
On debian based distributions you could run:
	apt-get update && apt-get install \
		libnet-dns-perl \
		libnet-server-perl \
		libnetaddr-ip-perl \
		libnet-cidr-lite-perl \
		libtime-hires-perl \
		libstorable-perl
	
On alpine you could run:
	apk update && apk add \
	        perl \
        	perl-net-dns \
	        perl-net-server \
        	perl-netaddr-ip \
	        perl-net-cidr-lite \
        	perl-time-hires \
	        perl-io-multiplex
	

Donations
Development, testing and hosting of postfwd consumes time and ressources. It is and will stay free software (see "License" below). If you want to support this, consider a donation at https://www.paypal.me/postfwd.

License
postfwd is free software and released under BSD license, which basically means that you can do what you want as long as you keep the copyright notice below:

Copyright (c) 2007 - 2019, Jan Peter Kessler
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ME ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

http://www.postfwd.org/ 2007 by Jan Peter Kessler info (AT) postfwd (DOT) org