mautrix / imessage

A Matrix-iMessage puppeting bridge
https://go.mau.fi/mautrix-imessage/
GNU Affero General Public License v3.0
355 stars 37 forks source link

End-to-End Encryption not working #93

Open Patt92 opened 2 years ago

Patt92 commented 2 years ago

I'm using several mautrix bridges, which work really good, but I'm unable to enable End-to-End Encryption for the imessage bridge. WhatsApp, Facebook, Instagram, Signal, Discord are working encrypted with the bridge set default:true.

I'm running a Mac Mini M1 with the bridge running in Automator (works flawless), the synapse homeserver/wsproxy are another public server and they are connected via Wireguard and served as docker container. I'm receiving my chats as unencrypted even though I have enabled it as default.

I tried creating a encrypted room by addin @imessage_34567890:my.matrix.server, which creates an encrypted chat, but everything written there goes into void. After a time, the unencrypted chat rooms reappear, those are working.

The encryption part of the mautrix-imessage config.yaml

encryption:

Allow encryption, work in group chat rooms with e2ee enabled

    allow: true
    # Default to encryption, force-enable encryption in all portals the bridge creates
    # This will cause the bridge bot to be in private chats for the encryption to work properly.
    default: true
    # Whether or not to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
    appservice: false
    # Require encryption, drop any unencrypted messages.
    require: false
    # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
    # You must use a client that supports requesting keys from other users to use this feature.
    allow_key_sharing: false

Is there anything, I'm missing? wsproxy doesn't seem to be involved in the encryption part, so I thought the issue is the Mac setup.

2600box commented 1 year ago

Did you ever resolve this?

Patt92 commented 1 year ago

Did you ever resolve this?

sadly not, all other bridges work fine though

starascendin commented 1 year ago

my setup is bit than yours, i ran the ansible matrix setup and have enabled encryption for the imessage bridge. It works this way