Hi

Thanks a lot for confirming that it should work.

Can you please tell me how I would get the created filter?

And while we're at it — is there a way to create more filters at once, without having to use the UI? As mentioned, I'm migrating from Gmail and would "need" to create a bunch of filters. Not having to resort to the UI would be useful.

Thanks,
Alexander 

Am 25.03.2025 17:01 schrieb qhivert <users@sogo.nu>:

Hello,

 

I’ve just tested your first filter with all the conditions and this work well.

 

To be sure, can you get the sieve script generated by sogo? And see if what’s in there match your filter.

Quentin

 

From: users-requ...@sogo.nu <users-requ...@sogo.nu> On Behalf Of "Alexander Skwar"
Sent: mardi 25 mars 2025 16:27
To: users@sogo.nu
Subject: [SOGo] [SPAM] Regexp filter does not match

 

Hello

Currently trying to move from Gmail to maicow + SOGo. One of the issues I encounter is the filtering in mailcow/SOGo.

I've got the following filter:

However, it does not work. But why? Are there logs somewhere?

It should match - I'm looking for “From” “matches” "…freezetag\.com

$ grep -i freezetag\.com ~/tmp/message-headers-freezetag.txt
    dkim=pass header.d=freezetag.com header.s=k3 header.b=PLkik2a8;
    dmarc=pass (policy=none) header.from=freezetag.com
    dkim=pass header.d=freezetag.com header.s=k3 header.b=PLkik2a8;
    dmarc=pass (policy=none) header.from=freezetag.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freezetag.com; s=k3;
    t=1742915017; x=1743185017; i=st...@freezetag.com;
From: Munzee Gardening Club <st...@freezetag.com>
Reply-To: =?utf-8?Q?Munzee=20Gardening=20Club?= <st...@freezetag.com>
    FORGED_SENDER(0.30)[st...@freezetag.com,bounce-mc.us10_38846137.13528275-b55424b...@mail86.atl111.rsgsv.net];
    R_DKIM_ALLOW(0.00)[freezetag.com:s=k3];
    DMARC_POLICY_ALLOW(0.00)[freezetag.com,none];
    FROM_NEQ_ENVFROM(0.00)[st...@freezetag.com,bounce-mc.us10_38846137.13528275-b55424b...@mail86.atl111.rsgsv.net];
    HAS_REPLYTO(0.00)[st...@freezetag.com];
    DKIM_TRACE(0.00)[freezetag.com:+];

 

I'll attach the complete headers.

Any ideas about why it does not work? How can I test this?

I would have thought it might be, because I'm doing “.*@freezetag.com$”, ie. freezetag.com must be at the end of the line. But in the “From:” line, there's the “>” after “freezetag.com”.

BUT… I've got a different filter with this rule:

 

And this DOES work. It matched an email with this from line in the headers:

From: Alexander Skwar <a...@name1.me>

 There was also a “>” at the end (which there will almost always be; at least if there's a “real name” and if it's not using the outdated syntax of “localp...@domain.tld (real name)”).

Help would be immensely appreciated for getting filters with regexps to work.

Thanks a lot,

 

Alexander

-- 
Complete contact details at https://a.skwar.xyz/
 

Reply via email to