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

Fortimail - Edit bulk Banned Words list via Cli

Good day all,
Does anyone know how to add like over 200 banned words to an existing antispam profile for a local protected domain and not the Fortimail system domain. I tried cli which works, but it only creates a NEW System antispam profile with the bulk banned words but not into my existing AS profile with same name. How can I edit an existing AS profile for a protected domain via CLI
 
2 Solutions
AEK
SuperUser
SuperUser

Hi NeoRant

Did you try it this way?

config profile antispam
edit your-existing-antispam-profile
config bannedwords
edit ban-word1
set subject enable
set body enable
edit ban-word2
set subject enable
set body enable
edit ban-word3
set subject enable
set body enable

 

AEK

View solution in original post

AEK
NeoRant
Contributor

 

I modified the script, check below, this worked for me.

config domain edit [protected domain] config profile antispam edit [protected domain AS profile] config banned words <... add what you need ...>

View solution in original post

4 REPLIES 4
AEK
SuperUser
SuperUser

Hi NeoRant

Did you try it this way?

config profile antispam
edit your-existing-antispam-profile
config bannedwords
edit ban-word1
set subject enable
set body enable
edit ban-word2
set subject enable
set body enable
edit ban-word3
set subject enable
set body enable

 

AEK
AEK
NeoRant

Hi AEK, i wanted edit the AS profile under the protected domain, not system. When i run the  script in cli, it only creates a new AS Profile( with name specified in script) under system instead.

AEK

May be I missed something but a profile definition is not supposed to be under system or under protected domain. However it will be used by a policy, right?

config profile antispam
edit your-existing-antispam-profile

So what you mean exactly by under system or under protected domain?

AEK
AEK
NeoRant
Contributor

 

I modified the script, check below, this worked for me.

config domain edit [protected domain] config profile antispam edit [protected domain AS profile] config banned words <... add what you need ...>
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors