<?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[Haraka config for controlling outbound SMTP interface]]></title><description><![CDATA[<p dir="auto">Since <a href="https://forum.cloudron.io/topic/10871/smtp-using-wrong-ip-address-on-interface-with-multiple-addresses/">https://forum.cloudron.io/topic/10871/smtp-using-wrong-ip-address-on-interface-with-multiple-addresses/</a> was never solved, and we currently resort to disabling IPv6 on the server or worse, moving entire Cloudrons to non IPv6 hosts just to fix email deliverability issues with Microsh0ft and Gmail domains, I went looking how to keep IPv6 enabled and have outbound SMTP work over IPv4.</p>
<p dir="auto">Starting with asking a lot of questions around how to specify the outbound SMTP interface, which led nowhere.</p>
<p dir="auto">Then I thought to ask why is a IPv6 SMTP server at Google/MS responding and rejecting mail. It must be getting contacted first somehow. Cloudron doing something we don't want or expect.</p>
<p dir="auto">Then looking at <a href="https://haraka.github.io/core/Outbound" target="_blank" rel="noopener noreferrer nofollow ugc">Haraka and how it handles outbound SMTP</a>, I found this:</p>
<pre><code>- `ipv6_enabled`

When this has a "true" value inside (usually a `1`), it defaults to an 'AAAA' lookup first for each MX record, and uses those hosts to send email via.
</code></pre>
<p dir="auto">This explains why it's intermittent delivery issues, since the MX lookup varies at different email providers and only fails at IPv6 nodes.</p>
<p dir="auto">All this happens in the <code>outbound.ini</code> file.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> can we have a default to disable this or a toggle in the Mail UI?</p>
<p dir="auto">This would solve all the current problems since it defaults to attempt sending to IPv6 servers FIRST which is where all the delivery problems stem from.</p>
<p dir="auto">And we can keep IPv6 enabled on the server even with no RDNS configured.</p>
]]></description><link>https://forum.cloudron.io/topic/13941/haraka-config-for-controlling-outbound-smtp-interface</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 20:07:23 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13941.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jun 2025 17:58:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Haraka config for controlling outbound SMTP interface on Sat, 21 Jun 2025 01:22:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> You're right. Not sure if there is a Haraka setting per IPv4 interface.</p>
<p dir="auto">My servers seem to have over 200 IPv6 veth's. Uh is that normal?</p>
]]></description><link>https://forum.cloudron.io/post/109114</link><guid isPermaLink="true">https://forum.cloudron.io/post/109114</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Sat, 21 Jun 2025 01:22:45 GMT</pubDate></item><item><title><![CDATA[Reply to Haraka config for controlling outbound SMTP interface on Fri, 20 Jun 2025 14:55:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> hmm, in that case it may be slightly different. The issue I was having was because the IP address resolving to <a href="http://mail.d19.ca" target="_blank" rel="noopener noreferrer nofollow ugc">mail.d19.ca</a> wasn’t the same IP address, and my server has two IPv4 addresses and an IPv6 address. If mail went through one of the IPv4 addresses it worked perfectly, but email to Gmail addresses on any of the other two addresses would fail since the IP didn’t match that on <a href="http://mail.d19.ca" target="_blank" rel="noopener noreferrer nofollow ugc">mail.d19.ca</a>.</p>
<p dir="auto">This fix probably fixes it for anyone who only has one IPv4 and one IPv6 address I suspect, but may not fix it for anyone with an additional floating IPv4 address that is meant to be the main IP.</p>
]]></description><link>https://forum.cloudron.io/post/109107</link><guid isPermaLink="true">https://forum.cloudron.io/post/109107</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Fri, 20 Jun 2025 14:55:02 GMT</pubDate></item><item><title><![CDATA[Reply to Haraka config for controlling outbound SMTP interface on Wed, 18 Jun 2025 20:12:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> AFAIK this is the same issue, except it's not solved by choosing the interface, but by changing the unexpected default behavior for using IPv6 in the Haraka config.</p>
<p dir="auto">You should be able to test it by making the single config change in the mail container and restarting Haraka.</p>
]]></description><link>https://forum.cloudron.io/post/108967</link><guid isPermaLink="true">https://forum.cloudron.io/post/108967</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 18 Jun 2025 20:12:39 GMT</pubDate></item><item><title><![CDATA[Reply to Haraka config for controlling outbound SMTP interface on Wed, 18 Jun 2025 05:10:54 GMT]]></title><description><![CDATA[<p dir="auto">I wonder if this would be helpful for this other issue too which I reported back in March but no real progress beyond my workaround yet: <a href="https://forum.cloudron.io/topic/13458/use-floating-ip-address-only-for-outbound-cloudron-docker-container-communication?_=1750223095929">https://forum.cloudron.io/topic/13458/use-floating-ip-address-only-for-outbound-cloudron-docker-container-communication?_=1750223095929</a></p>
<p dir="auto">Ideally, I want to pick the specific interface / IP address being used for outbound communication. <s>It was mostly because I wanted to prevent the IPv6 address from being used, and apparently disabling IPv6 in Cloudron doesn't achieve that result as I guess it's just for inbound traffic / DNS records, not for outbound traffic.</s> It was the result of needing to avoid blocking in Gmail for traffic when the outbound SMTP IP used isn't the same one in the DNS record / or the one that's set in the Cloudron IPv4 address settings.</p>
]]></description><link>https://forum.cloudron.io/post/108902</link><guid isPermaLink="true">https://forum.cloudron.io/post/108902</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Wed, 18 Jun 2025 05:10:54 GMT</pubDate></item><item><title><![CDATA[Reply to Haraka config for controlling outbound SMTP interface on Tue, 17 Jun 2025 14:21:26 GMT]]></title><description><![CDATA[<p dir="auto">This for the report. I will have to take a look for a future release .</p>
]]></description><link>https://forum.cloudron.io/post/108824</link><guid isPermaLink="true">https://forum.cloudron.io/post/108824</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 17 Jun 2025 14:21:26 GMT</pubDate></item></channel></rss>