TCP/IP Configuration and Management Manual
Configuring the NonStop TCP/IP Subsystem
TCP/IP Configuration and Management Manual—427132-004
3-49
Simple Mail Transfer Protocol (SMTP)
Macros are interpolated using the construct $x where x is the name of the macro to be
interpolated. In particular, lower-case letters are reserved for specifying special
semantics which are passed information in or out of smtpgate. Some special
characters are reserved for specifying conditionals.
Specify conditionals by using the following syntax:
$?x text1 $| text2 $.
This syntax interpolates text1 if the macro $x is set, and text2 if it is not; you can
omit the else clause $|.
You must define the following macros:
In addition, the following macros are internally defined; do not redefine them:
e The SMTP entry message. This message is generated in the 220 greeting line,
first displayed when a connection is made to the SMTPRCV.
j The official domain name for this site, which is the string derived from the
gethostname call (also the name of the host that is set with the SCF command
ALTER, HOSTNAME).
The name of the mailer daemon (for error messages). This is the name used as
the sender’s name when error messages are sent out by the SMTPS server.
This name should generally be POSTMASTER.
o The set of operators in addresses. This macro is used in address parsing to
separate tokens in the rule sets. It generally contains the following set of
characters:
<>[].@%!^=
q The default format of the sender address.This macro specifies how the From:
line looks in the sender’s address.
a The origination date in ARPANET format
b The current date in ARPANET format
c The hop count
d The date in Guardian format
f The sender (from) address
g The sender address relative to the recipient
h The recipient host
r The protocol used
s The sender's host name
t A numeric representation of the current time
u The recipient user