RESTRICT statement

Use the RESTRICT statement to specify addresses of users who cannot use SMTP services. This includes sending and receiving mail.

Syntax

Read syntax diagramSkip visual syntax diagram
                             .--------.                
                             V        |                
>>-RESTRICT--+-PURGE------+----userid-+--ENDRESTRICT-----------><
             +-RETURN-----+                            
             '-TRANSFERTO-'                            

Parameters

PURGE
Specifies that the spool data set is to be purged.
RETURN
Specifies that the spool data set is to be returned to the originator.
TRANSFERTO
Specifies that the spool data set is to be forwarded to the specified userid.
userid
Specifies the address of the user.

Examples

In the following example, mail from restricted users is returned, no mail is accepted from KNIGHT at 2 different nodes, and no mail is accepted from anyone on the host CASTLE:
RESTRICT RETURN
  KNIGHT@CAMPTENT
  KNIGHT@TOURNMNT
  *@CASTLE
ENDRESTRICT

Usage notes

Related topics