{"id":239,"date":"2016-10-18T21:41:49","date_gmt":"2016-10-18T20:41:49","guid":{"rendered":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/?p=239"},"modified":"2016-10-18T21:41:49","modified_gmt":"2016-10-18T20:41:49","slug":"configuring-exim4-to-use-bt-internet-as-a-smarthost-with-smtps","status":"publish","type":"post","link":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/configuring-exim4-to-use-bt-internet-as-a-smarthost-with-smtps\/","title":{"rendered":"Configuring Exim4 to use BT Internet as a Smarthost with SMTPS"},"content":{"rendered":"<p>BT Internet <a href=\"http:\/\/bt.custhelp.com\/app\/answers\/detail\/a_id\/44917\/c\/7339\">uses<\/a> the defunct SMTPS protocol for outgoing SMTP connections from a customer. \u00a0To set up Exim4 to be able to send mail via this interface requires a dirty hack. \u00a0The main part of the configuration is as described in <a href=\"http:\/\/askubuntu.com\/questions\/167043\/how-do-i-configure-exim4-to-send-mail-through-a-password-protected-ssl-smtp-mail\">this Ask Ubuntu article<\/a> in the accepted answer (based on Tony Scelfo&#8217;s article). \u00a0However, that does not take account of BT&#8217;s peculiar configuration. \u00a0An additional step is required: \u00a0before running <code>update-exim4.conf<\/code>, edit <code>\/etc\/exim4\/exim4.conf.template<\/code>. Find the section starting with<\/p>\n<pre>\r\nremote_smtp_smarthost:\r\n<\/pre>\n<p>Insert a new line following the line <code>driver = smtp<\/code> like this:<\/p>\n<pre>\r\n  protocol = smtps\r\n<\/pre>\n<p>Then continue with the steps in the article above.  Use <code>mail.btinternet.com::465<\/code> for the address of the smarthost when running dpkg-reconfigure.<\/p>\n<p>This is a hack because it subverts the SMTP smarthost function to use SMTPS.  However as you can only have one smarthost at a time, that doesn&#8217;t matter.<\/p>\n<p>By the way, Raspbian on the Raspberry Pi uses Exim4 and this was how I got email working from it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BT Internet uses the defunct SMTPS protocol for outgoing SMTP connections from a customer. \u00a0To set up Exim4 to be able to send mail via this interface requires a dirty hack. \u00a0The main part of the configuration is as described in this Ask Ubuntu article in the accepted answer (based on Tony Scelfo&#8217;s article). \u00a0However, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":2,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/posts\/239\/revisions\/241"}],"wp:attachment":[{"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lemongrass.org.uk\/lemongrass\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}