Greek regex

yes that is correct. the exact subject for the incoming email. or if there is a way i can do it directly from proxmox gui from Mail Filters -> What objects.
i found this [^a-zA-Z0-9-()/\s\p{IsGreekandCoptic}] but whatever greek subject i write its blocking it.

I am trying to find a way to get red of phishing emails
 
Last edited:
You can try create what object Match Field, but I am not sure will it work for Greek character.
But I do know it will not work on chinese character, that why I use spamassassin rules for it.

1640525250630.png
 
I have written this " /=\?UTF\-8\?B\?zrs=\?=/ " and i tested it in regex editors and its working for the text string " =?UTF-8?B?zrs=?= ".
But when i put it in proxmox Mail Filter -> What objects its not working,
Does it need another format?
The string =?UTF-8?B?zrs=?= is for a Greek letter to test. Its the Greek letter λ
 
Last edited:
Seems that its not reading at all the UTF8 subject. i tried also with some rules for Russian language but nothing, Not even the above configuration with regex is not working...
 
I want to block in subject specific Greek words, like λογαριασμός, κλειδωθεί.
λογαριασμός = account
κλειδωθεί=is locked.
 
i managed to discard the subject in /etc/postfix/header_check file and it does block it

Code:
root@mail:/etc/postfix# postmap -q "<Subject: =?UTF-8?B?zrs=?=>" regexp:/etc/postfix/header_checks
DISCARD

but when i send a message with the specific subject it does not block it
Code:
Dec 31 15:17:50 mail postfix/cleanup[2215463]: 606CEBC1482: info: header From: @gmail.com> from mail-ua1-f44.google.com[209.85.222.44]; from=<@gmail.com> to=........ proto=ESMTP helo=<>
Dec 31 15:17:50 mail postfix/cleanup[2215463]: 606CEBC1482: info: header Subject: =?UTF-8?B?zrs=?= from mail-ua1-f44.google.com[209.85.222.44]; from=<@gmail.com> to=<> proto=ESMTP helo=<>
Dec 31 15:17:50 mail postfix/cleanup[2215463]: 606CEBC1482: info: header To: ..... from mail-ua1-f44.google.com[209.85.222.44]; from=<@gmail.com> to=<> proto=ESMTP helo=<>
Dec 31 15:17:50 mail postfix/qmgr[2215447]: 606CEBC1482: from=<@gmail.com>, size=3314, nrcpt=1 (queue active)
Dec 31 15:17:53 mail postfix/qmgr[2215447]: 8E396BC17B3: from=<@gmail.com>, size=4624, nrcpt=1 (queue active)

Is there anything else i need to do?
I tried also in Mail Filter -> What objects and wrote a regex in </> Match Field but again nothing...
 

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!