{"id":500,"date":"2011-07-27T23:40:20","date_gmt":"2011-07-28T05:40:20","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=500"},"modified":"2026-03-24T23:29:37","modified_gmt":"2026-03-25T05:29:37","slug":"fix-connection-refused-111-cant-open-smtp-stream-error","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/","title":{"rendered":"How to Fix \u201cConnection Refused (111) \u2013 Can\u2019t Open SMTP Stream\u201d Error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>SMTP (Simple Mail Transfer Protocol)<\/strong> is the standard protocol used to send emails across the internet. It acts as a bridge between email clients and mail servers, ensuring that outgoing messages are transmitted to the recipient\u2019s mail server efficiently. SMTP typically operates on ports <strong>25, 465, and 587<\/strong>, and is responsible only for sending emails. For receiving emails, protocols like <strong>IMAP<\/strong> and <strong>POP3<\/strong> are used.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A properly configured SMTP service is essential for smooth email delivery. This includes correct port settings, authentication, and server permissions. If any of these are misconfigured, it can lead to errors such as failed email delivery, connection timeouts, or authentication failures.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Understanding the Error<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you encounter the error:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u201cMessage not sent. Server replied: Connection refused (111) \u2013 Can\u2019t open SMTP stream\u201d<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">it usually indicates that your mail server is refusing SMTP connections. This means that the application attempting to send the email cannot establish a connection with the mail server on the required port.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This issue is most commonly caused by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Disabled or missing SMTP ports in the mail server configuration<\/li>\n\n\n\n<li>Firewall restrictions blocking SMTP ports<\/li>\n\n\n\n<li>Exim service not running or misconfigured<\/li>\n\n\n\n<li>Incorrect mail server settings in the application<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Fix the Issue in Exim<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In most cases, this error occurs due to incorrect SMTP port configuration in the Exim mail server. Follow the steps below to resolve it:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Open the Exim Configuration File<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Access your server via SSH and open the Exim configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/exim.conf<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Locate the SMTP Ports Configuration<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Search for the following line in the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#daemon_smtp_ports = 25 : 587<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Enable the Required Ports<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remove the <code>#<\/code> to uncomment the line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>daemon_smtp_ports = 25 : 587<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. Add the Entry (If Missing)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the above line is not present in the file, add it manually to ensure Exim listens on the required ports.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. Restart the Exim Service<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After saving the changes, restart Exim to apply the configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service exim restart<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Additional Checks<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the issue still persists after updating the configuration, consider the following checks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Firewall Settings:<\/strong> Ensure ports 25 and 587 are open and not blocked<\/li>\n\n\n\n<li><strong>Service Status:<\/strong> Verify Exim is running using: service exim status<\/li>\n\n\n\n<li><strong>Port Listening:<\/strong> Confirm Exim is listening on the correct ports: netstat -tulnp | grep exim<\/li>\n\n\n\n<li><strong>Application Configuration:<\/strong> Double-check SMTP settings in your application (host, port, authentication)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This error typically occurs when SMTP ports are not properly enabled or accessible in Exim. By configuring ports <strong>25<\/strong> and <strong>587<\/strong> correctly and ensuring there are no external restrictions, you can quickly restore email sending functionality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Taking a few extra steps to verify firewall rules, service status, and application settings can help prevent similar issues in the future. If the problem continues, it\u2019s best to <a href=\"https:\/\/www.supportpro.com\/requestquote.php\" title=\"\">consult our server administrator<\/a> or a professional support team for deeper troubleshooting.<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><\/a><\/span><\/span><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size wp-block-paragraph\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img fetchpriority=\"high\" decoding=\"async\" width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>SMTP (Simple Mail Transfer Protocol) is the standard protocol used to send emails across the internet. It acts as a bridge between email clients and mail servers, ensuring that outgoing&hellip;<\/p>\n","protected":false},"author":4,"featured_media":16524,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-articles"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"SupportPRO Admin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Server Management Tips | SupportPRO Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Fix SMTP Connection Refused (111) Error in Exim Server\" \/>\n\t\t<meta property=\"og:description\" content=\"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1130\" \/>\n\t\t<meta property=\"og:image:height\" content=\"577\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2011-07-28T05:40:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-03-25T05:29:37+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Fix SMTP Connection Refused (111) Error in Exim Server\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#article\",\"name\":\"Fix SMTP Connection Refused (111) Error in Exim Server\",\"headline\":\"How to Fix \\u201cConnection Refused (111) \\u2013 Can\\u2019t Open SMTP Stream\\u201d Error\",\"author\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/08\\\/Msgnotsent-e1774413117483.jpg\",\"width\":1130,\"height\":577,\"caption\":\"Message Not Sent\"},\"datePublished\":\"2011-07-27T23:40:20-06:00\",\"dateModified\":\"2026-03-24T23:29:37-06:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#webpage\"},\"articleSection\":\"Technical Articles\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.supportpro.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/technical-articles\\\/#listItem\",\"name\":\"Technical Articles\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/technical-articles\\\/#listItem\",\"position\":2,\"name\":\"Technical Articles\",\"item\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/technical-articles\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#listItem\",\"name\":\"How to Fix \\u201cConnection Refused (111) \\u2013 Can\\u2019t Open SMTP Stream\\u201d Error\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#listItem\",\"position\":3,\"name\":\"How to Fix \\u201cConnection Refused (111) \\u2013 Can\\u2019t Open SMTP Stream\\u201d Error\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/category\\\/technical-articles\\\/#listItem\",\"name\":\"Technical Articles\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\",\"name\":\"SupportPRO\",\"description\":\"SupportPRO Blog\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/\",\"telephone\":\"+18476076123\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/\",\"name\":\"SupportPRO Admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13d2f63048d631e03a432375448be5eb7861069df4fef10f0cb1c7b36554c225?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SupportPRO Admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#webpage\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/\",\"name\":\"Fix SMTP Connection Refused (111) Error in Exim Server\",\"description\":\"Learn how to fix SMTP error \\u201cConnection refused (111) \\u2013 Can\\u2019t open SMTP stream\\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/author\\\/managementadmin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/08\\\/Msgnotsent-e1774413117483.jpg\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#mainImage\",\"width\":1130,\"height\":577,\"caption\":\"Message Not Sent\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/fix-connection-refused-111-cant-open-smtp-stream-error\\\/#mainImage\"},\"datePublished\":\"2011-07-27T23:40:20-06:00\",\"dateModified\":\"2026-03-24T23:29:37-06:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/\",\"name\":\"Server Management Tips\",\"description\":\"SupportPRO Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.supportpro.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Fix SMTP Connection Refused (111) Error in Exim Server<\/title>\n\n","aioseo_head_json":{"title":"Fix SMTP Connection Refused (111) Error in Exim Server","description":"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.","canonical_url":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#article","name":"Fix SMTP Connection Refused (111) Error in Exim Server","headline":"How to Fix \u201cConnection Refused (111) \u2013 Can\u2019t Open SMTP Stream\u201d Error","author":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"publisher":{"@id":"https:\/\/www.supportpro.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg","width":1130,"height":577,"caption":"Message Not Sent"},"datePublished":"2011-07-27T23:40:20-06:00","dateModified":"2026-03-24T23:29:37-06:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#webpage"},"isPartOf":{"@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#webpage"},"articleSection":"Technical Articles"},{"@type":"BreadcrumbList","@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.supportpro.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/technical-articles\/#listItem","name":"Technical Articles"}},{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/technical-articles\/#listItem","position":2,"name":"Technical Articles","item":"https:\/\/www.supportpro.com\/blog\/category\/technical-articles\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#listItem","name":"How to Fix \u201cConnection Refused (111) \u2013 Can\u2019t Open SMTP Stream\u201d Error"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#listItem","position":3,"name":"How to Fix \u201cConnection Refused (111) \u2013 Can\u2019t Open SMTP Stream\u201d Error","previousItem":{"@type":"ListItem","@id":"https:\/\/www.supportpro.com\/blog\/category\/technical-articles\/#listItem","name":"Technical Articles"}}]},{"@type":"Organization","@id":"https:\/\/www.supportpro.com\/blog\/#organization","name":"SupportPRO","description":"SupportPRO Blog","url":"https:\/\/www.supportpro.com\/blog\/","telephone":"+18476076123"},{"@type":"Person","@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author","url":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/","name":"SupportPRO Admin","image":{"@type":"ImageObject","@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/13d2f63048d631e03a432375448be5eb7861069df4fef10f0cb1c7b36554c225?s=96&d=mm&r=g","width":96,"height":96,"caption":"SupportPRO Admin"}},{"@type":"WebPage","@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#webpage","url":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/","name":"Fix SMTP Connection Refused (111) Error in Exim Server","description":"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.supportpro.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#breadcrumblist"},"author":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"creator":{"@id":"https:\/\/www.supportpro.com\/blog\/author\/managementadmin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg","@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#mainImage","width":1130,"height":577,"caption":"Message Not Sent"},"primaryImageOfPage":{"@id":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/#mainImage"},"datePublished":"2011-07-27T23:40:20-06:00","dateModified":"2026-03-24T23:29:37-06:00"},{"@type":"WebSite","@id":"https:\/\/www.supportpro.com\/blog\/#website","url":"https:\/\/www.supportpro.com\/blog\/","name":"Server Management Tips","description":"SupportPRO Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.supportpro.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Server Management Tips | SupportPRO Blog","og:type":"article","og:title":"Fix SMTP Connection Refused (111) Error in Exim Server","og:description":"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.","og:url":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/","og:image":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg","og:image:secure_url":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg","og:image:width":1130,"og:image:height":577,"article:published_time":"2011-07-28T05:40:20+00:00","article:modified_time":"2026-03-25T05:29:37+00:00","twitter:card":"summary","twitter:title":"Fix SMTP Connection Refused (111) Error in Exim Server","twitter:description":"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.","twitter:image":"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/08\/Msgnotsent-e1774413117483.jpg"},"aioseo_meta_data":{"post_id":"500","title":"Fix SMTP Connection Refused (111) Error in Exim Server","description":"Learn how to fix SMTP error \u201cConnection refused (111) \u2013 Can\u2019t open SMTP stream\u201d in Exim by enabling ports 25 and 587 with a simple configuration update.","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2026-03-25 05:41:19","breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"ai":{"faqs":[],"keyPoints":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2021-12-10 16:14:49","updated":"2026-06-30 23:27:14","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.supportpro.com\/blog\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.supportpro.com\/blog\/category\/technical-articles\/\" title=\"Technical Articles\">Technical Articles<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to Fix \u201cConnection Refused (111) \u2013 Can\u2019t Open SMTP Stream\u201d Error\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.supportpro.com\/blog"},{"label":"Technical Articles","link":"https:\/\/www.supportpro.com\/blog\/category\/technical-articles\/"},{"label":"How to Fix \u201cConnection Refused (111) \u2013 Can\u2019t Open SMTP Stream\u201d Error","link":"https:\/\/www.supportpro.com\/blog\/fix-connection-refused-111-cant-open-smtp-stream-error\/"}],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":5,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":16528,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/500\/revisions\/16528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/16524"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}