<?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[Postfix Domain Suffix Blocking issue]]></title><description><![CDATA[<p dir="auto">Just got Postfix and Mailscanner up and working. They're mostly working awesome and blocking all kinds of annoying spam. However there are some emails coming from from non .com domains such as .ru and .eu that my boss would like me to block. I have been trying to block sender addresses with a specific domain suffix in the Postfix Access Lists tab with no luck. In showing what I've tried thus far I'll use the single suffix .ru as an example for the sake of simplicity.</p>
<p dir="auto">Initially, in the "Filters while receiving mail" sub section "Headers" I tried adding this line:</p>
<pre><code>/^From:.*.ru/ REJECT
</code></pre>
<p dir="auto">This caused all incoming mail to be blocked.<br />
After this failed I tried putting all of the following lines in the "Sender" subsection separately:</p>
<pre><code>.ru REJECT
</code></pre>
<pre><code>*@*.ru REJECT
</code></pre>
<pre><code>*.ru REJECT
</code></pre>
<p dir="auto">Each iteration failed showing no noticeable change in the processing of the included domain suffix.  I've tried using pfBlocker instead however it appears that the senders aren't actually using IP addresses from the country suffixes, just the domains. I would rather have the blocking handled directly in Postfix anyways for logging purposes. Any insights would be helpful and much appreciated.</p>
]]></description><link>https://forum.netgate.com/topic/72108/postfix-domain-suffix-blocking-issue</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 19:37:31 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/72108.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Aug 2014 19:14:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Postfix Domain Suffix Blocking issue on Thu, 04 Sep 2014 20:07:18 GMT]]></title><description><![CDATA[<p dir="auto">Good to hear it worked.</p>
<p dir="auto">For future reference <a href="http://regex101.com/" target="_blank" rel="noopener noreferrer nofollow ugc">this site</a> was very helpful.</p>
]]></description><link>https://forum.netgate.com/post/481828</link><guid isPermaLink="true">https://forum.netgate.com/post/481828</guid><dc:creator><![CDATA[biggsy]]></dc:creator><pubDate>Thu, 04 Sep 2014 20:07:18 GMT</pubDate></item><item><title><![CDATA[Reply to Postfix Domain Suffix Blocking issue on Thu, 04 Sep 2014 15:28:10 GMT]]></title><description><![CDATA[<p dir="auto">Ok. So I created an email address on some freemail site over in Europe. I'm pleased to say that the fix you gave me worked.</p>
<pre><code>/^From:.*\.ru/ REJECT
</code></pre>
<p dir="auto">It looks to be blocking the proper domain suffixes. Thanks for the help buddy!  :D</p>
]]></description><link>https://forum.netgate.com/post/481729</link><guid isPermaLink="true">https://forum.netgate.com/post/481729</guid><dc:creator><![CDATA[rusty91]]></dc:creator><pubDate>Thu, 04 Sep 2014 15:28:10 GMT</pubDate></item><item><title><![CDATA[Reply to Postfix Domain Suffix Blocking issue on Thu, 04 Sep 2014 15:02:08 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply. I was beginning to wonder if I'd ever hear anything about this. Wish I'd seen it sooner, guess I've got my mail notifications turned off.</p>
<p dir="auto">I'll give that a try. I've got the new config loaded. It doesn't seem to be blocking everything so thats a good sign at least. I'll guess I'll have to wait for an email from an address with one of the suffixes I'm blocking. At any rate, I'll let you know what I find out. I definitely appreciate the help.</p>
]]></description><link>https://forum.netgate.com/post/481723</link><guid isPermaLink="true">https://forum.netgate.com/post/481723</guid><dc:creator><![CDATA[rusty91]]></dc:creator><pubDate>Thu, 04 Sep 2014 15:02:08 GMT</pubDate></item><item><title><![CDATA[Reply to Postfix Domain Suffix Blocking issue on Sat, 30 Aug 2014 05:49:47 GMT]]></title><description><![CDATA[<p dir="auto">Maybe someone with more than my extremely limited knowledge of PCRE can answer but don't you need to escape the periods with backslashes?</p>
<pre><code>/^From:\.*\.ru/ REJECT
</code></pre>
<p dir="auto">or perhaps that should be</p>
<pre><code>/^From:.*\.ru/ REJECT
```- works for me</code></pre>
]]></description><link>https://forum.netgate.com/post/480598</link><guid isPermaLink="true">https://forum.netgate.com/post/480598</guid><dc:creator><![CDATA[biggsy]]></dc:creator><pubDate>Sat, 30 Aug 2014 05:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to Postfix Domain Suffix Blocking issue on Fri, 29 Aug 2014 14:48:48 GMT]]></title><description><![CDATA[<p dir="auto">BUMP</p>
]]></description><link>https://forum.netgate.com/post/480366</link><guid isPermaLink="true">https://forum.netgate.com/post/480366</guid><dc:creator><![CDATA[rusty91]]></dc:creator><pubDate>Fri, 29 Aug 2014 14:48:48 GMT</pubDate></item></channel></rss>