<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error CONNECT ECONNREFUSED wrong internal IP]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am getting this error when trying to send an email test from the admin page.</p>
<p dir="auto">connect ECONNREFUSED 172.18.0.7:2525</p>
<p dir="auto">However that's no the instance internal IP.</p>
<p dir="auto">I'm using an EC2 AWS with Elastic IP. On the Network page the Public IP is detected correctly, however I don't know from where is getting this internal IP.</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://forum.cloudron.io/topic/6519/error-connect-econnrefused-wrong-internal-ip</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 06:55:38 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6519.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Feb 2022 20:02:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Fri, 18 Feb 2022 18:22:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rfg" aria-label="Profile: rfg">@<bdi>rfg</bdi></a> So, from what I see in the logs, there are multiple issues:</p>
<ul>
<li>There seems to be logs of bouncing happening. This is expected because EC2 does not allow mails to be sent out directly. You have to setup a relay - <a href="https://docs.cloudron.io/email/#relay-outbound-mails" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/email/#relay-outbound-mails</a></li>
<li>The mail container is in debug mode. Not sure if this was intentional? If you go to Services -&gt; Mail -&gt; Edit. Remove the debug mode. When debug mode is enabled, the mail container is not even running.</li>
<li>There is also some crash in haraka (our mail server).</li>
</ul>
<p dir="auto">Can you try this:</p>
<ul>
<li>
<p dir="auto">On the server, if you go to <code>/home/yellowtent/boxdata/mail/haraka-queue</code> . Do you see a lot files here? If so, these are the mails that failed to deliver and it's trying to deliver them forever (well, a very long time). You can just delete all the files inside that directory and then <code>docker restart mail</code></p>
</li>
<li>
<p dir="auto">Remove the debug mode that I mentioned above.</p>
</li>
<li>
<p dir="auto">Send test mail. Does that work now? I think EC2 allows a very small amount of mails to be sent directly but I am not 100% sure about this. If you paste the logs when it tries to send the test mail, that will help. You can do this by opening the logs window in another browser tab and then clicking send test mail in another window.</p>
</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/43654</link><guid isPermaLink="true">https://forum.cloudron.io/post/43654</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 18 Feb 2022 18:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Mon, 21 Feb 2022 17:18:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scooke" aria-label="Profile: scooke">@<bdi>scooke</bdi></a> Solution was deleting a buch of files from path:</p>
<pre><code>/home/yellowtent/boxdata/mail/haraka-queue
</code></pre>
<p dir="auto">that files were created past Jan-06.</p>
<p dir="auto">On that day we had an account hijacked that started sending out spam. I deactivated the account and it was working fine until past feb-16th, when email service started to crash.</p>
<p dir="auto">HTH.</p>
]]></description><link>https://forum.cloudron.io/post/43783</link><guid isPermaLink="true">https://forum.cloudron.io/post/43783</guid><dc:creator><![CDATA[rfg]]></dc:creator><pubDate>Mon, 21 Feb 2022 17:18:10 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Sun, 20 Feb 2022 07:27:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rfg" aria-label="Profile: rfg">@<bdi>rfg</bdi></a> What was IT? Which of the suggestions was the solution?</p>
]]></description><link>https://forum.cloudron.io/post/43707</link><guid isPermaLink="true">https://forum.cloudron.io/post/43707</guid><dc:creator><![CDATA[scooke]]></dc:creator><pubDate>Sun, 20 Feb 2022 07:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Sat, 19 Feb 2022 01:49:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> that was it!!!</p>
<p dir="auto">After deleting a bunch of files in that path everything is working fine now.</p>
<p dir="auto">Yes, I enabled the email debug mode.</p>
<p dir="auto">Many, many thanks, I really appreciate your support.</p>
]]></description><link>https://forum.cloudron.io/post/43668</link><guid isPermaLink="true">https://forum.cloudron.io/post/43668</guid><dc:creator><![CDATA[rfg]]></dc:creator><pubDate>Sat, 19 Feb 2022 01:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Fri, 18 Feb 2022 18:22:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rfg" aria-label="Profile: rfg">@<bdi>rfg</bdi></a> So, from what I see in the logs, there are multiple issues:</p>
<ul>
<li>There seems to be logs of bouncing happening. This is expected because EC2 does not allow mails to be sent out directly. You have to setup a relay - <a href="https://docs.cloudron.io/email/#relay-outbound-mails" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/email/#relay-outbound-mails</a></li>
<li>The mail container is in debug mode. Not sure if this was intentional? If you go to Services -&gt; Mail -&gt; Edit. Remove the debug mode. When debug mode is enabled, the mail container is not even running.</li>
<li>There is also some crash in haraka (our mail server).</li>
</ul>
<p dir="auto">Can you try this:</p>
<ul>
<li>
<p dir="auto">On the server, if you go to <code>/home/yellowtent/boxdata/mail/haraka-queue</code> . Do you see a lot files here? If so, these are the mails that failed to deliver and it's trying to deliver them forever (well, a very long time). You can just delete all the files inside that directory and then <code>docker restart mail</code></p>
</li>
<li>
<p dir="auto">Remove the debug mode that I mentioned above.</p>
</li>
<li>
<p dir="auto">Send test mail. Does that work now? I think EC2 allows a very small amount of mails to be sent directly but I am not 100% sure about this. If you paste the logs when it tries to send the test mail, that will help. You can do this by opening the logs window in another browser tab and then clicking send test mail in another window.</p>
</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/43654</link><guid isPermaLink="true">https://forum.cloudron.io/post/43654</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 18 Feb 2022 18:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Fri, 18 Feb 2022 15:13:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> ok I'll try that. Also I noticed this error</p>
<pre><code>554 Failure g_imap_max_limit exceeded 199990/199990 folder new
</code></pre>
<p dir="auto">It could be some big mailbox's folder?<br />
Is there a way to inspect/delete/move the bigger ones?</p>
]]></description><link>https://forum.cloudron.io/post/43643</link><guid isPermaLink="true">https://forum.cloudron.io/post/43643</guid><dc:creator><![CDATA[rfg]]></dc:creator><pubDate>Fri, 18 Feb 2022 15:13:38 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Fri, 18 Feb 2022 15:10:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rfg" aria-label="Profile: rfg">@<bdi>rfg</bdi></a> I don't think it will make a difference here, since all those services run in their own container, not directly on the host system. However if you are still on Ubuntu 16, then yes it is still time to upgrade first to 18 and then ideally to 20 already <a href="https://docs.cloudron.io/guides/upgrade-ubuntu-18/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/guides/upgrade-ubuntu-18/</a></p>
]]></description><link>https://forum.cloudron.io/post/43642</link><guid isPermaLink="true">https://forum.cloudron.io/post/43642</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 18 Feb 2022 15:10:33 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Fri, 18 Feb 2022 14:55:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> do you think upgrading to  Ubuntu 18.04 would help?</p>
]]></description><link>https://forum.cloudron.io/post/43640</link><guid isPermaLink="true">https://forum.cloudron.io/post/43640</guid><dc:creator><![CDATA[rfg]]></dc:creator><pubDate>Fri, 18 Feb 2022 14:55:40 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Fri, 18 Feb 2022 13:11:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rfg" aria-label="Profile: rfg">@<bdi>rfg</bdi></a> hm I can see the mail service crashing a few times and thus restarting, so maybe this happens too often and docker reassigns IPs. The error from the logs is:</p>
<pre><code>2022-02-17T12:33:00.000Z [INFO] [012E9F33-1E0E-4A1F-901A-C89B83E4FD2A.1794.1] [outbound] bouncing mail: 554 Failure g_imap_max_limit exceeded 199990/199990 folder new
2022-02-17T12:33:00.000Z [ERROR] [012E9F33-1E0E-4A1F-901A-C89B83E4FD2A.1794.1] [outbound] Unrecognized response from upstream server: \r
2022-02-17T12:33:00.000Z [INFO] [012E9F33-1E0E-4A1F-901A-C89B83E4FD2A.1794.1] [outbound] bouncing mail: Unrecognized response from upstream server: \r
2022-02-17T12:33:00.000Z [CRIT] [-] [core] Error: We are already running hooks! Fatal error!
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at Object.plugins.run_hooks (/app/code/haraka/plugins.js:431:15)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at HMailItem._bounce (/app/code/haraka/outbound/hmail.js:1285:17)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at HMailItem.bounce (/app/code/haraka/outbound/hmail.js:1274:14)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at pluggableStream.&lt;anonymous&gt; (/app/code/haraka/outbound/hmail.js:699:22)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at pluggableStream.emit (events.js:315:20)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at pluggableStream.on_socket_data (/app/code/haraka/line_socket.js:25:20)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at pluggableStream.emit (events.js:315:20)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at TLSSocket.&lt;anonymous&gt; (/app/code/haraka/tls_socket.js:59:18)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at TLSSocket.emit (events.js:315:20)
2022-02-17T12:33:00.000Z [CRIT] [-] [core]     at addChunk (internal/streams/readable.js:309:12)
2022-02-17T12:33:00.000Z [NOTICE] [-] [core] Shutting down
</code></pre>
<p dir="auto">We have to investigate if this is something which requires a fix in haraka. Until that the previous temporary solution would have to be used <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--confused" style="height:23px;width:auto;vertical-align:middle" title=":-/" alt="😕" /></p>
]]></description><link>https://forum.cloudron.io/post/43638</link><guid isPermaLink="true">https://forum.cloudron.io/post/43638</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 18 Feb 2022 13:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Thu, 17 Feb 2022 23:52:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> It worked for a short time. Now is reporting same error.</p>
<p dir="auto">What could be wrong?</p>
<p dir="auto">Log:<br />
<a href="https://www.dropbox.com/s/f5uelj2dsl5pa4m/mail.zip?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.dropbox.com/s/f5uelj2dsl5pa4m/mail.zip?dl=0</a></p>
]]></description><link>https://forum.cloudron.io/post/43610</link><guid isPermaLink="true">https://forum.cloudron.io/post/43610</guid><dc:creator><![CDATA[rfg]]></dc:creator><pubDate>Thu, 17 Feb 2022 23:52:29 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Thu, 17 Feb 2022 20:50:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> thanks, restarting the server fixed it. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/43608</link><guid isPermaLink="true">https://forum.cloudron.io/post/43608</guid><dc:creator><![CDATA[rfg]]></dc:creator><pubDate>Thu, 17 Feb 2022 20:50:51 GMT</pubDate></item><item><title><![CDATA[Reply to Error CONNECT ECONNREFUSED wrong internal IP on Thu, 17 Feb 2022 20:05:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rfg" aria-label="Profile: rfg">@<bdi>rfg</bdi></a> this IP is in the internal docker network (<code>docker inspect mail</code> will give you the above IP address). If you go to Services view, is the <code>mail</code> service running ? If not, can you try restarting it and check sending mail afterwards?</p>
]]></description><link>https://forum.cloudron.io/post/43605</link><guid isPermaLink="true">https://forum.cloudron.io/post/43605</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 17 Feb 2022 20:05:39 GMT</pubDate></item></channel></rss>