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:
- Copied the configuration file:
cp /etc/mail/spamassassin/custom.cf /etc/pmg/templates/custom.cf - 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 - Synchronized the configuration:
pmgconfig sync --restart 1