NOSOURCEROUTE statement

Use the NOSOURCEROUTE statement to control whether this SMTP generates and passes a source routing string for the originator address (MAILCMD) or for the recipient address (RCPTCMD). Setting the parameter to ENABLED causes no source routing addresses to be generated for both the MAIL FROM: and RCPT TO: SMTP commands. A source route is a path that contains a source routing list of hosts and a destination mailbox. The list of hosts is the route information. It describes how the mail is to arrive at its final destination. The mail is passed from one host in the list to the next until it is delivered to the intended recipient.

Source routing addressing string has the following format:
@host1,@host2,@host3:myuserid@myhost
where myuserid@myhost is considered the mailbox information.

NOSOURCEROUTE DISABLED is the default and indicates that source route on the MAIL FROM: and RCPT TO: commands are honored.

Syntax

Read syntax diagramSkip visual syntax diagram
                  .-DISABLED-.   
>>-NOSOURCEROUTE--+----------+---------------------------------><
                  +-MAILCMD--+   
                  +-RCPTCMD--+   
                  '-ENABLED--'   

Parameters

DISABLED
Source routing address strings are generated for both the MAIL FROM: and the RCPT TO: SMTP commands based on the source routing rules documented in RFC 821. This is the default if nothing is specified, or if what is specified is not a valid parameter.
MAILCMD
Source routing address strings are not generated for the MAIL FROM: SMTP command. This means that the return path only contains the mailbox information. However, the RCPT TO: SMTP command maintains source routing addressing based on the source routing rules documented in RFC 821.
RCPTCMD
Source routing address strings are not generated for the RCPT TO: SMTP command. This means that the send path only contains the mailbox information. However, the MAIL FROM: SMTP command maintains source routing addressing based on the source routing rules documented in RFC 821.
ENABLED
Source routing address strings are not generated for both the MAIL FROM: and the RCPT TO: SMTP commands. Only the mailbox information is provided.

Examples

To stop SMTP from adding its host identifier in front of the mailbox information about the return path passed on the MAIL FROM: SMTP command, code the following statement:
NOSOURCEROUTE   MAILCMD

Usage notes