Match RegEx Base64


Active Member
Jun 21, 2012
Natanya , Israel
Hello Guys ,
My base client language is Hebrew in my case ,

The word "testing" in plain English = "dGVzdGluZw==" in base64.
and the word "testing testing" in plain English = "dGVzdGluZyB0ZXN0aW5n" in bade64.

As you can see , there is no correlation between one word and two word ,
it seems that is language dependency which mean that may need to
be something called "language script" like here :

All the mail client (including gmail) does convert the subject into base64 (default utf-8 as standard).
if the above request will be given solution , than any string in any language (utf-8 supported)
can be used for matching regex rules , and not just English as it now.

Can any one please advice.

Best regards ,
Koby Peleg Hen

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018


Active Member
Jun 21, 2012
Natanya , Israel
The match field what object does decode the header with MIME::Words::decode_mimewords - see

so you would need to create your regex for the decoded string (the one with the unicode code-points and Hebrew letters).

sadly this is currently a bit difficult due to :

but we're planning to address that soon

I hope this helps!
Thank you Stoiko ,
It would be grate to have it working since the Hebrew phishing Hackers are never sleeping...


The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!