configured the mail server for Superdesk
  • fdsfsfdsfdsfs


    Post edited by Dang Ho at 2018-09-29 10:42:54
  • 1 Comment sorted by
  • Hi, 

    assuming that you've already installed Superdesk, edit file 

    /opt/superdesk/env/src/superdesk-core/superdesk/default_settings.py 

    and set the MAIL settings, if you're planning to use your local email server the default settings will work for you

    MAIL_SERVER = env('MAIL_SERVER', 'localhost')
    MAIL_PORT = int(env('MAIL_PORT', 25))

    If you're using an external account you have to specify the settings, at least 

    MAIL_USE_TLS, MAIL_USERNAME, MAIL_PASSWORD

    Any edit to that file needs Superdesk to be restarted for the changes to take effect

    root@superdesk:~# systemctl restart superdesk


    If you've installed Superdesk through the automated script, it also installs a test smtp server for you. If you're planning to use a local postfix instead, make sure you disable that

    root@superdesk:/opt/superdesk# systemctl stop superdesk-smtp
    root@superdesk:/opt/superdesk# systemctl disable superdesk-smtp

    YG. While you are editing file default_settings.py you might want to consider making other changes as well, options are explained here: https://superdesk.readthedocs.io/en/latest/settings.html 

    Regards