Check subject rule with hebew letter

koby

Renowned Member
Jun 21, 2012
137
4
83
Natanya , Israel
Hello Guys ,
I was wondering , why I can not test subject rule with hebrew/Arabic char but only English char.
Why this field is not utf8 anable ?
Can any one help

Best regards ,
Koby Peleg Hen
 
This is line 87 on MatchField.pm. Could it be related to DB charset setup?

$sth->execute($self->ogroup, $self->otype, $new_value);

1601890207729.png

Code:
        my $sth = $ruledb->{dbh}->prepare(
            "INSERT INTO Object (Objectgroup_ID, ObjectType, Value) " .
            "VALUES (?, ?, ?);");

        $sth->execute($self->ogroup, $self->otype, $new_value);

        $self->{id} = PMG::Utils::lastid($ruledb->{dbh}, 'object_id_seq');
 
Use spamassassin custom rule. Copy below rules to your /etc/mail/spamassassin/custom.cf.
Change the score according to your needs and and run service pmg-smtp-filter restart to restart the spamassassin service.
Use mail filter spam level what object to quarantine/block the emails.

Code:
header          UTF8_SUBJ       Subject:raw =~ /=?utf-8?.?/i
describe        UTF8_SUBJ       UTF-8 Subjects
score           UTF8_SUBJ       1.0

Code:
Subject: Beauty Horror Story: Mask Acne =?UTF-8?Q?=F0=9F=98=B1?=
X-Mailer: class SMTPMail
From: "Althea" <no-reply@e.althea.kr>
MIME-Version: 1.0
List-Id: 761270420 <Althea>
X-EMarSys-Identify: 761270420_8134728_23303
X-EMarSys-Environment: suite11
X-Report-Abuse: Please report abuse here: abuse-report@emarsys.com
List-Unsubscribe: <mailto:list-unsubscribe+761270420_8134728_23303_85V4HFifFN@emarsys.net>, <https://list-unsubscribe.eservice.emarsys.net/api/unsubscribe/761270420_8134728_23303_85V4HFifFN>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
Content-Type: multipart/alternative;
 boundary="--=_---NextPart--=_-YTwLOV3VhZ"
Message-ID: <0.0.D.395.1D6A840FA530258.0@suitepmta022057.emsmtp.us>
Date: Thu, 22 Oct 2020 09:00:08 +0200
X-SPAM-LEVEL: Spam detection results:  0
    AWL                    -1.871 Adjusted score from AWL reputation of From: address
    BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
    DKIMWL_WL_MED          -0.001 DKIMwl.org - Medium trust sender
    DKIM_SIGNED               0.1 Message has a DKIM or DK signature, not necessarily valid
    DKIM_VALID               -0.1 Message has at least one valid DKIM or DK signature
    DKIM_VALID_AU            -0.1 Message has a valid DKIM or DK signature from author's domain
    HTML_FONT_LOW_CONTRAST  0.001 HTML font color similar or identical to background
    HTML_MESSAGE            0.001 HTML included in message
    LIST_UNSUB                  1 Mailinglist
    RCVD_IN_MSPIKE_H2      -0.001 Average reputation (+2)
    SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
    SPF_PASS               -0.001 SPF: sender matches SPF record
    TOO_POLITE              1.973 No hi/hai/hello greeting
    UTF8_SUBJ                   1 UTF-8 Subjects
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!