Fortinet black logo

CLI Reference

emailfilter bwl

Configure anti-spam black/white list.

  config emailfilter bwl
      Description: Configure anti-spam black/white list.
      edit <id>
          set name {string}
          set comment {var-string}
          config entries
              Description: Anti-spam black/white list entries.
              edit <id>
                  set status [enable|disable]
                  set type [ip|email]
                  set action [reject|spam|...]
                  set addr-type [ipv4|ipv6]
                  set ip4-subnet {ipv4-classnet}
                  set ip6-subnet {ipv6-network}
                  set pattern-type [wildcard|regexp]
                  set email-pattern {string}
              next
          end
      next
  end

config emailfilter bwl

Parameter Name Description Type Size
name Name of table. string Maximum length: 63
comment Optional comments. var-string Maximum length: 255

config entries

Parameter Name Description Type Size
status Enable/disable status.
enable: Enable status.
disable: Disable status.
option -
type Entry type.
ip: By IP address.
email: By email address.
option -
action Reject, mark as spam or good email.
reject: Reject the connection.
spam: Mark as spam email.
clear: Mark as good email.
option -
addr-type IP address type.
ipv4: IPv4 Address type.
ipv6: IPv6 Address type.
option -
ip4-subnet IPv4 network address/subnet mask bits. ipv4-classnet Not Specified
ip6-subnet IPv6 network address/subnet mask bits. ipv6-network Not Specified
pattern-type Wildcard pattern or regular expression.
wildcard: Wildcard pattern.
regexp: Perl regular expression.
option -
email-pattern Email address pattern. string Maximum length: 127

Configure anti-spam black/white list.

  config emailfilter bwl
      Description: Configure anti-spam black/white list.
      edit <id>
          set name {string}
          set comment {var-string}
          config entries
              Description: Anti-spam black/white list entries.
              edit <id>
                  set status [enable|disable]
                  set type [ip|email]
                  set action [reject|spam|...]
                  set addr-type [ipv4|ipv6]
                  set ip4-subnet {ipv4-classnet}
                  set ip6-subnet {ipv6-network}
                  set pattern-type [wildcard|regexp]
                  set email-pattern {string}
              next
          end
      next
  end

config emailfilter bwl

Parameter Name Description Type Size
name Name of table. string Maximum length: 63
comment Optional comments. var-string Maximum length: 255

config entries

Parameter Name Description Type Size
status Enable/disable status.
enable: Enable status.
disable: Disable status.
option -
type Entry type.
ip: By IP address.
email: By email address.
option -
action Reject, mark as spam or good email.
reject: Reject the connection.
spam: Mark as spam email.
clear: Mark as good email.
option -
addr-type IP address type.
ipv4: IPv4 Address type.
ipv6: IPv6 Address type.
option -
ip4-subnet IPv4 network address/subnet mask bits. ipv4-classnet Not Specified
ip6-subnet IPv6 network address/subnet mask bits. ipv6-network Not Specified
pattern-type Wildcard pattern or regular expression.
wildcard: Wildcard pattern.
regexp: Perl regular expression.
option -
email-pattern Email address pattern. string Maximum length: 127