Are email services like GMail and Hotmail insecure when using SMTP and TLS?

2

I remember recalling that SMTP is insecure and is transferred in plaintext. But we use TLS on these servers and they don't support foreign relaying. Does this mean that messages are safe? Or do they travel to and through unsafe mail servers?

nc01

Posted 2012-03-14T07:39:56.563

Reputation: 123

Secure from whom? – Thorbjørn Ravn Andersen – 2012-03-14T09:10:35.753

Answers

6

SMTP isn't insecure, it perfectly provides the level of security it is designed to - which is none - it cannot be considered insecure as there is no security to subvert. A protocol can be considered insecure where it is designed to offer a level of security and fails to do so - WEP wireless security is an example of an insecure protocol.

Semantics aside, SMTP provides no security and so should not be used as a transport for sensitive data. It may be that you use TLS to provide a secure channel to the SMTP server, however only the communication between the client and server is encrypted. The email itself is usually stored in plain text on the server.

That server must then deliver the email to the recipients server, and then the recipients server must deliver the email to the recipient. There may be several hops that the email passes through on its way, and at no point is there any guarantee that the server to server hops and server to recipient hops are encrypted. In fact, it is usually the case that they are not.

If you want to use SMTP as a secure medium for transmitting data, then a good solution would to using something like GPG/PGP which will enable you to encrypt the email (automatically) during composition and have it decrypted only at the destination, and only by the recipient (provided the encryption key is not compromised, just as with any form of encryption). GPG/PGP is well supported in many email clients.

Paul

Posted 2012-03-14T07:39:56.563

Reputation: 52 173

3

Basically SMTP just transfers flat files around. TLS encrypts the transfer tunnel between two SMTP-hosts, but does not encrypt the flat file as such.

If you want to be safe from others reading what you've written you need to encrypt your mail yourself. S/MIME is a standard supported by many email clients including Outlook and Thunderbird. You will need to get a certificate that you are you as certified by those who made the certificate - this may cost you in either money or time.

Thorbjørn Ravn Andersen

Posted 2012-03-14T07:39:56.563

Reputation: 291