Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
dts_drp
New Contributor

Safelist subject based on regex

We are a higher ed institution. We have many emails that have class numbers in the subject (i.e. EN101). Is there way to safelist or allow these messages to bypass spam filters? I have tried the safelist word with regex, but it doesn't work. I know I can manually add each class, but it changes every semester and would require too much manual editing. Thanks in advance

9 REPLIES 9
abelio
SuperUser
SuperUser

hi,

Incoming or outgoing email?

regards




/ Abel

regards / Abel
Dirty_Wizard_FTNT

The Safelist word list only takes wildcards (*,?) and not regex.

ede_pfau

Simple wildcards leaves you at '????? ' for "word with 5 characters, followed by a blank" which is not very specific. One option would be to code the subjects (EN, MA, PH,...) and 'wildcard' the course numbers, like in 'EN??? ', 'PH??? ' etc. Admitted, this is not very specific, not even close to a regex ('[A_Z]{2}\d{3} ').


Ede


"Kernel panic: Aiee, killing interrupt handler!"
Ede"Kernel panic: Aiee, killing interrupt handler!"
dts_drp

This is incoming mail. Thanks Ede. I will try it and let you know how successful it is.

 

drp

abelio

Hi Don,

 

dts.drp wrote:

This is incoming mail.

Another approach:

if  (and only if) you can verify that authenticated SMTP clients are reliable and not source of spam, you can check the option "Bypass scan on SMTP authentication" available in each antispam profile under 'scan options' section.

 

 

 

regards




/ Abel

regards / Abel
dts_drp
New Contributor

Thanks Abel, but I don't think this is viable. I'll do some research, but the mail can come from any client. The bulk of these type of messages come from our cloud LMS system. I could whitelist their IP's, but I really don't like doing that, since hundreds of other schools use the same system.

dts_drp

Another update. Here is the version I am on: v5.4,build692,170724 (5.4.0 GA) ... I started playing around with DLP last week. I had that thought of creating DLP rules to catch the subject, since DLP matches regex. The DLP rule is only applied to the inbound traffic and the action is "Deliver to original host" ... This seems to be working nicely. I haven't noticed any class correspondence quarantined since. I can share the DLP rule and policy if anyone is interested. drp

Dirty_Wizard_FTNT

This shouldn't really be bypassing AntiSpam as DLP is checked after.

dts_drp

We have Bayesian enabled and they were getting caught by this db. Since I have implemented the DLP method, zero have been flagged by Bayesian. I am ok with the other Antispam checks.

 

Labels
Top Kudoed Authors