element-hq / element-hq/synapse

Option to add "X-Mailer" header when sending emails

Open
#13,182 0 comments 0 reactions 0 assignees View on GitHub
A-Email-Push A-Push P4 T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#13182](https://github.com/matrix-org/synapse/issues/13182).

---

The X-Mailer header is commonly used to identify the software/SMTP-client used to initiate and send an email.
For example, all emails sent from Facebooks servers (Instagram, Facebook, Whatsapp) have the following X-Mailer header:
`X-Mailer: ZuckMail [version 1.00]`

Example of different X-Mailer headers in my SMTP-relay
![image](https://user-images.githubusercontent.com/10996038/177364805-6a2476b3-0ed6-4edf-9060-efb67b7259d0.png)

Why?
To make it easier for recievers to build filters depending on the X-Mailer header, and to just keep track on what kind of server the emails originate from.

Example header:

`X-Mailer: Matrix-Synapse ${CURRENT_VERSION}`
Or, the option to specify in the settings.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.