Topic: cron emails with errors arriving after installation
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: freebsd 14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
so there are various errors coming to my postmaster mailbox through Cron,
here is the first:
Cron <root@mail> /usr/local/bin/python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null
raceback (most recent call last):
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 70, in <module>
from libs import utils, dnsspf
File "/opt/iredapd/tools/../libs/dnsspf.py", line 2, in <module>
from dns import resolver
File "/usr/local/lib/python3.11/site-packages/dns/resolver.py", line 30, in <module>
import dns._ddr
File "/usr/local/lib/python3.11/site-packages/dns/_ddr.py", line 12, in <module>
import dns.nameserver
File "/usr/local/lib/python3.11/site-packages/dns/nameserver.py", line 5, in <module>
import dns.asyncquery
File "/usr/local/lib/python3.11/site-packages/dns/asyncquery.py", line 32, in <module>
import dns.quic
File "/usr/local/lib/python3.11/site-packages/dns/quic/__init__.py", line 7, in <module>
import aioquic.quic.configuration # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioquic/quic/configuration.py", line 6, in <module>
from ..tls import (
File "/usr/local/lib/python3.11/site-packages/aioquic/tls.py", line 26, in <module>
import service_identity
File "/usr/local/lib/python3.11/site-packages/service_identity/__init__.py", line 6, in <module>
from . import cryptography, hazmat, pyopenssl
File "/usr/local/lib/python3.11/site-packages/service_identity/cryptography.py", line 11, in <module>
from cryptography.x509 import (
File "/usr/local/lib/python3.11/site-packages/cryptography/x509/__init__.py", line 7, in <module>
from cryptography.x509 import certificate_transparency, verification
File "/usr/local/lib/python3.11/site-packages/cryptography/x509/certificate_transparency.py", line 11, in <module>
from cryptography.hazmat.bindings._rust import x509 as rust_x509
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_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.
here is the second:
Cron <root@mail> /usr/local/bin/python3 /usr/local/www/iredadmin/tools/delete_mailboxes.py
* 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_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.
Traceback (most recent call last):
File "/usr/local/www/iredadmin/tools/delete_mailboxes.py", line 184, in <module>
qr_mailboxes = conn_deleted_mailboxes.select('deleted_mailboxes', where=sql_where)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'select'
here is the third:
Cron <root@mail> /usr/local/bin/python3 /opt/iredapd/tools/cleanup_db.py >/dev/null
Traceback (most recent call last):
File "/opt/iredapd/tools/cleanup_db.py", line 28, in <module>
cleanup_sql_table(conn=conn_iredapd,
File "/opt/iredapd/tools/../tools/__init__.py", line 89, in cleanup_sql_table
_qr = conn.select(sql_table,
^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'select'
can anyone help me with this please?
thanks
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.