<?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[SRS failures when using chained Sieve redirects (double-forward)]]></title><description><![CDATA[<p dir="auto">Today I ran into a problem when replacing Cloudron’s mailing list feature with Sieve filters. My setup was:</p>
<ul>
<li>Mail arrives at <code>info@{hostedDomainB}</code> (mailbox).</li>
<li>Sieve filter on <code>info@{hostedDomainB}</code> redirects to <code>alan@{hostedDomainB}</code> and <code>malcolm@{hostedDomainB}</code>.</li>
<li>Both <code>alan@{hostedDomainB}</code> and <code>malcolm@{hostedDomainB}</code> mailboxes also have Sieve rules that redirect to their external <code>{externalDomain}</code> addresses.</li>
</ul>
<hr />
<p dir="auto"><strong>Expected:</strong><br />
Messages should reach <code>{externalDomain}</code>.</p>
<p dir="auto"><strong>Observed:</strong><br />
The second redirect (Alan/Malcolm → <code>{externalDomain}</code>) generates a malformed SRS MAIL FROM such as: <code>SRS0=17e0=36={hostedDomainA}=dustin@{hostedDomainB}</code></p>
<p dir="auto">This string is invalid because it lacks the final <code>@&lt;srs-domain&gt;</code> (according to ChatGPT). The result is a permanent SMTP error: <code>550 5.1.0 … invalid address</code></p>
<pre><code>"550 5.1.0 &lt;SRS0=17e0=36={hostedDomainA}=dustin@{hostedDomainB} invalid address '&lt;SRS0=17e0=36={hostedDomainA}=dustin@{hostedDomainB}'"
</code></pre>
<hr />
<p dir="auto">If I recreate <code>info@{hostedDomainB}</code> as a <strong>mailing list</strong> (what it used to be) instead of a mailbox with Sieve, forwarding works fine. So this seems to be a bug somehow in the way the filtering is handled when redirecting mail across multiple hops on Cloudron, where it seems to choke on the second hop.</p>
<p dir="auto">It looks like Haraka’s SRS plugin fails when a message is <strong>redirected twice</strong> via Sieve filters.</p>
<p dir="auto">Are we aware of any known issues on this? I couldn't find this in the forum posts earlier in a quick search but maybe I missed it. Ultimately if we have three mailboxes created, and one has a sieve filter to the other two mailboxes and those two mailboxes in-turn have a sieve filter each to send to the respective external addresses not hosted on Cloudron, then this is when the issue is seen.</p>
<hr />
<p dir="auto">PS: (I was running low on time to send this into the forum here so used ChatGPT to format this quick summary as I was using it to help me troubleshoot earlier, so if it reads a little odd that's why, lol. Have to run but will be checking on this later today).</p>
]]></description><link>https://forum.cloudron.io/topic/14312/srs-failures-when-using-chained-sieve-redirects-double-forward</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 23:06:25 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14312.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Sep 2025 00:34:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SRS failures when using chained Sieve redirects (double-forward) on Sun, 28 Sep 2025 21:34:18 GMT]]></title><description><![CDATA[<p dir="auto">There are a bunch posts on the forum reporting errors with forwards / redirect, and specifically when in come to double forward and SRS rewrite (hence very similar to this one). Would it be helpful to list them?</p>
]]></description><link>https://forum.cloudron.io/post/113083</link><guid isPermaLink="true">https://forum.cloudron.io/post/113083</guid><dc:creator><![CDATA[avatar1024]]></dc:creator><pubDate>Sun, 28 Sep 2025 21:34:18 GMT</pubDate></item><item><title><![CDATA[Reply to SRS failures when using chained Sieve redirects (double-forward) on Fri, 26 Sep 2025 07:56:41 GMT]]></title><description><![CDATA[<p dir="auto">it does look like the SRS handler is failing on the second redirect hop, producing a malformed “MAIL FROM” string and triggering a permanent SMTP error. The fact that using a mailing list instead of chained Sieve redirects works around it suggests the bug lies in how the filter chain is constructing or rewriting the SRS envelope.</p>
]]></description><link>https://forum.cloudron.io/post/113037</link><guid isPermaLink="true">https://forum.cloudron.io/post/113037</guid><dc:creator><![CDATA[mattewwade06]]></dc:creator><pubDate>Fri, 26 Sep 2025 07:56:41 GMT</pubDate></item><item><title><![CDATA[Reply to SRS failures when using chained Sieve redirects (double-forward) on Thu, 25 Sep 2025 12:05:43 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for reporting. Just leaving a note to myself to investigate this after 9.0 is out .</p>
]]></description><link>https://forum.cloudron.io/post/112981</link><guid isPermaLink="true">https://forum.cloudron.io/post/112981</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 25 Sep 2025 12:05:43 GMT</pubDate></item></channel></rss>