4 ms·
Client IP address disclosure in smtp.gmail.com
- 9wzYQbTYsAIc 7y agoAnyone know how privacy-focused providers fare with this?
- dannyw 7y agoUnsurprisingly, Protonmail strips the IP address.
- mike_d 7y agoProtonmail does not support SMTP at all, so I'm not sure what you think they would be stripping. Both Protonmail and Gmail hide the IP if you're using the web interface.
- NonEUCitizen 7y agoProtonMail does support SMTP via a bridge: https://protonmail.com/bridge/ https://protonmail.com/bridge/ tho not clear if dannyw tested with ProtonMail IMAP/SMTP Bridge or with ProtonMail web.
- detaro 7y agomailbox.org appears to not include it
- my_first_acct 7y agoThe email service luxsci.com scrubs a lot of information from your headers, if you wish [1]. Another well-known email provider allows you to scrub the IP address, but it isn't clear whether they mean to publicize it. So Google the name of your favorite email provider along with "hide ip address", and see what you can find. [1] https://luxsci.com/extranet/info/email-smtp-anon.html https://luxsci.com/extranet/info/email-smtp-anon.html
- amarshall 7y agoFastmail includes it by default, but will scrub it if using port 565 for SMTP.
- _wldu 7y agoIsn't that how SMTP has worked for decades?
- Carpetsmoker 7y agoYes, but if Google does it it's worse ¯\_(ツ)_/¯
- ratsmack 7y agoYes, and it is extremely handy for debugging email issues and for identifying spammers.
- mlosapio 7y agoYes.
- throwanem 7y agoI've just reproduced the described behavior via a test message from Gmail. On the other hand, I've also just reproduced it via test messages from every other one of my email accounts, across multiple providers as well as the various instances I run for my own use. The only one that didn't repro was Office 365.
- resfirestar 7y agoWith O365, your IP should generally be in the X-Originating-IP header.
- throwanem 7y agoOh, look at that, so it is.
- yipeedipee 7y agoWe use a mail flow rule to remove the header when it goes through o365 outgoing.
- resfirestar 7y agoThis is how SMTP is supposed to work. As a side note, messages sent with Outlook or webmail using O365 (or Exchange) don't go from your client to the O365 server over SMTP, but your IP address is still shown in the X-Originating-IP header.
- mike_d 7y agoThis is "Working as Intended" (and Google told him exactly that). Gmail and other providers have to split the balance between privacy and security. If you use the web interface and they authenticate your device directly, Google hides your IP and takes responsibility as the "source" of the email. If you're using SMTP it is possible you could be relaying mail for others (even possibly as an open relay) and they will disclose the IP of your client or mail server.
- 55555 7y agoThis is what is supposed to happen. I guess I agree though that we could get rid of it as normal users dont know this is how email normally works. It's useful though...
- tedunangst 7y agoI'm half surprised I didn't get a "your computer has an IP!" popup visiting this page.
- Carpetsmoker 7y agoIf host A is using gmail to spam me, then I can block host A, but if gmail would remove this I can only block all of gmail (or the gmail account, but a new account will be created 2 seconds later, whereas creating new IPs is much harder). I'm all for privacy and prevention of leaking data such as IP addresses, but there are other concerns, as well, which I often see "privacy advocates" forget about. Maybe there is a better way to solve this problem than including the IP address – I would be all for it – but this post doesn't mention any of this. Unfortunately, 100% privacy is often open to abuse from malicious actors, and a balance needs to be struck. BTW: you can make a similar argument about the stamps the post office puts on your letters, which often includes the location and may be "private information".
- gruez 7y agoHow is this argument relevant when you can still spam anonymously by using the web version?
- Carpetsmoker 7y agoSending spam on the gmail web UI is considerably harder than a few lines of shell script needed to spam over SMTP. And arguably, the web UI should really add the same Received headers.
- mcstafford 7y ago> Users looking to send email in a manner that keeps this information private from message recipients should use either Gmail’s web interface or an alternative mail provider. Or, use a VPN rather than hamstring the ability to validate email or fight spam.
- throwaway483284 7y agoDisclosure Timeline March 9, 2020 – Reported to Google security March 10-19, 2020 – Assisted with steps to reproduce March 20, 2020 – Resolved by Google as “Won’t Fix (Intended Behavior)” March 20-31, 2020 – Worked to confirm that there were no future plans to fix April 2, 2020 – Got confirmation that the team was aware of the issue and has no plans to fix Sorry but this is just embarrassing. He wasted so much of his time and time of others while doing 15 sec of googling[1] would solve this. [0] https://www.quora.com/Does-sending-email-from-Gmail-expose-your-IP-address-to-the-sender https://www.quora.com/Does-sending-email-from-Gmail-expose-y...
- icedchai 7y agoThis is how SMTP works.
- jamesaepp 7y agoCan someone break down what this means for me? I'm assuming an example of say Thunderbird as the MUA connects to gmail's servers with SMTP over TLS or using STARTTLS and happens to include this header of the client's public OR (not xor) private IP address as per specification(s). What's unclear for me it whether this is then stripped by gmail's MSA/MTA before being routed towards the destination. From how I'm reading the article in the OP, it seems to imply that the recipient of the message would know the sender's IP address. If this is the case then I'd say that's of some concern, but it seems people are saying this is NOT the case. Can someone please expand on the exact test setup?
- dfox 7y agoAny random MTA including gmail's that receives your message over SMTP prepends Received header to your message that contains where the message was received from and that somewhat obviously includes the IP address where the message came from. It works as intended and if you at all care about privacy implications of that (whatever that might be) you simply should not use email/SMTP.
- jamesaepp 7y agoI'm not looking for an argument, I've never noticed this behavior before. Why is this done? People are saying this is some kind of way to combat spamming/spoofing/malicious email but I don't see how that's the case. If the source address of the packets matches a blacklist then you can correlate against that. While not impossible to forge an IP address, it's certainly more trivial to edit the SMTP header (I'm not saying that would avoid detection, mind you). What benefit do we gain from including the origin's IP address throughout the entire header history?
- d1zzy 7y agoThis was done way before Google existed, way before they offered a GMail server or an SMTP interface to their servers. It is done to combat spam, if I get an email that was relayed through their servers I can see which IP connected to their servers to send it. Then every time the email is sent between servers the source IP is again added. It allows to track the real source of an email, remember that email inherently has no authentication, there's no way to really say the From address is authentic. But having a record of all the IP addresses used when transferring the email I can determine that pretty easily.
- johnklos 7y agoMaybe if kids these days weren't brought up with ONLY services like Gmail and Outlook for email, they wouldn't be so ridiculously surprised when they learn how actual email works. This does illustrate the differences in expectations, though. We all know how it works. Most consumers of Gmail don't. It should be made clear to them, or it should be changed to protect them.
- gumby 7y agoIn other news iOS tells every web site you visit Your IP address! And no matter where you drive people have access to a unique vehicle ID assigned to your vehicle by the state!
- zeroimpl 7y agoTip: run your own mail server and configure it to hide your source IP
- jscholes 7y agoApril Fool's was yesterday...