Error with TLS encryption

5 views
Skip to first unread message

Ben Shields

unread,
May 13, 2026, 7:31:11 PM (17 hours ago) May 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.
Reply all
Reply to author
Forward
0 new messages