Startup problems with pyspf-milter on freebsd
I am configuring a new migration install of pyspf-milter on FreeBSD 14 and the service won't run for me, that is,
#service pyspf-milter restart
pyspf_milter not running? (check /var/run/
Starting pyspf_milter.
Then silently fails to be running. I'm not collecting any errors in the log files.
py311-pyspf-
py311-spf-
The interpreter, python3.11 exists and the command is correct.
Executing the daemon command without the -f option, as:
# /usr/sbin/daemon -c /usr/local/
yields some scary looking errors (below), well one and one I can't figure out.
* Does spf require the legacy option built into OpenSSL?
* py311-dnspython
* are the below errors why it is failing to start or irrelevant to another problem?
# Traceback (most recent call last):
File "/usr/local/
import dns.resolver # http://
^^^
File "/usr/local/
import dns._ddr
File "/usr/local/
import dns.nameserver
File "/usr/local/
import dns.asyncquery
File "/usr/local/
import dns.quic
File "/usr/local/
import aioquic.
^^^
File "/usr/local/
from ..tls import (
File "/usr/local/
import service_identity
File "/usr/local/
from . import cryptography, hazmat, pyopenssl
File "/usr/local/
from cryptography.x509 import (
File "/usr/local/
from cryptography.x509 import certificate_
File "/usr/local/
from cryptography.
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/
from spf_engine.
File "/usr/local/
import spf
File "/usr/local/
import DNS # https:/
^^^^^^^^^^
ModuleNotFoundE
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SPF Engine Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- David Gessel
- Solved:
- Last query:
- Last reply: