W
W
weranda2018-07-10 23:42:16
Email
weranda, 2018-07-10 23:42:16

How to filter letters encoded in HZ what?

Greetings
The site has mail, it receives the same type of letters, encoded HZ as. I opened the letter many times, highlighted the text for filtering on it, but despite this, the letters bypassed the spam filter. I wrote to the hosting provider, they say, this way and that, letters are not filtered. They said:

An error occurred in the operation of the filters, because in the source email, the text is encoded in base64, while Exim's filtering works on the source email and cannot work on the encoded text.
If you send a letter in which the text will not be encoded, the filters are successfully applied or if you add an already encoded word or phrase that is found in the letter to the filter, the filter also works.

I opened the source of the letter, and there is such a hat:
spoiler
=C7=E4=F0=E0=E2=F1=F2=E2=F3=E9=F2=E5, =EF=F0=E5=E4=EB=E0=E3=E0=E5=EC =C2=E0=
=F8=E5=EC=F3 =E2=ED=E8=EC=E0=ED=E8=FE =ED=E0=E8=E1=EE=EB=E5=E5 =EF=EE=EB=ED=
=F3=FE =E8 =EA=E0=F7=E5=F1=F2=E2=E5=ED=ED=F3=FE =EA=EE=EB=EB=E5=EA=F6=E8=FE=
=E7=ED=E0=EC=E5=ED=E8=F2=EE=E3=EE =E4=E5=F2=F1=EA=EE=E3=EE =FE=EC=EE=F0=E8=
=F1=F2=E8=F7=E5=F1=EA=EE=E3=EE =EA=E8=ED=EE=E6=F3=F0=ED=E0=EB=E0 =C5=F0=E0=
=EB=E0=F8, =E2 =EA=EE=F2=EE=F0=F3=FE =E2=F5=EE=E4=FF=F2 =E2=F1=E5 =E2=FB=EF=
=F3=F1=EA=E8 =EF=F0=EE=F8=EB=FB=F5 =EB=E5=F2, =E0 =F2=E0=EA =E6=E5 =F1=EE=
=E2=F0=E5=EC=E5=ED=ED=FB=E5. =C5=F0=E0=EB=E0=F8 =96 =FD=F2=EE =E8=F1=F2=EE=
=F0=E8=E8 =EA=EE=F2=EE=F0=FB=E5 =F1=EB=F3=F7=E0=FE=F2=F1=FF =F1 =F0=E5=E1=
=FF=F2=E0=EC=E8 =E2 =F8=EA=EE=EB=E5 =E8 =E4=EE=EC=E0, =E2=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=F5=ED=EE=EB=EE=E3=E8=FF=EC =F3=
=E4=E0=EB=EE=F1=FC =F1=EE=F5=F0=E0=ED=E8=F2=FC =EE=F0=E8=E3=E8=ED=E0=EB=FC=
=ED=FB=E9 =E7=E2=F3=EA =E8 =E2=E8=E4=E5=EE (=EF=F0=E8=E2=FB=F7=ED=FB=E5 =E3=
=EE=EB=EE=F1=E0 =E3=E5=F0=EE=E5=E2 =E8 =E2=E8=E4=E5=EE) =EF=EE=FD=F2=EE=EC=
=F3 =EA=EE=EB=EB=E5=EA=F6=E8=FF =EE=F2=EB=E8=F7=ED=EE =F1=EC=EE=F2=F0=E8=F2=
=F1=FF.

I tried to determine decrypt, I got a service for enumerating encodings and somehow managed to decrypt it, here is a screen:
spoiler
5b4518415e009726247690.png

But what to do with all this now, I do not know. How can you quickly filter out such emails? It is clear that the average person will not send valid emails (spam), spammers do. You can add some piece of text from the porridge of this code to the spam filter, but there is one thing - it is possible that some mail services from which letters will be sent can write something in a similar encoding in the source code of even a normal letter, and then such a letter will go to spam.
I ask for your advice on what can be done in this situation. The option of connecting domain mail to any mail service (mail, yandex, google, etc.), unfortunately, is impossible for a number of reasons and, by the way, mail on a regular hosting with CPanel, so there are special tricks with installing and configuring additional software - the thing is not easy and there is a possibility that the hoster will refuse to install / configure specific software.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moskus, 2018-07-11
@Moskus

This is not "HZ what", but the quoted-printable encoding. https://en.wikipedia.org/wiki/Quoted-printable
Further, options are possible (because, as is traditional on the Toaster, you provided only a piece of information that you considered important, and not the code of the entire source code of the letter, for example):
- either your mailer does not understand this encoding (unlikely), but the filtering system does,
- either the letters are formed with errors (for example, they contain the wrong encoding in the header, because the mailer will not decode them,
- or you are doing something wrong (which - hard to guess).
However, this is not very important, because it is impossible to filter messages only by encoding (useful letters can also be sent to QP), it is also unlikely that they can be filtered by text, because spam can be different.

V
Vladimir Dubrovin, 2018-07-11
@z3apa3a

Translate the text you want to filter into windows-1251 encoding and encode it in quoted-printable - your filter will work on the received string. The easiest way is to simply copy the corresponding already encoded string from the source of the letter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question