<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Roundcube filters, check_sender_access and header_checks do not work]]></title>
		<link>https://forum.iredmail.org/topic21162-roundcube-filters-checksenderaccess-and-headerchecks-do-not-work.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21162.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Roundcube filters, check_sender_access and header_checks do not work.]]></description>
		<lastBuildDate>Thu, 18 Jun 2026 16:07:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Roundcube filters, check_sender_access and header_checks do not work]]></title>
			<link>https://forum.iredmail.org/post92047.html#p92047</link>
			<description><![CDATA[<div class="quotebox"><cite>chutkin wrote:</cite><blockquote><p>Content of header_checks:<br />/^From:mymail@gmail.com/ REJECT</p></blockquote></div><p>From: header usually contains display name and email address, for example:<br /></p><div class="codebox"><pre><code>From: John Smith &lt;user@domain.com&gt;
From: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JPQu9GD0YjQutC10LLQuNGH?= &lt;user@domain.com&gt;</code></pre></div><p>Your rule won&#039;t match them at all.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 18 Jun 2026 16:07:08 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92047.html#p92047</guid>
		</item>
		<item>
			<title><![CDATA[Re: Roundcube filters, check_sender_access and header_checks do not work]]></title>
			<link>https://forum.iredmail.org/post92046.html#p92046</link>
			<description><![CDATA[<p>I suggest reading Postfix manual page to understand its syntax and usage:<br /><a href="https://www.postfix.org/header_checks.5.html">https://www.postfix.org/header_checks.5.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 18 Jun 2026 16:05:09 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92046.html#p92046</guid>
		</item>
		<item>
			<title><![CDATA[Re: Roundcube filters, check_sender_access and header_checks do not work]]></title>
			<link>https://forum.iredmail.org/post92045.html#p92045</link>
			<description><![CDATA[<p>Hi Zhang,</p><p>Here is the part of the main.cf</p><p>None of these work:</p><p>header_checks = pcre:/etc/postfix/header_checks</p><p>header_checks = regexp:/etc/postfix/header_checks</p><p>check_sender_access pcre:/etc/postfix/sender_access.pcre</p><p>I use:<br />postmap /etc/postfix/header_checks</p><p>postmap /etc/postfix/sender_access.pcre</p><p>Then restart postfix with &quot;postfix reload&quot;</p><p>Content of sender_access.pcre:</p><p>/\.gmail.com$/ REJECT</p><p>Content of header_checks:</p><p>/^From:mymail@gmail.com/ REJECT</p><p>I took this config from my very old iRedMail installation, where it was working.</p><p>Thanks,<br />Ivo</p>]]></description>
			<author><![CDATA[null@example.com (chutkin)]]></author>
			<pubDate>Thu, 18 Jun 2026 11:14:02 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92045.html#p92045</guid>
		</item>
		<item>
			<title><![CDATA[Re: Roundcube filters, check_sender_access and header_checks do not work]]></title>
			<link>https://forum.iredmail.org/post92044.html#p92044</link>
			<description><![CDATA[<p>What&#039;s your rule used in check_sender_access and header_checks?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 18 Jun 2026 09:15:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92044.html#p92044</guid>
		</item>
		<item>
			<title><![CDATA[Roundcube filters, check_sender_access and header_checks do not work]]></title>
			<link>https://forum.iredmail.org/post92041.html#p92041</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.81<br />- Deployed with iRedMail Easy or the downloadable installer? Downloadable<br />- Linux/BSD distribution name and version: OpenBSD 7.8<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL <br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? NO<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>Hello all,</p><p>First, i set filter in Roundcube. The filter looks OK, I also have it in managesieve.sieve.</p><p>What I want to achieve is to block some senders (testing with my gmail account) with no success.</p><p>Here is&nbsp; managesieve.sieve content for this mail:</p><p>require [&quot;reject&quot;];<br /># rule:[delete]<br />if allof (header :is &quot;from&quot; &quot;maymail@gmail.com&quot;)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; reject &quot;YOUR MAIL IS SPAM&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; discard;<br />&nbsp; &nbsp; &nbsp; &nbsp; stop;<br />}</p><p>Then I try to achieve the same goal via check_sender_access and header_checks without success.</p><p>I will appreciate your help to resolve these issues.</p><p>Thanks,<br />Ivo</p>]]></description>
			<author><![CDATA[null@example.com (chutkin)]]></author>
			<pubDate>Thu, 18 Jun 2026 08:42:37 +0000</pubDate>
			<guid>https://forum.iredmail.org/post92041.html#p92041</guid>
		</item>
	</channel>
</rss>
