mautrix-xmpp
============

A Matrix-XMPP puppeting bridge written in Go.

Sends and receives XMPP messages (private chats and group chats)
from Matrix. Works with any XMPP provider (TCP, no WebSocket
requirement).

-----

Features

- Private chats (DMs) in both directions
- Group chats (MUC) in both directions
- Roster contacts appear as Matrix rooms
- Login over Matrix chat with JID and password
- Standard XMPP over TCP (port 5222 or custom)

Not yet implemented

- Calls (deliberately out of scope)
- Media sending
- Message edits and reactions
- Avatars

-----

Build

    go build -o mautrix-xmpp ./cmd/mx-xmpp/

Install

    make install        # installs to /usr/bin
    ./build.sh          # or use this

Setup

    1. Generate an example config:
       mautrix-xmpp --generate-example-config
    2. Edit the config (homeserver, domain, database, tokens).
    3. Generate the registration:
       mautrix-xmpp --generate-registration
    4. Add the registration to Synapse under app_service_config_files.
    5. Restart Synapse.
    6. Start the bridge:
       mautrix-xmpp -c /path/to/config.yaml

Use

Start a chat with the bridge bot (@xmppbot:yourdomain)
and send:

    login

Enter your XMPP JID and password. Contacts and group chats
will appear as Matrix rooms.

-----

Config lives in /etc/mautrix-xmpp/ on the default install.

Source: https://github.com/marlonivo/mautrix-xmpp