Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add SMTP List Element (ADDSMTPLE) command is used to add elements to 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 |
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 |
Specifies which list to add the new element to.
Top |
Specifies the internet address to add to the specified list. This address should be in dotted decimal format.
Top |
Specifies the mask to use with the internet address.
Top |
Top |
Top |
Example 1: Adding an Element to the Accept Relay List
ADDSMTPLE TYPE(*ACCEPT) INTNETADR('1.2.3.4')
This command adds an address 1.2.3.4 to the Accept Relay list. The assumed mask is 255.255.255.255. This means that this address can be used to connect to the SMTP server to relay mail to another server.
Example 2: Adding an Element to the Subject Filter List
ADDSMTPLE TYPE(*FTRSUBJECT) FTRDATA('Love you.')
This command adds an element to the Subject Filter list. Any mail with an exact match to the subject 'Love you.' will be filtered as specified by the CHGSMTPA attributes.
Top |
*ESCAPE Messages
Top |