mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #96] [Privacy/Security] Agent string and local system hostname in MessageID field of sent e-mails #82
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @krackout on GitHub (Mar 31, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/96
Originally assigned to: @d99kris on GitHub.
I've noticed that on e-mails sent by nmail, the content of Message-ID field is:
Message-ID: <nmail.3.62.624368d7.2eb141f2.263@LocalSystemHostName>Sending from the same account through other MUA,
Message-ID: <da5be6a2-1a3f-a87d-0c10-ae0785653362@Mail_Domain.com>Privacy and security wise, I suggest to remove the content of this field and substitute it with something generalized or random. Or remove the field completely if possible. It leaks the MUA, its version and the local hostname of the system of the sender.
MUA string is not considered a problem and usually presented, but still it can be hidden as an option on most MUAs (it's an info for a possible attacker). But the local hostname should be removed.
@d99kris commented on GitHub (Mar 31, 2022):
Ok, will take a look at this. The current
Message-IDwas based, like a lot of other things, on thealpineemail client.@d99kris commented on GitHub (Mar 31, 2022):
Btw, short-term you can override sender hostname using the
sender_hostnameconfig parameter. The email client name and version will still be visible though.@krackout commented on GitHub (Mar 31, 2022):
I tried
sender_hostname, it works fine. It's ok for me, you can close this if you like, leaving user agent as is. I'll change the text describing the issue.@d99kris commented on GitHub (Apr 3, 2022):
I checked
Thunderbirdand it generates (as an example)305687c5-17fa-e4b1-aad8-3832799e8a21@gmail.comwhen sending from a gmail account. I thinknmailcould be changed to follow a similar format.@d99kris commented on GitHub (Apr 10, 2022):
A fix for this has been implemented now in above commit, so nmail generates a uuid.
Take note that nmail still passes its hostname as part of smtp authentication, unless
sender_hostnameis configured. The mail service provider may choose to include this hostname in the email headers.@d99kris commented on GitHub (Aug 14, 2022):
The option
sender_hostnamehas been deprecated as ofba2a192and instead a new optionsend_hostnamehas been added, to control whether to send client hostname in SMTP authentication (default enabled). One can disable it and thennmailbehaves similarly toThunderbird, sending[local ipaddress](ex:[192.168.0.12]as hostname during SMTP authentication.Message-id generation is unaffected and continous to use a uuid.
@d99kris commented on GitHub (Jun 25, 2023):
The option
send_hostnamehas been deprecated and insteadsend_iphas been added (enabled by default). Enabling this by default is made possible by incorporating a custom version of the underlyinglibetpanlibrary with improved support for smtp handshake using IP address (instead of hostname).