< Home

reply-code

Function

The reply-code command configures a reply code.

The undo reply-code command deletes a reply code.

Format

reply-code { reply-code | any } [ description description ]

undo reply-code { all | any | reply-code }

Parameters

Parameter Description Value
reply-code

Specifies the reply code. When the reply code is configured, the FW identifies the mails matching the reply code as spam. If the returned message is not reply code, or the returned reply code is different from the reply code configured on the FW, the mail is permitted.

The value is in dotted decimal notation. You can configure a maximum of 16 reply codes in an RBL filtering profile.

any

If the reply code is not obtained, you can set it to any. This indicates that if the RBL server returns reply code (such as 127.0.0.1), the mail is identified as spam. If no message returned or the returned message is not reply code, the mail is permitted.

-

description

Specifies the description of a reply code.

The value is a case-sensitive string of 1 to 128 characters. Spaces are supported.

Views

RBL user-defined policy view

Default Level

2: Configuration level

Usage Guidelines

Only the USG6510E/6510E-POE/6530E does not support this command.

Anti-spam performs legitimacy check on the sender IP address. If the IP address is blacklisted, the FW considers the mail to be a junk mail. To check the legitimacy of the source IP address using the RBL blacklist, the FW sends a query request to the RBL server and determines the legitimacy of the IP address based on the reply code returned from the RBL server.

A reply code is typically an IP address for the identification purpose only. It can be a reserved IP address, such as 127.0.0.1 or 127.0.0.2.

To use the RBL blacklist, obtain a reply code from the RBL service provider and set the reply code on the FW. After receiving the RBL query result, the FW compares the reply code with the one specified on the device. If the two codes are the same, the FW considers the email from this IP address to be a junk mail.

Example

# Set the reply code of a user-defined policy to 127.0.0.10.

<Sysname> system-view
[Sysname] rbl-filter profile user-defined name abc
[Sysname-rbl-filter-profile-abc] reply-code 127.0.0.10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >