regex

  1. F

    Spamassassin rules, words with accent

    Hello, I have a general question about Spamassassin. If I want to block terms with accents ( é, è , à..), what is the best way to proceed? - Characters substitutions ( .+ ) or regex containing all possible accents ? (all possibles because spammer use variantes like é,è) The problem of ".+"...
  2. S

    Regex not working in PMG but work elsewhere

    Hi, I write a regex in PMG to negate certain email domain, it looks like this: (?!.*@negatethis\.com) I've try this regex on a few regex testing site (https://regex101.com and https://regexr.com) and it works just fine, but on PMG I got error. Is the PMG regex different from others? Kindly help.
  3. K

    [SOLVED] Writing Regex for Virtual Domains

    Hello, Is it possible for postfix to recognize regex inside a virtual alias file? I wrote some regex in /etc/postfix/virtual, but it does not seem to be read. Here is one example of my regex: This should catch any addresses such as contact+help-desk@example.com and send it to...
  4. L

    apply the rule by text

    I have seen many similar topics, but I have not received an answer. How to make a rule using text with? On the forum send to https://cwiki.apache.org/confluence/display/spamassassin/WritingRules . It turns out something like /\sometext\b/i = strict match, case insensitive. Did I make the rule...
  5. X

    Änderung Regex-Matching 7.2 zu 7.3

    Hallo zusammen, hat sich beim Update 7.3 etwas an den Regex bzw. deren Syntax geändert? Unsere Regexe für bestimmte Top-Level-Domains matchen seit dem Update nicht mehr. Beispiel: .*([0-9a-z|-]+\.)[0-9a-z|-]+\.(lol)+ matcht nicht mehr die Domain lockermaster.lol
  6. U

    [SOLVED] Is there a "Body" Match Field or Other Option for Regex Matching on Body Text?

    I would like to create a What Object that applies a regex to the body of the email. Is this possible via the standard PMG rules configuration interface? Or is this something that can only be done at the custom SpamAssassin rule level?
  7. I

    regex for exclude some vm from sync

    Good afternoon. I need to synchronize all VMs except (111909 and 400000). But when the regular expression ^((?!vm/400000).)*$ throws an error. How else can I do it? The task is next. There are 2 errors at different times. All machines, except for two, should be synchronized at one time, and...
  8. L

    Filtering with match fields: RegEx not working as expected

    Hi, I have configured amongst other things these two rules: Match field: Reply-To Value: ^K2 for mails with Reply-To: K2 <ykfirxx@forestions.nl> Match field: From Value: ^Medizin-Shop for mails with From: Medizin-Shop <iftiywr@alfasells.de> Test string is ok using the part after "Reply-To: "...
  9. L

    [SOLVED] Anchoring regex in What object

    According to https://forum.proxmox.com/threads/mail-object-test-button-not-working.78899/post-349390 regexes should implicitly be anchored, but it seems to me this is not the case (anymore), see screenshot. I would expect the test to fail. I know I can simply change my regex to start with ^...
  10. F

    PMG Block requests from and to

    Hi, I would like to block all email arriving to admin@example.com and spam@example2.com where sender is not example3.com or example4.com I've tried to do like the following under who-object but looks like doesn't work...
  11. O

    [SOLVED] Mail Proxy Whitelist Regex

    Hello, I'm trying to verify that my regex looks good, in theory, it should be fine, but I'm seeing this in the logs: Apr 13 18:18:11 smtp postfix/smtpd[1039]: warning: regexp map /etc/postfix/senderaccess, line 1: Invalid preceding regular expression Apr 13 18:18:11 smtp postfix/smtpd[1039]...
  12. V

    Exclude groups in sync

    Hello everyone. Is there a way to exclude certain groups (VMs/CTs) from a sync job? I'm syncing to an usb HD. And while my PBS instance keeps a lot of backups I only want some of them in the usb storage. Can this be expressed using Group Filter? Best Regards/Viele Grüße ....Volker
  13. F

    [SOLVED] RegEx Add Scores for TLD's doesn't contain specified domain's extensions

    Hello, I search to write "Who" rules for add scores when a domain doesn't finish with .com or .net (per example.) In documentation, I see regex patern for match expressions, eg for *.com : *@*\.com How i can combine two or more values in one expression please? And it's possible to inverse...
  14. Z

    Regex TLD Optimisation Help

    Hi All, After discovering how to apply Custom Rules, its got me down this RegEx rabbit hole. Is anyone able to help with the following that I have 'hacked' together - it is working, but not optimal IMO for both header and URI searches. (\.(fit|link)+?)(?:$|\/|\:)...
  15. G

    Blocking Mail with specific alias part in from

    Hello, i want to block all emails from "Dr. med. Frank" <info@happynonsense.com> where the part between < .... > can be anything. So i wrote a regex in the global blacklist looking like this: ^\"Dr\.\smed\.\sFrank\" As far as i could test with regex101.com the expression should be exact...

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!