A tool you host yourself

Mattermost

Source code: github.com/mattermost/mattermost

Reading the record: its licence, updates, setup and sources.