Implementing Email Filtering: Strategies to Block Emails Containing Specific Links or Domains

hdstockimages

New Member
Sep 18, 2024
1
0
1
Pakistan
hdstockimages.com
I am attempting to configure email filtering to block all emails containing specific links or domains in the body, but the setup remains ineffective. Here are the steps I’ve undertaken thus far:

  1. Copied the configuration file:
    cp /etc/mail/spamassassin/custom.cf /etc/pmg/templates/custom.cf
  2. Edited the configuration file:
    nano /etc/pmg/templates/custom.cf
    I included the following:
    plaintext
    Copy code
    uri __G_DRV /\\/drive\\.google\\.com/i
    uri __ONE_DRV /\\/onedrive\\.live\\.com/i
    meta CLOUD_SHARE (__G_DRV || __ONE_DRV)
    describe CLOUD_SHARE Suspicious cloud storage links
    score CLOUD_SHARE 1.0
  3. Synchronized the configuration:
    pmgconfig sync --restart 1
Despite these adjustments, the filtering does not seem to function as intended. Any assistance in resolving this issue would be greatly appreciated.
 
I also didn't manage to get the custom.cf to work
But it seems that this forum isn't really active.