Seahub won't start after configuring email server settings


#1

My server works well as-is, with everything set up except for the email server. The problem is, when I add to seahub_settings.py the following lines:

EMAIL_HOST = xxx.xxx.com        # smpt server
EMAIL_HOST_USER = ''    # username and domain – empty
EMAIL_HOST_PASSWORD = ''    # password – empty
EMAIL_PORT = 25
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER

seahub won’t restart at all. I even tried adding “EMAIL_USE_TLS = False”, then “EMAIL_USE_TLS = True”. According to what I’ve read on the internet so far, misconfigured email settings should only cause failiure to send emails. not preventing the whole server from starting.

I’ve also checked to see that i can telnet from my server to that email host on that port.

Any advice on how to proceed?


#2

Hi dalonsop,

your seahub_settings.py contains wrong or bad formated entries. This prevents seahub from starting.
Please try to start seahub with the parameter “fastcgi” to get more information about what is wrong.
seahub.sh start-fastcgi
This will not start seahub but will tell you what is wrong.
I am quite sure that seahub will say: malformated EMAIL_HOST. It has to be EMAIL_HOST = ‘…’.

As soon as fixed the problem you can start seahub with seahub.sh start.

Best regards
Christoph