{"id":1956,"date":"2016-02-17T15:28:05","date_gmt":"2016-02-17T15:28:05","guid":{"rendered":"http:\/\/blogs-new.it.ox.ac.uk\/networks\/?p=1956"},"modified":"2016-02-19T09:29:02","modified_gmt":"2016-02-19T09:29:02","slug":"the-universitys-mail-relays-and-encryption","status":"publish","type":"post","link":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/2016\/02\/17\/the-universitys-mail-relays-and-encryption\/","title":{"rendered":"The University&#8217;s mail relays and encryption"},"content":{"rendered":"<p>By the time this post has been published, the Oxmail relays will most likely be using opportunistic encryption to encrypt outgoing emails, in response to actions by cloud mail providers. However, we would like to make it clear that we have always known that we had encryption disabled and that our reasons for enabling it have nothing to do with addressing privacy concerns. This post should hopefully explain all this along with some relevant history.<\/p>\n<h2>What is SMTP?<\/h2>\n<p><a title=\"Wikipedia article\" href=\"https:\/\/en.wikipedia.org\/wiki\/Simple_Mail_Transfer_Protocol\">Simple Mail Transport Protocol<\/a> is the de-facto standard for email transfer between servers. SMTP is an old standard and at its inception the internet was a happier place with less need for security and thus no security was built into the protocol. Mail delivery is via a hop by hop mechanism, which is to say that if I fire off an email to <span class=\"mailto\">fred.bloggs@example.org<\/span>, my mail client does not necessarily contact Fred&#8217;s mailstore directly, rather it contacts a server it thinks is better suited to deliver the mail to Fred. It is a very similar concept to <a class=\"https\" title=\"6 degrees of separation\" href=\"https:\/\/en.wikipedia.org\/wiki\/Six_degrees_of_separation\">6 degrees of separation<\/a>. The Oxmail relays are one hop in the chain from the sender, you at your laptop (other devices are available), and the destination server which houses the mailbox of Fred Bloggs.<\/p>\n<div id=\"attachment_1957\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2016\/02\/sending-emails.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1957\" class=\"size-large wp-image-1957\" alt=\"This is just an example of the many servers that need to participate to get an email from your laptop to a recipient.\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2016\/02\/sending-emails-1024x226.png\" width=\"640\" height=\"141\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2016\/02\/sending-emails-1024x226.png 1024w, https:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2016\/02\/sending-emails-300x66.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/networks\/files\/2016\/02\/sending-emails.png 1474w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-1957\" class=\"wp-caption-text\">This is just an example of the many servers that need to participate to get an email from your laptop to a recipient. The number of servers is variable and you do not necessarily know the number when sending an email.<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2>What is TLS?<\/h2>\n<p>TLS, or Transport Layer Security to give its full name, is a mechanism by which each hop is encrypted so that eavesdroppers in the middle of the connection cannot listen in on the transfer. To be clear, routers and most firewalls are not considered endpoints in this context, it&#8217;s just the mail servers that are set up to route mail to particular destinations, and as such these routers and firewalls are exactly the devices for which this mechanism is designed to protect against.<\/p>\n<h2>Why did the Oxmails not encrypt mail?<\/h2>\n<p>I should start by saying that there was nothing inherently stopping the Oxmail relays from initiating an encrypted communication when sending mail. The software that we run is capable of encrypting communications, and in fact we require it for incoming external connections to smtp.ox.ac.uk, so as to protect password credentials from being harvested. However, we have reservations with the concept of TLS encryption for a few reasons:<\/p>\n<ul>\n<li>Since SMTP is a hop-by-hop protocol with an email traversing multiple servers A through to G, just because the communication between F and G is secure you know absolutely nothing about how secure your email is. For G to know that the email received is actually from A and is unaltered, every point needs to be encrypted, and yet there is no way of telling G that this is the case. All G knows is that the last hop was secure.<\/li>\n<li>As almost a repetition of the last sentence, TLS does not necessarily make communications any safer and pretending otherwise is bordering deceitful. Similarly, if the mail received by G is set to be forwarded to another mailbox H, and this is done via an encrypted channel, is that now secure?<\/li>\n<li>The battle may already be lost on this since its uptake is so small, but there is a technology that was designed to solve this: GPG. Using GPG, you encrypt the email using your laptop and only Fred can decrypt it, unlike TLS where each hop has access to every email&#8217;s contents. The truly security conscious should be using GPG to encrypt mail as only the recipient and sender can see the message. The necessary data to decrypt the message is stored locally on your computer.<\/li>\n<\/ul>\n<p>To summarize these points, we did not encrypt outgoing mail as we considered it a pointless exercise that would only give people the illusion of security without actually doing anything.<\/p>\n<h2>Why are we now enabling opportunistic encryption on the Oxmail relays?<\/h2>\n<p>Following the actions of cloud service providers, where emails received unencrypted were flagged to the person reading the mail, we were presented with two options:<\/p>\n<ul>\n<li>Do nothing.<\/li>\n<li>Implement TLS.<\/li>\n<\/ul>\n<p>The former may have been our stance, but recently we have been receiving complaints that sent emails&#8217; privacy has been violated when sent to certain mail providers. Rather than argue the point that email as an entire concept is insecure (after all there is nothing stopping cloud mail providers from reading your emails for account profiling and targeted advertising), the change is relatively minor our end and so we took the conscious decision to enable outgoing TLS when available, so as to remove the flag on mail sent to these cloud providers.<\/p>\n<h2>Are there better solutions available?<\/h2>\n<p>Yes! Even better, some of these solutions can be used today without any change on any infrastructure (except perhaps your mail client). I mentioned GPG above which is completely compatible with the existing infrastructure used around the world. You could even post your emails onto a public share using a service such as Dropbox with a link to it on Twitter and <i>still<\/i> only the recipient can read it. I must admit that usage of GPG is minimal despite its relative maturity and perhaps going into the reasons is not beneficial to the current discussion. There is also an encryption mechanism called S\/MIME which has the same overall effect as GPG, even though its method is quite different. S\/MIME reportedly is better supported by more mail clients, but requires purchasing a digital certificate and is thus potentially more expensive than GPG [update: this is incorrect. They can be obtained free of charge. See comments].<\/p>\n<p>Added to GPG and S\/MIME there are <a title=\"Wikipedia article\" href=\"https:\/\/en.wikipedia.org\/wiki\/Sender_Policy_Framework\">SPF<\/a> and <a href=\"https:\/\/en.wikipedia.org\/wiki\/DomainKeys_Identified_Mail\">DKIM<\/a> which can help verify servers&#8217; authenticities (they do not encrypt). These technologies themselves are not well suited to our (the University&#8217;s) devolved environment as outlined in an <a class=\"http\" title=\"xcellent blog post\" href=\"http:\/\/blogs-new.it.ox.ac.uk\/networks\/2013\/03\/08\/i-just-received-a-spam-email-from-my-own-address\/\">excellent blog post<\/a> by my predecessor Guy Edwards.<\/p>\n<h2>Conclusion<\/h2>\n<p>I hope this helps explain our thoughts on TLS encryption, and that our recent change to use encrypted communications is not a reaction to a mistake we discovered we were making. If there is anything you wish to add, please do add a comment, or contact the IT Services helpdesk for further information.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By the time this post has been published, the Oxmail relays will most likely be using opportunistic encryption to encrypt outgoing emails, in response to actions by cloud mail providers. However, we would like to make it clear that we &hellip; <a href=\"https:\/\/blogs-new.it.ox.ac.uk\/networks\/2016\/02\/17\/the-universitys-mail-relays-and-encryption\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":136,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,124],"tags":[37753,37751,37752],"class_list":["post-1956","post","type-post","status-publish","format-standard","hentry","category-mail-relay","category-message-submission","tag-encryption","tag-oxmail","tag-smtp"],"_links":{"self":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts\/1956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/users\/136"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/comments?post=1956"}],"version-history":[{"count":25,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts\/1956\/revisions"}],"predecessor-version":[{"id":1985,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/posts\/1956\/revisions\/1985"}],"wp:attachment":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/media?parent=1956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/categories?post=1956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/networks\/wp-json\/wp\/v2\/tags?post=1956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}