A tracking pixel must often accept a request from a mail client that has no account session. That public requirement should not accidentally open account-management actions beside it.
Define each endpoint's job
A public pixel can record a narrowly scoped event associated with an opaque identifier. It should not return private message content, reveal credentials or establish an administrator session. A click redirect should likewise have a controlled purpose and destination policy.
Private operations such as changing settings or exporting contacts still require their own authentication and authorization. Sharing a directory or controller does not make their access rules interchangeable.
Test both sides of the boundary
Use fictional event identifiers to verify that legitimate public tracking still works without a login. Then test that the same request cannot be repurposed to read account data or perform a privileged operation.
Keep identifiers out of unnecessary logs and do not treat their possession as proof of the recipient's identity. A forwarded message can carry its tracking token to someone else.
Preserve the public behavior the feature needs, while keeping its authority narrow. A useful endpoint does not need to become a general account credential.