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.
 

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!