7.1.2 General Settings

--all

When used with ‘--compact’ or ‘--expire’ option, applies the action to all available databases. See compact cronjob.

-e interval
--expire-interval=interval

Set expiration intervals for all databases to the specified interval. See time interval specification, for a description of interval format. The option overrides the expire-interval configuration statement (see expire-interval-conf), which you are advised to use instead.

--foreground

Stay in foreground. When given this option, mailfromd will not disconnect itself from the controlling terminal and will run in the foreground.

-H dbformat
--format=dbformat

Use database of the given format, instead of the default ‘cache’. See section Basic Database Operations.

-g name
--group=name

Retain the group name when switching to user privileges. See section Starting and Stopping.

This option complements the group configuration statement (see section group).

--ignore-failed-reads

Ignore records that cannot be retrieved while compacting the database. Without this option, mailfromd will abort the compaction if any such error is encountered.

--include=dir
-I dir

Add the directory dir to the list of directories to be searched for header files. This will affect the functioning of #include statement. See include, for a discussion of file inclusion.

--lock-retry-count=number

Set maximum number of attempts to acquire the lock on a database. See the description of the lock-retry-count configuration statement, lock-retry-count, for more information about the database locking.

--lock-retry-timeout=interval

Set the time span between the two locking attempts. See the description of the lock-retry-count configuration statement, lock-retry-count, for more information about database locking.

This option overrides the value set by the lock-retry-timeout configuration statement (see section lock-retry-timeout-conf.

See time interval specification, for a description of valid interval formats.

--mailer=url
-M url

Set the URL of the mailer to use. See section Mail Sending Functions.

--mtasim

This option is reserved for use by mtasim (see section mtasim — a testing tool).

-O[level]
--optimize[=level]

Set optimization level for code generator. Two levels are implemented: ‘0’, meaning no optimization, and ‘1’, meaning full optimization.

-p string
--port=string

Set communication socket. Overrides the listen configuration statement, which you are advised to use instead (see section listen).

--pidfile=file

Set pidfile name. Overrides the pidfile configuration statement, which you are advised to use instead (see section pidfile).

--predict=rate-limit

Used with ‘--list’ enables printing of the estimated times of sending along with the ‘rate’ database dump. Implies ‘--list --format=rate’. See estimated time of sending.

--relayed-domain-file=file

Read relayed domains from file. Overrides the relayed-domain-file configuration statement (see section relayed-domain-file), which you are advised to use instead. See section Avoiding Verification Loops, and the description of relayed function (see relayed) for more information.

-r
--remove

Force removing local socket file, if it already exists. Unless this option is specified, mailfromd will refuse to start if this file exists.

--state-directory=dir

Set new program state directory. See Local state directory, for the description of this directory and its purposes. This option overrides the settings of state-directory configuration statement, described in state-directory.

-S
--source

Set source address for TCP connections. Overrides the ‘source-ip’ configuration statement, which you are advised to use instead (see section source-ip).

--time-format=format

Set format to be used for timestamps in listings, produced by ‘--list’. The format is any valid strftime format string, see Time and Date Formats, for a detailed description. The default format is ‘%c’ (see %c time format). To analyze mailfromd --list output using text tools, such as awk or grep, the following format might be useful: ‘%s’ (see %s time format). Another format I find useful is ‘%Y-%m-%d_%H:%M:%S’.

-u name
--user name

Switch to this user privileges after startup. Overrides the user configuration file statement, which you are advised to use instead (see section user). Default user is ‘mail’.

-v var=value
--variable var=value

Assign value to the global variable var. The variable must be declared in your startup script. See overriding initial values, for a detailed discussion of this option.