Remove SMTP List Entry (RMVSMTPLE)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Remove SMTP List Element (RMVSMTPLE) command is used to remove elements from SMTP configuration lists. These lists may be enabled or disabled using the Change SMTP Attributes (CHGSMTPA) command or from the SMTP Properties panel in iSeries Navigator. The changes take effect the next time the SMTP server is started either by the Start TCP/IP (STRTCP) command or by the Start TCP/IP Server (STRTCPSVR) command.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
TYPE List type *ACCEPT, *REJECT, *NEAR, *DOMAIN, *SVRBIND, *CLTBIND, *ETRNSVR, *FTRSUBJECT, *FTRORIGIN, *FTRFILNAME, *FTRTYPE Required, Positional 1
INTNETADR Internet address Character value Optional
SUBNETMASK Subnet mask Character value, '255.255.255.255' Optional
HOSTNAME Host name Character value Optional
FTRDATA Filter data Character value Optional
Top

List type (TYPE)

Specifies which list to remove the element from.

*ACCEPT
Removes the selected item from the Accept Relay list.
*REJECT
Removes the selected item from the Reject Relay list.
*NEAR
Removes the selected item from the Near Domain list.
*DOMAIN
Removes the selected item from the Domains list.
*SVRBIND
Removes the selected item from the Server Bind list.
*CLTBIND
Removes the selected item from the Client Bind list.
*ETRNSVR
Removes the selected item from the ETRN Server list.
*FTRSUBJECT
Removes the selected item from the Subject comparison list.
*FTRORIGIN
Removes the selected item from the Originator's address comparison list.
*FTRFILNAME
Removes the selected item from the Filename / extension comparison list.
*FTRTYPE
Removes the selected item from the Type / subtype comparison list.
Top

Internet address (INTNETADR)

Specifies the internet address to remove from the specified list. This address should be in dotted decimal format.

Top

Subnet mask (SUBNETMASK)

Specifies the mask to use with the internet address.

255.255.255.255
This value selects only a single address value.
subnet-mask
The mask to use with the internet address. Valid mask values are 128.0.0.0 - 255.255.255.255
Top

Host name (HOSTNAME)

Specifies the host name to remove from the list.

Top

Filter data (FTRDATA)

Specifies the data to remove from matching when filtering.

Top

Examples

Example 1: Removing an Element from the Accept Relay list

RMVSMTPLE   TYPE(*ACCEPT)  INTNETADR('1.2.3.4')

This command removes the address 1.2.3.4 with netmask 255.255.255.255. This means that this address can NOT be used to connect to the SMTP server to relay mail to another server.

Example 2: Removing an Element from the Subject Filter list

RMVSMTPLE   TYPE(*FTRSUBJECT)  FTRDATA('Love you.')

This command removes an element from the Subject Filter list. Mail will NOT be checked for the subject 'Love you.'

Top

Error messages

*ESCAPE Messages

TCP1901
Internet address &1 not valid.
TCP1903
Specified host name not valid.
TCP264F
SUBNETMASK parameter value &2 not valid.
TCP265F
INTNETADR parameter value &2 not valid.
TCP8050
*IOSYSCFG authority required to use &1.
TCP96AD
Entry not found in SMTP list type &1.
CPF9847
Error occurred while closing file &1 in library &2.
CPF9848
Cannot open file &1 in library &2 member &3.
CPF9849
Error while processing file &1 in library &2 member &3.
Top