XMPP, historically called Jabber, is an open messaging protocol that has been around since 1999. It is federated, which means you choose a server and your contacts choose theirs, and the two talk to each other without a company in the middle holding the whole graph. That is the property that makes it interesting here.
One clarification, because it appears in a lot of bad guides: Cisco bought Jabber Inc. in 2008 and used the name for an enterprise product. The protocol was never Cisco's and is not closed. XMPP is an open standard, implemented by many independent clients and servers, and the Jabber name is just the older colloquial term for it.
Two clients, two encryption models
Gajim is the more modern desktop client. It supports OMEMO, which is the current standard for XMPP end-to-end encryption, works across multiple devices, and is what most people should use if they are starting fresh. It is available for Windows, macOS and Linux.
Pidgin is older and plainer, but it is the client that ships with Tails, and it supports OTR. OTR is one-to-one, deniable and well understood, but it has no multi-device story and no group support. If someone insists on OTR, Pidgin is how you meet them.
Neither client encrypts by default. You turn it on per conversation, and you verify the other side's fingerprint. A chat that says "encrypted" without a verified fingerprint is encrypted to a key you have not checked.
Choosing a server
Public XMPP providers come and go. Several well-known ones have shut down or stopped accepting registrations, and older guides still recommend addresses that no longer resolve. Do not assume a provider from a tutorial is alive; check it before you rely on it.
What to look for: TLS required for client connections, no logging policy you can actually read, registration either open or invite-only in a way that suits you, and a jurisdiction you are comfortable with. A small paid or invite-only server is often a better bet than a free public one, because free servers tend to disappear.
Running your own server is the other option, and it is more work than it sounds: certificates, updates, and the fact that a server with one user is a very distinctive thing on the network.
Setting up Gajim
Install it from gajim.org or your package manager. On first launch, choose Sign Up if your provider allows registration in-client, or Add Account if you already have credentials. Enter the full address, including the domain, and the password.
Once you are in, enable OMEMO per contact. Gajim will show the contact's device fingerprints; compare them with the ones the contact published, ideally over a different channel. Enable it before you type anything you would not put on a postcard.
Turn off the features that leak by default: message archiving, link previews, file transfer over the peer-to-peer path, and presence broadcasting you did not choose. A link preview is an HTTP request to the linked site, generated by your client, from your connection.
Setting up Pidgin, and the Tails caveat
Pidgin is pre-installed on Tails with the OTR plugin. Add an account under Accounts → Manage Accounts → Add, protocol XMPP, your full address and password. Then go to Tools → Plugins and enable Off-the-Record Messaging.
On Tails, do not follow instructions that tell you to set a Tor proxy in the client. Tails routes all traffic through Tor transparently, so a proxy setting in the application is unnecessary and, if you get it wrong, it breaks the connection. The same applies to Whonix.
If you want Gajim on Tails, it is not installed by default and you cannot simply apt install it and expect it to survive a reboot. Use the Additional Software feature in persistent storage, which reinstalls selected packages at boot, and accept that it needs network access before the client appears. For most people, Pidgin with OTR is the path of least resistance inside Tails.
Operational rules
One account per persona. No contact syncing from a phone. No real name, no reused handle, no photograph. Verify fingerprints out of band. Never send an address in plaintext, and never assume the other side's client is configured correctly just because yours is.
If you need something with fewer moving parts than XMPP, SimpleX and Session both remove the server-and-account model in different ways, with their own trade-offs. XMPP's advantage is that it is boring, federated and has thirty years of scrutiny behind it. Its disadvantage is that you have to do the verification yourself.
