Port details |
- py-spf-engine SPF engine for Postfix policy server and milter implemented in Python
- 3.0.4 mail
=4 3.0.4Version of this port present on the latest quarterly branch. - There is no maintainer for this port.
- Any concerns regarding this port should be directed to the FreeBSD Ports mailing list via ports@FreeBSD.org
 - Port Added: 2020-05-31 13:49:34
- Last Update: 2024-06-12 04:02:05
- Commit Hash: 9313691
- People watching this port, also watch:: indexinfo, xorg-fonts-truetype, libXdamage, libevent, fcgiwrap
- Also Listed In: python
- License: APACHE20 GPLv2+
- WWW:
- https://launchpad.net/spf-engine
- Description:
- This project provides the SPF (Sender Policy Framework) back-end for both
pypolicyd-spf (for which it was originally developed) and an future SPF
milter using pymilter. The goal is to provide a common back-end for common
features for support SPF integration with Postfix and Sendmail using both
the Postfix policy service and the Sendmail milter protocol (also available
with Postfix).
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}spf-engine>0:mail/py-spf-engine@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/mail/py-spf-engine/ && make install clean
- To add the package, run one of these commands:
- pkg install mail/py-spf-engine
- pkg install py311-spf-engine
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-spf-engine listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-spf-engine
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1681795743
SHA256 (spf-engine-3.0.4.tar.gz) = 19cc3b7a73486ff4eb64461ad19d387b31d499f32673527e6841fa1655db853a
SIZE (spf-engine-3.0.4.tar.gz) = 61428
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-flit-core>=3.8<4 : devel/py-flit-core@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-authres>0 : mail/py-authres@py311
- py311-milter>0 : mail/py-milter@py311
- py311-pyspf>0 : mail/py-pyspf@py311
- python3.11 : lang/python311
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for py311-spf-engine-3.0.4:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
- Options name:
- mail_py-spf-engine
- USES:
- python shebangfix
- pkg-message:
- For install:
- #
# Using policyd-spf with Postfix
#
Policyd-spf must be integrated with Postfix to be effective:
1. Add to your postfix master.cf:
policyd-spf unix - n n - 0 spawn
user=nobody argv=/usr/local/bin/policyd-spf
2. Configure the Postfix policy service in your main.cf so that the
"smtpd_recipient_restrictions" includes a call to the policyd-spf policy
filter. If you already have a "smtpd_recipient_restrictions" line, you can
add the "check_policy_service" command anywhere *after* the line which
reads "reject_unauth_destination" (otherwise you're system can become an
open relay).
smtpd_recipient_restrictions =
...
reject_unauth_destination
check_policy_service unix:private/policyd-spf
...
policyd-spf_time_limit = 3600
3. Please consult the postfix documentation for more information on these and
other settings you may wish to have in the "smtpd_recipient_restrictions"
configuration.
4. Reload postfix.
#
# Automatically starting pyspf-milter at boot time.
#
Add 'pyspf_milter_enable="YES"' to /etc/rc.conf.
#
# Using pyspf-milter with Sendmail
#
Following is an example configuration line to include in your sendmail.mc.
INPUT_MAIL_FILTER(`pyspf-milter', `S=local:/var/run/pyspf-milter/pyspf-milter.sock')dnl
#
# Using pyspf-milter with Postfix
#
Integration of pyspf-milter into Postfix is like any milter (See Postfix's
README_FILES/MILTER_README). But care is required to segregate outbound mail
from inbound mail to be checked. Here is example using milter macros to keep
the mail streams segregated.
/usr/local/etc/postfix/main.cf:
smtpd_milters = unix:/var/run/pyspf-milter/pyspf-milter.sock
/usr/local/etc/postfix/master.cf:
smtp inet n - - - - smtpd
...
-o milter_macro_daemon_name=VERIFYING
...
/usr/local/etc/python-policyd-spf/policyd-spf.conf:
MacroList daemon_name|VERIFYING
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
3.0.4 12 Jun 2024 04:02:05
    |
Yasuhiro Kimura (yasu)  |
mail/py-spf-engine: Release maintainership |
3.0.4 27 Jun 2023 19:34:34
    |
Rene Ladan (rene)  |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
3.0.4 08 May 2023 06:20:28
    |
Yasuhiro Kimura (yasu)  |
mail/py-spf-engine: Update to 3.0.4
ChangeLog: https://git.launchpad.net/spf-engine/tree/CHANGES?h=3.0.4 |
3.0.3_1 04 Apr 2023 18:29:11
    |
Antoine Brodin (antoine)  |
USE_PYTHON=pep517: bump PORTREVISION |
3.0.3 27 Feb 2023 01:45:15
    |
Yasuhiro Kimura (yasu)  |
mail/py-spf-engine: Update to 3.0.3
* Since 3.0.0 spf-engine uses flit-core as build backend. So switch to
use 'USE_PYTHON=pep517'.
* Add entry to UPDATING as default configuration file path of
pyspf-milter has changed.
ChangeLog: https://git.launchpad.net/spf-engine/tree/CHANGES?h=3.0.3 |
2.9.3_1 11 Jan 2023 15:58:34
    |
Dmitry Marakasov (amdmi3)  |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
2.9.3_1 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
2.9.3_1 05 Sep 2022 20:18:13
    |
Yasuhiro Kimura (yasu)  |
mail/py-spf-engine: Miscellaneous bug fixes and improvements
* Fix runtime error of pyspf-milter that happens when either 'UMask'
or 'IntHosts' is set in configuration file.
* Stop installing backup files.
* Make miscellaneous paths consistent between library files, man
pages, pkg-message and rc.d script.
* Remove CONFLICTS as mail/postfix-policyd-spf-python is removed from
ports tree
MFH: 2022Q3 |
2.9.3 20 Jul 2022 14:22:19
    |
Tobias C. Berner (tcberner)  |
mail: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <ashish@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Adam David <adam@FreeBSD.org>
* Adam McDougall <mcdouga9@egr.msu.edu>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alex Deiter <tiamat@komi.mts.ru>
* Alex Dupre <ale@FreeBSD.org>
* Alex Dupre <sysadmin@alexdupre.com>
* Alex Perel <veers@disturbed.net> (Only the first 15 lines of the commit message are shown above ) |
2.9.3 08 Feb 2022 10:32:22
    |
Yasuhiro Kimura (yasu)  |
mail/py-spf-engine: Update to 2.9.3
* Switch to DISTVERSION
* Pet portclippy
* Tidy up Makefile with portfmt
ChangeLog: https://git.launchpad.net/spf-engine/tree/CHANGES?h=2.9.3 |
2.9.2 28 Sep 2021 05:13:33
    |
Yasuhiro Kimura (yasu)  |
*/*: Update MAINTAINER address of my ports to that of FreeBSD.org
Approved by: meta (mentor)
Differential Revision: https://reviews.freebsd.org/D32170 |
2.9.2 06 Apr 2021 14:31:13
    |
Mathieu Arnold (mat)  |
all: Remove all other $FreeBSD keywords. |
2.9.2 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
2.9.2 31 May 2020 13:49:28
  |
dbaio  |
Add mail/py-spf-engine, Deprecate mail/postfix-policyd-spf-python
Give time to users to change their env
The new port is the successor, it supports milter feature and its
config file is in another path.
PR: 244424
Submitted by: Yasuhiro KIMURA <yasu@utahime.org> (maintainer) |