News for hackers. Stuff that matters.
Re:What's next Google? Dropping SMTP support? by laumars on Thursday May 16, 2013 @08:27AM (#5718221)
> People keep banging on about "plain text, plain text" what is wrong with plain text?

Well it's not exactly secure, for one thing.

> Also email attachments can be binary encoded, base64 is just one option.

base64 is a method for encoding binary. You cannot send raw binary other ASCII - which is why base64 is used in SMTP.

> People are free to say that SMTP is "bad" or "broken" but they have to say exactly why that is the case.

Actually I have given a long list of reasons every time I've complained about SMTP[1][2]

[1] https://news.ycombinator.com/item?id=5510910 [2] https://news.ycombinator.com/item?id=5297472

Re:What's next Google? Dropping SMTP support? by UnoriginalGuy on Thursday May 16, 2013 @08:37AM (#5718269)
>Well it's not exactly secure, for one thing.

No more or less secure than HTTP/HTTPS. In fact exactly as secure as...

>base64 is a method for encoding binary. You cannot send raw binary other ASCII - which is why base64 is used in SMTP.

http://tools.ietf.org/html/rfc3030

http://tools.ietf.org/html/rfc2045

http://en.wikipedia.org/wiki/MIME#Content-Transfer-Encoding

>Actually I have given a long list of reasons every time I've complained about SMTP >https://news.ycombinator.com/item?id=5510910 https://news.ycombinator.com/item?id=5297472

Your list is full of misinformation.

- Base64 thing is nonsense. As already stated SMTP supports binary and has for a long time.

- SMTPS is fairly well supported. In fact I currently connect to nothing which lacks it, and my email client auto-selects it when setting up new connections. Most of the hosts as far as I know support SMTPS out-of-the-box.

- SMTP reply codes are standardised (http://www.ietf.org/rfc/rfc1893.txt)

- HTML is standardised.

- SMTP is not designed to be real-time. That is what IM is designed to provide.

Re:What's next Google? Dropping SMTP support? by laumars on Thursday May 16, 2013 @08:58AM (#5718360)
> No more or less secure than HTTP/HTTPS. In fact exactly as secure as...

HTTPS is end to end encryption. In the instances that SMTP traffic is encrypted, it's only node to node. So SMTPS is less secure than HTTPS.

> http://tools.ietf.org/html/rfc3030

It's still not /the/ standard though, just /a/ standard; and one that's not particularly well supported in my experience. Most of the SMTP servers I've dealt with have archived and transmitted binary content over base64.

> Your list is full of misinformation.

Please don't be rude. And to address your bullet points:

- already addressed the binary / base64 remark

- already addressed the SMTPS remark

- yes, but those response codes are rarely transmitted back up the stack (and when they are, with a horribly garbled error). I'm talking about rebuilding the entire stack - from client to server - so that users get meaningful responses.

- of course HTTP is standardised. I never said it wasn't. So please don't turn this into a dumb trolling match where you make shit up to win an argument.

- I know SMTP isn't designed to be real time. But there's absolutely no reason why e-mails shouldn't be real time in the modern world. Simply citing IM's as an argument misses the point. IM's are for conversations. Emails are for memos. There's no reason why memo's shouldn't be sent real time. In fact, Android's Gmail notifications are real time. Exchange pushes mail to Outlook clients in real time. There's no reason why real-time shouldn't be the standard for all e-mails. (note: we're not talking about real time character update. Just a standard system for pushing messages instead of the client periodically polling for updates).

Re:What's next Google? Dropping SMTP support? by UnoriginalGuy on Thursday May 16, 2013 @09:12AM (#5718422)
> HTTPS is end to end encryption. In the instances that SMTP traffic is encrypted, it's only node to node. So in this instance SMTPS is less secure than HTTPS.

Sorry, not following you. HTTPS and SMTPS are both end to end encryption schemes. In fact they both use SSL in a similar way to secure traffic.

> It's still not /the/ standard though, just /a/ standard; and one that's not particularly well supported in my experience.

Really? Strange. I transmit binary data every day over email and I've never had an issue with a recipient not receiving it.

Which mail server and version in particular are you having issues with?

In general almost all of the "big names" in mail servers support more than just base64 as standard.

> yes, but those response codes are rarely transmitted back up the stack

I'm looking in my mail server logs right now, and am seeing a response code from a third party server for every email we forward. Our mail server then determines what to do with each code, and I can manually add additional handlers (e.g. code XXX do THIS, code YYY do THAT).

> I know SMTP isn't designed to be real time. But there's absolutely no reason why e-mails shouldn't be real time in the modern world.

Cost is a reason. Delivery assurance is another (e.g. if it fails to deliver the first time, do you retry for hours or just give up?). The fact that some clients are still on slow/off-line connections is a very good reason (e.g. phones that come in and out of cellular range, people on dial-up, people out in the middle of nowhere who get internet for an hour once a week, etc).

Re:What's next Google? Dropping SMTP support? by laumars on Thursday May 16, 2013 @09:30AM (#5718499)
> Sorry, not following you. HTTPS and SMTPS are both end to end encryption schemes. In fact they both use SSL in a similar way to secure traffic.

Yeah sorry, I explained my point abysmally there. What I meant was e-mails are only encrypted on a node-to-node basis but obviously a proportion of that transport isn't over SMTP. (My complaints are about the entire e-mail stack where as you're focusing on just SMTP, so there may have been a degree of us talking past each other).

> I'm looking in my mail server logs right now, and am seeing a response code from a third party server for every email we forward. Our mail server then determines what to do with each code, and I can manually add additional handlers (e.g. code XXX do THIS, code YYY do THAT).

We're definitely talking past each here. I'm on about client side not server side. (I should have been more clear from the outset that my complaints are about the entire email stack rather than specifically against SMTP)

> Cost is a reason. Delivery assurance is another (e.g. if it fails to deliver the first time, do you retry for hours or just give up?). The fact that some clients are still on slow/off-line connections is a very good reason (e.g. phones that come in and out of cellular range, people on dial-up, people out in the middle of nowhere who get internet for an hour once a week, etc).

None of that is really an issue though. 1) we already have mail servers that retry for hours 2) we already have instant push mechanisms for e-mails on phones 3) you're actually reducing the network overhead by eliminating the POP3/IMAP handshakes every n minutes in favor of an idle TCP/IP connection with periodic pings.

> Really? Strange. I transmit binary data every day over email and I've never had an issue with a recipient not receiving it. Which mail server and version in particular are you having issues with?

Maybe the base64 conversion is happening at my end then. It's never caused an issue as such (we have the capacity to cope with base64), it was just one of many niggles with the mismatch of the whole ecosystem. But I'll happily concede that I was wrong about the binary point :) (I don't particularly want to announce to the world what software and versions we're running at work for reasons that I hope you appreciate)

Re:What's next Google? Dropping SMTP support? by jimbobimbo on Thursday May 16, 2013 @02:46PM (#5720341)
I think I follow your point about SMTP being secure only node-to-node, but doesn't S/MIME (PGP, etc.) solve the problem of security?
Re:What's next Google? Dropping SMTP support? by laumars on Thursday May 16, 2013 @04:08PM (#5720841)
Totally, but that's not standardised across the clients either (plus there's a few different competing solutions for e-mail encryption). This is why I want to redesign the entire stack - to ensure that such solutions are standard across the ecosystem and available by default.
Re:What's next Google? Dropping SMTP support? by popee on Thursday May 16, 2013 @10:54AM (#5718899)
> But there's absolutely no reason why e-mails shouldn't be real time in the modern world.

You should look at SIP. It's combination of HTTP,SMTP,... and is really great protocol for hackers and creative people. Bad side of SIP is that it's friking huge, but this is because there are lot of extensions (btw even IM is SIP extension).