General-Purpose Mail Filter
This section provides a summary of administrative commands available
Defines Sendmail macro name to the given value. Any number of name=value pairs can be given as arguments.
See D command.
mtasim to expect next SMTP command to
return given code (a three-digit decimal number).
See expect commands.
Lists defined macros. See L command.
Undefines macros given as its arguments.
Declares the sender socket parameters. See S command, for a detailed description and examples.
This command is available only at the initial stage of a
mtasim session, before the first SMTP command was
given. It is disabled if the --sender-socket option was
given in the command line (see sender-socket).
help output reflects whether or not this command is available.
If neither this command nor the --sender-socket option were
mtasim behaves as if given the
The family argument
supplies the socket family, i.e. the first argument to the
connect handler (see connect handler). It can have either
literal or numeric value, as described in the table below:
|stdio||0||Standard input/output (the MTA is run with -bs option)|
See also Table 4.3.
Depending on the family, the rest of arguments supply additional parameters:
The hostname argument can be specified. It defines the first
argument of the
connect handler (see hostname in connect handler).
All arguments must be specified.
|hostname||1||Sender host name|
|address||4||Sender IP address|
|port||3||Sender port number|
Hostname and address must be supplied. The address argument must be a full pathname of the UNIX socket.
This document was generated on January 3, 2019 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.