Port details |
- py-spf-engine SPF engine for Postfix policy server and milter implemented in Python
- 2.9.3 mail
=2 2.9.3Version of this port present on the latest quarterly branch. - Maintainer: yasu@FreeBSD.org
 - Port Added: 2020-05-31 13:49:34
- Last Update: 2022-02-08 10:32:22
- Commit Hash: 03fd784
- People watching this port, also watch:: p5-Net-HTTP, openjdk8, json-c, py38-pycparser, tmux
- Also Listed In: python
- License: APACHE20 GPLv2+
- 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).
WWW: https://launchpad.net/spf-engine
- SVNWeb : git : Homepage
- 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}
- Conflicts:
- CONFLICTS:
- py*-postfix-policyd-spf-python
- Conflicts Matches:
-
There are no Conflicts Matches for this port. This is usually an error.
- 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 py38-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 py38-spf-engine listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py38-spf-engine
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1644313848
SHA256 (spf-engine-2.9.3.tar.gz) = c3435bf8bfceb3728f02910da329710956820f816f826be97d5bf00a4b762031
SIZE (spf-engine-2.9.3.tar.gz) = 52974
- 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:
-
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- Runtime dependencies:
-
- py38-authres>0 : mail/py-authres@py38
- py38-milter>0 : mail/py-milter@py38
- py38-pyspf>0 : mail/py-pyspf@py38
- py38-setuptools>0 : devel/py-setuptools@py38
- python3.8 : lang/python38
- There are no ports dependent upon this port
- Configuration Options:
- ===> The following configuration options are available for py38-spf-engine-2.9.3:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
- Options name:
- mail_py-spf-engine
- USES:
- python:3.3+ 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: see SVNWeb link above for full details) |
Date | By | Description |
08 Feb 2022 10:32:22 2.9.3
|
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 |
28 Sep 2021 05:13:33 2.9.2
|
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 |
06 Apr 2021 14:31:13 2.9.2
|
Mathieu Arnold (mat)  |
all: Remove all other $FreeBSD keywords. |
06 Apr 2021 14:31:07 2.9.2
|
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
31 May 2020 13:49:28
2.9.2
|
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) |