Content Filter Rule using .dat file as a reference
-
Hello everyone
I was wondering if there is a way to use (for example) nogreylist.dat, with all its flexibility "IP addresses can be provided in CIDR notation. Sender and recipient email addresses can use ? and * wildcards" to filter FROM or any other header in CF rule.
Condition 'If HEADER contains words from file...' could help but there would have to be a way to ignore "from" and "to" and comment lines.Regards
-
The content filter will not directly use the nogreylist.dat file. Depending on what exactly you are are trying to do, you could probably write a powershell script to parse the file and use it, but the powershell script will be pretty involved.
-
I'm trying to avoid (relatively frequent) situations where messages from allowlisted senders end up in SpamTrap, because they are actually comming from MailChimp, HubSpot,... AND having to make separate allowlist when I already have nogreylist.dat.
More precisely, I would like to remove X-Spam-Flag header for all senders listed in nogreylist.dat, if they get flagged, no matter how are they defined in there (for example bounce_allowlisteddomain*@inxserver.com, allowlisteddomain*@smtp.securimate.com, *allowlisteddomain*@*.salesforce.com and so on).
-
Another option would be to write a script that copies the content of the nogreylist.dat file, makes the necessary modifications, and writes it out to the desired allow lists. If you do this, you'll have to tell MDaemon to reload the content of the DAT files using SEM files or by restarting MDaemon.
You can find more information on SEM files in the help file at https://help.mdaemon.com/MDaemon/en/semaphore_files.html.
-
Thanks Arron