Page 3 of 3

Re: OpenEFA Installer v1.x Now Available - Minimal Ubuntu Compatible

Posted: Wed Oct 22, 2025 11:51 am
by Woger
root@s3:~# cat /opt/spacyserver/config/email_filter_config.json
{
"processed_domains": ["domain1t.net","domain2.com"],
"enable_debug_logging": 1,
"servers": {
"mailguard_host": "178.x.x.194",
"mailguard_port": 26
}
}

Re: OpenEFA Installer v1.x Now Available - Minimal Ubuntu Compatible

Posted: Wed Oct 22, 2025 12:17 pm
by Carl Brunning
mmm not sure
this may be silly, from the the filter are you able to telnet the email server

using the port 26

Re: OpenEFA Installer v1.x Now Available - Minimal Ubuntu Compatible

Posted: Wed Oct 22, 2025 1:43 pm
by Woger
yes:

root@s3:~# telnet 178.x.x.194 26
Trying 178.x.x.194...
Connected to 178.x.x.194.
Escape character is '^]'.
220 mailgateway.domain2.net ESMTP Postfix

If you want to look on the server itself, sent me a pm.

EDIT:
This looks wrong:
Loaded 2 processed domains from database domain2.net -> 178.x.x.194:25 w4r.com -> 178.x.x.194:25
It seems it got those ports from the database and not Transport file or py settings

Edit 2:
I changed the table client_domains - relay_port to 26 (was 25) and now it works. However, the mail is not shown in the dashboard. I however do see headers from the openefa server in the mail.

Edit 3:
I removed line 299 in /opt/spacyserver/services/db_processor.py and now the error "cannot access local variable 're' where it is not associated with a value" is gone and emails are forwarded:
if message_str:
try:
from email import message_from_string
---> # import re
msg = message_from_string(message_str)
However, they don't show up in the dashboard and I got this in the db_processor.log:
2025-10-23 12:10:56,280 - WARNING - ⚠️ No sender found, using placeholder: 'unknown@unknown.com'