10.5 mtasim command line options

This section summarizes all available mtasim command line options.

--append
-a

Append to the trace file. See section Trace Files.

--body-chunk=number

Set the body chunk length (bytes) for xxfi_body calls.

--daemon
-bd

Run as daemon. See section Daemon Mode.

--define=macro=value
-D macro=value

Define Sendmail macro macro to the given value. It is similar to the \D administrative command (see D command)

--gacopyz-log=level

Set desired logging level for gacopyz library (see section Gacopyz). See gacopyz-log option, for a detailed description of level. Notice, that unless this option is used, the ‘--verbose’ (‘-v’) command line option implies ‘--gacopyz-log=debug’.

--group=name
-g name

When switching to user's privileges as requested by the ‘--user’ command line option, retain the additional group name. Any number of ‘--group’ options may be given to supply a list of additional groups.

--user=name
-u name

Run with this user privileges. This option and the ‘--group’ option have effect only if mtasim was started with root privileges.

--help
-?

Display a short help summary

--milter-version=version

Force using the given Milter protocol version number. The version argument is either a numeric version (e.g. ‘2’), or a version string in form ‘major.minor[.patch]’, where square brackets indicate optional part. The default is ‘1.0.0’. If version is any of ‘2’, ‘3’ or ‘1.0.0’, the default protocol capabilities and actions for that version are set automatically. This option is intended for development and testing of the Gacopyz library (see section Gacopyz).

--milter-proto=bitmask

Set Milter protocol capabilities. See ‘gacopyz/gacopyz.h’ for the meaning of various bits in the bitmask. Look for the C macros with the prefix ‘SMFIP_’.

--milter-actions=bitmask

Set Milter actions. See ‘gacopyz/gacopyz.h’ for the meaning of various bits in the bitmask. Look for the C macros with the prefix ‘SMFIF_’.

--no-interactive

Not-interactive mode (disable readline). See (readline)Command Line Editing section `Command Line Editing' in GNU Readline Library.

--port=port
-X port

Communicate with given Milter port. See mtasim milter port.

--prompt=string

Set readline prompt. The default prompt string is ‘(mtasim) ’.

--statedir

When using ‘-Xauto’, use the temporary directory name as mailfromd state directory (see statedir mtasim option).

--stdio
-bs

Use the SMTP protocol on standard input and output. This is the default mode for mtasim. See section mtasim interactive mode mode.

--trace-file=file

Set name of the trace file. See section Trace Files.

--usage

Display option summary

--verbose
-v

Increase verbosity level. Implies ‘--gacopyz-log=debug’, unless that option is used explicitly.

--version
-V

Print program version