diff --git a/roles/matrix/templates/homeserver.yaml.j2 b/roles/matrix/templates/homeserver.yaml.j2
index 5498f3d635258524e8e1327cbb00d7a074e7d453..62475e5b5d45363df8bef2f36c1634ac69f0b871 100644
--- a/roles/matrix/templates/homeserver.yaml.j2
+++ b/roles/matrix/templates/homeserver.yaml.j2
@@ -116,6 +116,11 @@ autocreate_auto_join_rooms: false
 auto_join_mxid_localpart: mjolnir
 auto_join_rooms_for_guests: false
 
+auto_accepT_invites:
+  enabled: true
+  only_for_direct_messages: false
+  only_from_local_users: true
+
 # Login and registration
 
 registration_shared_secret: "{{ vault_matrix_secrets.registration_shared_secret }}"