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

Fortimail - forward mail to another address based on keywords in subject or body

I need to create some kind of notifications that an email with specific words in subject or in body was sent to any email address.

 

I managed to achieve it with Archive account. I've created an Archive account which is forwarding email to another email address and I've created a policy that is archiving emails based on Subject and Body pattern. It works fine if the word in subject or body is equal to the word I've entered in pattern on policy.

 

For example I've created Policy with Policy Type Subject and in Pattern I've enter word: bomb

 

The policy works fine for example for a subject like this:

 

I've sent a bomb to you.

 

Email is properly forwarded to email address I've entered in Archive account.

 

However the policy is not working for subject like this:

 

I've sent few bombs to you.

 

I've tried entering *bomb* in pattern but it's not working. Is it possible to use WILDCARDS in this policy patterns or REGEXP expresions?

 

Or is there any other way to forward emails based on subject and body content to another email address?

Szymon Malinowski
Szymon Malinowski
1 Solution
AEK

In the Antispam action profile. You just create your own and set the desired action(s).

AEK

View solution in original post

AEK
4 REPLIES 4
AEK
SuperUser
SuperUser

Did you try with dictionary profile?

https://docs.fortinet.com/document/fortimail/7.6.1/administration-guide/84792/configuring-dictionary...

It allows regex and much more. Once it matches you can set the action you want, like add Cc or Bcc or other action.

AEK
AEK
CSKUM
New Contributor

I will try it. I think this should work, but where can I set this profile to for example add BCC to incomming message which will match this profile?

Szymon Malinowski
Szymon Malinowski
AEK

In the Antispam action profile. You just create your own and set the desired action(s).

AEK
AEK
CSKUM
New Contributor

It works like a charm. Thank you very much!!

Szymon Malinowski
Szymon Malinowski
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors