Problem SeaHub SMTP

Hello,

I want my seafile-server to send E-Mails to it’s Users. But I got the folowing error… Do you have any idea, to solve this issue?

2020-06-30 15:44:02,002 [ERROR] seahub.api2.endpoints.admin.users:613 post string index out of range
2020-06-30 15:45:52,640 [ERROR] seahub.auth.views:320 password_reset string index out of range

I’m using a fresh installation of seafile 7.1.4 on a fresh installation of ubuntu 20.04. I’ve allready added these SMTP lines on seahub_settings.py:

EMAIL_USE_TLS = False
EMAIL_HOST = 'w.x.y.z'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 25
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER

Got it … the SMTP must look like this with postfix:

EMAIL_USE_TLS = False
EMAIL_HOST = 'localhost'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = '25'
DEFAULT_FROM_EMAIL = noreply@${HOSTNAME}
SERVER_EMAIL = DEFAULT_FROM_EMAIL

Hmm, I think seahub_settings.py is supposed to be valid python. The string substitution using ${} is not a thing in python, that looks more like sh syntax.