6.4 Logging and Debugging configuration

Mailfromd Conf: syslog-async bool

Use asynchronous syslog implementation. See section Logging and Debugging, for more information about two syslog flavors, and see Using non-blocking syslog, for information on how to set default syslog implementation at compile time.

See also –syslog-async.

Mailfromd Conf: debug spec

Set mailfromd debug verbosity level. The spec argument is a decimal number in the range 0 – 100. Level 0 effectively disables debugging, while level 100 enables the most verbose debugging output. E.g.:

 
debug 1;

You can also selectively set different debug levels for different source code modules. In this case spec is a string formatted as a comma-separated list of debug specifications, each of which has the following syntax: module[=level]. E.g.:

 
debug "prog=1, db=10";

See section Logging and Debugging, for the detailed description of available debug specifications.

Mailfromd Conf: source-info bool

When bool is ‘true’ (see boolean: (mailutils)Statements section `Statements' in GNU Mailutils Manual) include mailfromd source locations in the debugging output. This is intended mainly for mailfromd developers.

Mailfromd Conf: stack-trace bool

Enables stack trace dumps on runtime errors. This feature is useful for locating the source of an error, especially in complex scripts. See tracing runtime errors, for a detailed description.

Mailfromd Conf: trace-actions bool

Enable action tracing. If bool is ‘true’, mailfromd will log all executed actions. See section Logging and Debugging, for a detailed description of action tracing.

Mailfromd Conf: trace-program modlist

Enable program instruction tracing for modules in modlist, a comma-separated list of source code modules, e.g.:

 
trace-program (bi_io,bi_db);

This statement enables tracing for functions from modules ‘bi_io.c’ and ‘bi_db.c’ (notice, that you need not give file suffixes).

This tracing is useful for debugging mailfromd, but is not advised to use otherwise, since it is very time-costly.

Mailfromd Conf: transcript bool

Enable transcripts of call-out SMTP sessions. See SMTP transcript, for a detailed description of SMTP transcripts.