Hi. I have a group of 6 people using Discord to chat. Recently Discord changed a lot and we’re looking for an alternative. We have a few requirements:

  • Good client on multiple platforms
  • Easy to use search
  • Self hosted
  • Permanently saved chat history & attachments on server (no expiration)
  • Easy image upload (Ctrl+V to post image from clipboard)

IRC isn’t an option as chat history is saved on the client, and there’s no good integrated way to share files and preview images. Matrix would be an overkill as we’re a small group not interested in federation, and the available clients had a few bugs. Mattermost lacks a good mobile app (their current one had bunch of bugs). XMPP appears to be the best as it is extensible and has many clients available.

However, I tried configuring prosody on my FreeBSD server and it seems like it doesn’t permanently save chat history or attachment files. Does anyone know if these can be solved? Or is there any better alternative than XMPP?

Thanks.

  • WeAreAllOne@lemm.ee
    cake
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 months ago

    Many years ago I used XMPP with Prosody and it was ok.

    • You can setup some retention time for attachments and history depending on the space you have.
    • There are clients for multiple platforms but not very much advanced vs competition.
    • Security is good with omemo protocol. In so e clients you have to turn it on since it’s not by default.
    • Audio video calls on one to one is good as long as you setup stun coturn server. Android to iOS calls still in progress.
    • Check out Snikket for an all in one solution.

    You might want to also consider Matrix (dendrite option ?) for your needs.

    • EngineerGaming@feddit.nl
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      I just started hosting Matrix in addition to XMPP (just because some communities prefer it now), and I find it bothersome that it saves chat history and media to every participating server. IDK how much of an issue chat logs would be, but media scares me a lot. Hopefully cleaning old files manually would not break anything…

      Anyway, I started with Conduit rather than Dendrite, and it seems like a good experience. Could not even hope to get Synapse going on my weak VPS.

      • WeAreAllOne@lemm.ee
        cake
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 months ago

        Ah good to know about Conduit!

        Well that’s how the protocol works saving data on every participating server.

        Simplex chat might be another alternative but is on early development as far as groups and desktop client.

    • hexagonwin@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      Thanks. Have you tried configuring infinite time for retention/attachments/history? I can’t find a way to disable those limits completely. Conversations on Android and Pidgin on Linux/Windows look pretty good, I’ve yet to find a good OSX one though. I’ll try checking out Snikket, thanks.

      • poVoq@slrpnk.net
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        3 months ago

        Please don’t use Pidgin, its horribly outdated and doesn’t properly support nearly everything you want. For Windows Gajim is currently the best option, otherwise see: https://joinjabber.org

      • WeAreAllOne@lemm.ee
        cake
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 months ago

        Unfortunately I don’t remember about the retention setting.

        I would avoid Pidgin since I’m not so sure they implement fully omemo encryption. Try Gajim.

  • SolidGrue@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 months ago

    I maintained an ejabberd server for myself and a few friends for many years. The config language was a little arcane to me at first, but it was pretty solid after I got it set up. I used a couple of different client apps with it over that time, most of which are still available on the F-droid repo. It was fun, but got annoying when the server needed maintenance, or was down, or because of any of the other minor nuisances that come along with maintaining a service for others to use.

    Eventually we all ended up just moving over to Signal because it was just as good from the view of cost-benefit and risk for us. We’re just trading stupid memes and Saturday night stories among ourselves. The most radical thing we might organize is a trip to Vegas for the week.

    Definitely try it out, but consider that being a comms provider for others is always a bigger chore than it seems at the outset.

    • EngineerGaming@feddit.nl
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      The most annoying thing about Signal is that they don’t for some reason allow registering from desktop directly, so I had to use signal-cli. Which is inconvenient AF and it’s a shame they haven’t added a feature as simple as “input an SMS code in the desktop client”.

      Anyway, glad I only have to use it for a couple of guys and only with my real identity. So happy XMPP exists, and I have most of my 1-to-1 messaging with internet friends there. Very easy to host.

      • SolidGrue@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 months ago

        I hear you. The desktop wasn’t Signal’s primary market, and that’s pretty clear in their implementation. On the other hand, that difficulty registering a desktop servuce may make it less attractive to would-be bot farms and spammers. Its a thin one, but I see that as a silver lining.

        • EngineerGaming@feddit.nl
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 months ago

          Not just bot-farms and spammers, but just a regular person. What is Signal’s main feature? Encryption. You would not want to expose your sensitive chats to a smartphone, unless it has a privacy-respecting OS (which not all phones can do). Good thing I only have to use it with a couple of guys who don’t want to use other encrypted communication methods.

    • Dran@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      Did you ever get carbons working properly? (As in, mobile and desktop clients of the same user both getting messages and marking as read remotely between them)

      • poVoq@slrpnk.net
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 months ago

        Getting messages synced between modern clients works reliable since a long time.

        Marking them as read on the other hand is not a feature of message carbons and there were different sometimes contradicting ways how that was implemented (it is a surprisingly complex topic).

        That said, just a few weeks ago there has been a renewed effort to standartise message read synchronization and it looks like the major clients are on board this time, so I hope that will get much better soon.

      • Brunacho@scribe.disroot.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        3 months ago

        that is not carbons though, carbons is working properly. Apparently they talked about this issue in the latest XMPP group meetup so something may be in the works.

  • dominiquec@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    3 months ago

    Nextcloud has chat capabilities. Perhaps it might be overkill for chat alone but presumably you also want some collaboration with documents.

    • hexagonwin@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      It’s just a room for chatting among friends so not really, but I’ll check this out as well, thanks.

    • TCB13@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      3
      ·
      3 months ago

      Yes, but Nextcloud is also a perpetually half made project that breaks at every corner and requires a lot of resources.

      • dominiquec@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        3 months ago

        Speaking from experience from the last five years, it’s been pretty good for me.

    • hexagonwin@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      Looks interesting, but isn’t this slow though?

      Our chatroom is very active and the members won’t move if it’s much slower compared to Discord unfortunately…

      • bob@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        3 months ago

        It’s basically real-time, even sending large files is very fast, I don’t know the details of the reason, maybe it’s because there is not much difference between IMAP and TLS, or because the roundcube we deploy is super fast?

    • hexagonwin@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      I’ve tried installing and using revolt. It’s okay and our members like it but the lack of support and a usable control panel makes it hard to choose.

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    3 months ago

    Prosody can be configured to permanently save chat and files, you just need to change the default settings. If I remember correctly an empty value for the retention means infinite, but I don’t think that is a good idea as it just wastes storage space.

    Otherwise I think you will run into issues with search as none of the xmpp clients consider permanent searchable history to be particularly important. And I tend to agree, as chat is among the worst possible ways to store information, no matter the search capabilities.

    • hexagonwin@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      You’re right that it’s not ideal, but somehow people like it… :/

      Thanks anyway, I’ll try if that works.

        • anyhow2503@lemmy.world
          link
          fedilink
          English
          arrow-up
          14
          ·
          3 months ago

          I get what you’re saying, but this feels like a weird question to ask in a community for selfhosting enthusiasts.

        • 667@lemmy.radio
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          It seems they would like the flexibility to administrate the server any way which suits them. Using someone else’s server would complicate that, and expose their discussions to unknown administrators.

          Those are just the things I can think of right off the bat.

  • aksdb@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    I am surprised that no one mentioned snikket yet, which is essentially a distribution of Prosody with sane defaults and a custom client.

  • orcrist@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Prosody claims to support Message Archive Management and HTTP file sharing, sounds like the feature you want, or at least it is close.