Zyxel USG 1900 [261/438] Regular expressions in black or white list entries

Zyxel USG 1900 [261/438] Regular expressions in black or white list entries
Chapter 37 Anti-Spam
ZyWALL / USG (ZLD) CLI Reference Guide
261
37.2.2.1 White and Black Lists Example
This example shows how to configure and enable a white list entries for e-mails with “testwhite” in
the subject, e-mails from whitelist@ourcompany.com, e-mails with the Date header set to 2007,
and e-mails from (or forwarded by) IP address 192.168.1.0 with subnet 255.255.255.0.
37.2.2.2 Regular Expressions in Black or White List Entries
The following applies for a black or white list entry based on an e-mail subject, e-mail address, or
e-mail header value.
Use a question mark (?) to let a single character vary. For example, use “a?c” (without the
quotation marks) to specify abc, acc and so on.
You can also use a wildcard (*). For example, if you configure *def.com, any e-mail address that
ends in def.com matches. So “mail.def.com” matches.
[no] anti-spam black-list [rule_number] e-
mail email {activate|deactivate}
Adds, edits, or removes a black list entry to check e-mail for a
specific source e-mail address or domain name. Also turns the
entry on or off.
[no] anti-spam black-list [rule_number] mail-
header mail-header mail-header-value
{activate|deactivate}
Adds, edits, or removes a black list entry to check e-mail for
specific header fields and values. Also turns the entry on or off.
[no] anti-spam black-list [rule_number]
subject subject {activate|deactivate}
Adds, edits, or removes a black list entry to check e-mail for
specific content in the subject line. Also turns the entry on or off.
anti-spam tag black-list [tag] Configures a message or label (up to 15 ASCII characters) to add
to the mail subject of e-mails that match an anti-spam black list
entry.
show anti-spam white-list [status] Displays the current anti-spam white list. Use status to show the
activation status only.
show anti-spam black-list [status] Displays the current anti-spam black list. Use status to show the
activation status only.
show anti-spam tag black-list Show the configured anti-spam black list tag.
[no] anti-spam xheader {white-list | black-
list} mail-header mail-header-value
Specify the name and value for the X-Header to add to e-mails that
match the ZyWALL / USG’s spam white list or black list.
show anti-spam xheader {white-list | black-
list}
Display the name and value for the X-Header to add to e-mails that
match the ZyWALL / USG’s spam white list or black list.
Table 145 Commands for Anti-spam White and Black Lists (continued)
COMMAND DESCRIPTION
Router(config)# anti-spam white-list subject testwhite activate
Router(config)# anti-spam white-list e-mail whitelist@ourcompany.com activate
Router(config)# anti-spam white-list mail-header Date 2007 activate
Router(config)# anti-spam white-list ip-address 192.168.1.0 255.255.255.0 activate
Router(config)# show anti-spam white-list
No. Type Status
Content
==========================================================================
1 subject yes
testwhite
2 e-mail yes
whitelist@ourcompany.com
3 mail-header yes
Date : 2007
4 ip-address yes
192.168.1.0 / 255.255.255.0

Содержание

Похожие устройства

Скачать