<?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[SpamAssassin Rule for some Catch-all users in my domain]]></title><description><![CDATA[<p dir="auto">Hi there,<br />
I have certain usernames in my catchall domain that are 100% spam. <s>I'm trying to filter them out using a custom SpamAssassin rule:</s></p>
<pre><code>DELETE MISSLEADING CODE
</code></pre>
<p dir="auto"><s>However, those emails are still getting through. Also, it seems the score isn't being adjusted when I check the headers. Any ideas?</s></p>
<p dir="auto">UPDATE:<br />
Wrong approach. No custom rule needed. Just a regular one rule is needed. Adding to addresses into the "Custom Spamassassin rule" will do it.</p>
<p dir="auto"><img src="/assets/uploads/files/1715581369422-bildschirmfoto-2024-05-13-um-08.21.33.png" alt="Bildschirmfoto 2024-05-13 um 08.21.33.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Nothing more - Spamassassin will add 10 points to the score.</p>
<p dir="auto">The initial code was an over engineered approach bei KI <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61b.png?v=11345d81604" class="not-responsive emoji emoji-android emoji--stuck_out_tongue" style="height:23px;width:auto;vertical-align:middle" title=":P" alt="😛" /></p>
]]></description><link>https://forum.cloudron.io/topic/11627/spamassassin-rule-for-some-catch-all-users-in-my-domain</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 01:03:16 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/11627.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Apr 2024 13:43:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Mon, 13 May 2024 06:26:45 GMT]]></title><description><![CDATA[<p dir="auto">I added the solution in my initial post. Turns out, that with the custom rule, one would need to consider the many different ways of how an email address is build up, as it takes the whole string and applies your rules. So that why it worked sometimes (like when it was written as "<a href="mailto:user@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">user@example.com</a>", but had no match with ""user example" <a href="mailto:user@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">user@example.com</a>").</p>
]]></description><link>https://forum.cloudron.io/post/88348</link><guid isPermaLink="true">https://forum.cloudron.io/post/88348</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Mon, 13 May 2024 06:26:45 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Mon, 20 May 2024 19:27:42 GMT]]></title><description><![CDATA[<p dir="auto">Thanks - that sounds interesting. Didn't know that - but this is a reason to rethink my approach.</p>
]]></description><link>https://forum.cloudron.io/post/88750</link><guid isPermaLink="true">https://forum.cloudron.io/post/88750</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Mon, 20 May 2024 19:27:42 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Mon, 20 May 2024 06:16:55 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I forgot in my last Reply: i’ve seen many companies checking for catch-all addresses, possibly flagging you as spam or of low reputation.<br />
<a href="https://forum.cloudron.io/post/74173">https://forum.cloudron.io/post/74173</a></p>
]]></description><link>https://forum.cloudron.io/post/88703</link><guid isPermaLink="true">https://forum.cloudron.io/post/88703</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Mon, 20 May 2024 06:16:55 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Sun, 19 May 2024 23:43:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> ... right, that is also a good approach. I just didn't want to setup the alias before I start using it. I deactivate reactively now. Seems to work pretty good right now.</p>
]]></description><link>https://forum.cloudron.io/post/88698</link><guid isPermaLink="true">https://forum.cloudron.io/post/88698</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Sun, 19 May 2024 23:43:10 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Mon, 13 May 2024 14:40:05 GMT]]></title><description><![CDATA[<p dir="auto">Depending on your use case it might be worthwhile checking if just a simple "wildcard alias" (instead of catch-all) is sufficient (as described <a href="https://docs.cloudron.io/email/#mail-aliases" target="_blank" rel="noopener noreferrer nofollow ugc">in the docs</a>).<br />
See an example here: <a href="https://forum.cloudron.io/post/74184">https://forum.cloudron.io/post/74184</a></p>
]]></description><link>https://forum.cloudron.io/post/88397</link><guid isPermaLink="true">https://forum.cloudron.io/post/88397</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Mon, 13 May 2024 14:40:05 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Mon, 13 May 2024 06:26:45 GMT]]></title><description><![CDATA[<p dir="auto">I added the solution in my initial post. Turns out, that with the custom rule, one would need to consider the many different ways of how an email address is build up, as it takes the whole string and applies your rules. So that why it worked sometimes (like when it was written as "<a href="mailto:user@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">user@example.com</a>", but had no match with ""user example" <a href="mailto:user@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">user@example.com</a>").</p>
]]></description><link>https://forum.cloudron.io/post/88348</link><guid isPermaLink="true">https://forum.cloudron.io/post/88348</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Mon, 13 May 2024 06:26:45 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Mon, 13 May 2024 06:27:40 GMT]]></title><description><![CDATA[<p dir="auto"><s>Having said that, a bit later it stopped working, <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> - could it be, that with maybe regularly rebuilding the spam rules, the custom ones get forgotten? I still have the rule set up, checked its syntax several times (also with help of KI ;)) ... but it's not adding that custom rule right now.</s></p>
<p dir="auto"><s>(I can still verify it was working yesterday afternoon, as the type of spam had the correct rule added to X-SPAM-STATUS - while later not anymore.)</s></p>
<p dir="auto">Solution in the initial post.</p>
]]></description><link>https://forum.cloudron.io/post/88039</link><guid isPermaLink="true">https://forum.cloudron.io/post/88039</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Mon, 13 May 2024 06:27:40 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Sun, 05 May 2024 11:13:30 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> looks like the rule is now for me working too. May have to do with a restart of the server / service? Also probably missed one user name or two initially <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=11345d81604" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://forum.cloudron.io/post/88029</link><guid isPermaLink="true">https://forum.cloudron.io/post/88029</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Sun, 05 May 2024 11:13:30 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Fri, 03 May 2024 12:18:17 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> said in <a href="/post/87907">Custom SpamAssassin Rule for some Catch-all users in my domain</a>:</p>
<blockquote>
<p dir="auto">would a discard rule work better for your set up?</p>
</blockquote>
<p dir="auto">Yes, that was what I have been using before. But that still makes the mta first accept the mail, my goal was to produce a bounce message for the sender in the hope that at some point they realise it does not exist anymore.</p>
<p dir="auto">If you want to claim to have never received something it is better to reject than to silently delete.</p>
]]></description><link>https://forum.cloudron.io/post/87913</link><guid isPermaLink="true">https://forum.cloudron.io/post/87913</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Fri, 03 May 2024 12:18:17 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Fri, 03 May 2024 11:50:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> said in <a href="/post/87898">Custom SpamAssassin Rule for some Catch-all users in my domain</a>:</p>
<blockquote>
<p dir="auto">The only downside is that for the bounce message the "real address" of the mailbox is shown and not the alias that was used for sending.</p>
</blockquote>
<p dir="auto">Right... mmm.. The mail comes from dovecot and dovecot has no idea about aliases. This information gets lost in the email delivery flow <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=11345d81604" 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/87908</link><guid isPermaLink="true">https://forum.cloudron.io/post/87908</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 03 May 2024 11:50:10 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Fri, 03 May 2024 11:46:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> would a discard rule work better for your set up? In sieve, you can just drop that email altogether and sender also gets no bounce. The screenshot below is from roundcube.</p>
<p dir="auto"><img src="/assets/uploads/files/1714736658101-315256ab-b34d-40fc-8b78-0fff8fc597ec-image-resized.png" alt="315256ab-b34d-40fc-8b78-0fff8fc597ec-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">You can also "Discard with message" but this exposes the translated email address though.</p>
]]></description><link>https://forum.cloudron.io/post/87907</link><guid isPermaLink="true">https://forum.cloudron.io/post/87907</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 03 May 2024 11:46:13 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Fri, 03 May 2024 11:32:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dsp76" aria-label="Profile: dsp76">@<bdi>dsp76</bdi></a> So, for me, your rule works just fine. I created a catch all. And then added rule below for sales@ and support@ . We send the To address as-is to SpamAssassin and in fact it's that way in the end email as well.</p>
<p dir="auto"><img src="/assets/uploads/files/1714735585465-cac806e0-d1fb-4155-a958-514327e188a5-image-resized.png" alt="image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">It ends up in junk as expected:</p>
<p dir="auto"><img src="/assets/uploads/files/1714735928590-04cd0416-69ed-48e3-bdf1-6f549f9c3e1c-image-resized.png" alt="image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/87906</link><guid isPermaLink="true">https://forum.cloudron.io/post/87906</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 03 May 2024 11:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Fri, 03 May 2024 11:31:29 GMT]]></title><description><![CDATA[<p dir="auto">I also like using catch-all addresses to direct the incoming flow of emails and have some addresses that get a good amount of spam (because they were in a data leak). The workaround I found for myself is the following:</p>
<ul>
<li>create a mailbox <code>dev-null@my-domain.com</code></li>
<li>through curl I have set a mailbox quota of 1kb (through the ui the smallest size is 500mb)</li>
<li>when I want one address to no longer be received I am assigning this as an alias to my dev-null mailbox</li>
</ul>
<p dir="auto">Now whenever something is sent to one of these aliases the sender gets a "permanent delivery error". The only downside is that for the bounce message the "real address" of the mailbox is shown and not the alias that was used for sending.</p>
]]></description><link>https://forum.cloudron.io/post/87898</link><guid isPermaLink="true">https://forum.cloudron.io/post/87898</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Fri, 03 May 2024 11:31:29 GMT</pubDate></item><item><title><![CDATA[Reply to SpamAssassin Rule for some Catch-all users in my domain on Fri, 03 May 2024 11:26:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dsp76" aria-label="Profile: dsp76">@<bdi>dsp76</bdi></a> Just going to debug this <s>but I think I know the problem. catch all addresses (like aliases) are not real mailboxes and thus are not processed by Spam Assassin. The address is translated before being sent for SA processing.</s> see comment below</p>
]]></description><link>https://forum.cloudron.io/post/87896</link><guid isPermaLink="true">https://forum.cloudron.io/post/87896</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 03 May 2024 11:26:18 GMT</pubDate></item></channel></rss>