receive “password reset on 127.0.0.1” in subject of email while password reseting by email.
centos 7
seafile 7.1.4
Hi, I can set “site_name” and see it only in body of email, but subject shows me “127.0.0.1”
I cant find any other *.py with email settings in my server.
How can I change 127.0.0.1?
What to do?)
hi
the settings for sending emails are in the file “seahub_settings.py”
EMAIL_USE_SSL = True
EMAIL_HOST = 'mail.XXXXXX.me'
EMAIL_HOST_USER = 'info@XXXXXX.me'
EMAIL_HOST_PASSWORD = 'My-Password'
EMAIL_PORT = 465
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER
REPLACE_FROM_EMAIL = False
ADD_REPLY_TO_HEADER = True
set according to your mail server
with these settings my emails are sent with the following layout:
https://manual.seafile.com/config/sending_email/
you can add this line also in “seahub_settings.py”
SITE_NAME= ‘Seafile’
1 Like
Thank you very much!
Just fixed this by
rm -rf /usr/bin/python
ln -s /usr/bin/python3 /usr/bin/python
systemctl restart seafile
#check
rm -rf /usr/bin/python
ln -s /usr/bin/python2 /usr/bin/python
systemctl restart seafile
#check
python version was 2 before starting
Looks weird but still works)