Error with TLS encryption

34 views
Skip to first unread message

Ben Shields

unread,
May 13, 2026, 7:31:11 PMMay 13
to OpenREM
Hi OpenREM Team,

I think I have found a bug in the latest OpenREM v1.0.0b3. The issue occurs when the program sends emails with TLS encryption.

With EMAIL_USE_TLS=1, upon sending a test email, I got a server 500 error. With DEBUG=1, I got the following error message,

Exception Type: TypeError at /openrem/settings/rfalertnotifications/ Exception Value: SMTP.starttls() got an unexpected keyword argument 'keyfile'

What I found was that the keyfile parameter was removed in python 3.12

Django 3.2 still includes the keyfile argument in its function call but python 3.12 doesn't recognise it.

This issue was fixed in Django 4.2 but OpenREM v1.0.0b3 still uses Django 3.2

From what I can tell and without knowing the other nuances of OpenREM and different python versions, downgrading to python 3.10 would solve this particular issue in the short-term as both python and Django would use the keyfile parameter. In the long-term, upgrading to Django to version 5.2 LTS would be a better approach but understand that may bring on more development work.

I'm running OpenREM v1.0.0b3 in Docker on linux.

Love your work!

Regards,
Ben.

Nicolas Chamouard

unread,
Aug 10, 2026, 6:30:02 AMAug 10
to OpenREM
Hello,

I encounter the same problem with v1.0.0b3. Does the beta 3 work with python 3.11 ? it could be a stopgap until the Django update.
By the way, we are really happy to upgrade from v0.10.0 and python2 !

Best regards,
Nicolas

Ed McDonagh

unread,
Aug 11, 2026, 12:36:11 PMAug 11
to OpenREM
Hi Nicolas, Ben - sorry for not responding before Ben!

Short term, I think Python 3.10 and 3.11 are fine. 

Medium term, the amazing team at KSA in Switzerland have created a Docker based version of OpenREM with the latest versions of everything. We will be working to bring that work back into the main project, where hopefully we can then keep things up to date a bit more easily. 

Help with any of this, plus the website, documentation and any related activities is always welcome! 

Kind regards

Ed

--
You received this message because you are subscribed to the Google Groups "OpenREM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrem+u...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/openrem/0a7aec4c-b1a7-4c4f-ae64-1a5d5684b959n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages