DISALLOWCMD statement

Use the DISALLOWCMD statement to control whether this SMTP server does not support these SMTP commands. Each SMTP command has a decimal number, specifying that number after the DISALLOWCMD statement causes that SMTP command to no longer be supported. The SMTP server responds with the reply code 502 Command <SMTP command> not implemented. The SMTP server responds this way whether or not the SMTP command is being issued by way of the TCP/IP connection or the JES spool.

Restriction: You can disallow only the following SMTP commands:
  • VERB
  • QUEU
  • HELP
  • VRFY
  • EXPN

If the number parameter following the DISALLOWCMD statement is not valid for any reason, then the SMTP server default behavior is to allow these SMTP commands and respond appropriately.

Restriction: Code this statement only one time in the SMTP configuration file, because the last instance of this statement is the only one that is used.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-DISALLOWCMD--(number)---------------------------------------><

Parameters

number
Indicates what SMTP commands should not be allowed. Multiple SMTP commands can be disallowed by adding the SMTP command number together. The following decimal numbers are assigned to each command:
VERB= 1, QUEU= 2, HELP= 4, VRFY= 8 and EXPN= 16
A valid decimal number parameter ranges from 1 to 31.

Examples

Use the following code to specify that the SMTP commands, VERB and VRFY, are no longer supported:
DISALLOWCMD   9 
Use the following code to specify that the SMTP commands, HELP and VRFY, are no longer supported:
DISALLOWCMD   12