Use the CLI commands in this topic to add rules to a blocked list.
Go to CLI configuration mode.
hostname > enable hostname # configure terminal
Specify the type of rule to add to a blocked list.
To add the block policy rule based on the email address of the sender:
hostname (config) # email-analysis blocked-list sender-email-address <email_address>
To add the block policy rule based on the domain of the sender:
hostname (config) # email-analysis blocked-list sender-domain <domain_name>
To add the block policy rule based on the IP address of the sender:
hostname (config) # email-analysis blocked-list sender-ip <IP_address>
To add the block policy rule based on the URL:
hostname (config) # email-analysis blocked-list url <URL>
To add the block policy rule based on the MD5 checksum attachment:
hostname (config) # email-analysis blocked-list md5sum <MD5_checksum_attachment>
Save your changes.
hostname (config) # write memory
Examples
This example adds the email address of the sender to a blocked list:
hostname (config) # email-analysis blocked-list sender-email-address admin1920@yahoo\.com
This example adds the domain of the sender to a blocked list:
hostname (config) # email-analysis blocked-list sender-domain nodomain\.net
This example adds the IP address of the sender to a blocked list:
hostname (config) # email-analysis blocked-list sender-ip 44\.33\.22\.11
This example adds the URL to a blocked list:
hostname (config) # email-analysis blocked-list url http://www.mai-tumai.com
This example adds the MD5 checksum attachment to a blocked list:
hostname (config) # email-analysis blocked-list md5sum 227bc609651f929e367c3b2b79e09d5b