GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: imap4d   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.17.2 Configuration of imap4d.

The behavior of imap4d is altered by the following configuration statements:

debugSee debug statement.
tlsSee tls statement.
tls-file-checksSee tls-file-checks statement.
mailboxSee mailbox statement.
lockingSee locking statement.
loggingSee logging statement.
pamSee pam statement.
sqlSee sql statement.
virtdomainSee virtdomain statement.
radiusSee radius statement.
ldapSee ldap statement.
authSee auth statement.
serverSee Server Settings.
aclSee acl statement.
tcp-wrappersSee tcp-wrappers statement.
Imap4d Conf: namespace name { ... }

Configures namespace. The argument is one of: ‘personal’, ‘other’, ‘shared’. The following statements (described below) are allowed within curly braces: mailbox-mode and prefix.

See Namespace.

Imap4d namespace: mailbox-mode mode

Configures the file mode for the mailboxes created within that namespace. The syntax for mode is:


See mailbox-mode.

Imap4d namespace: prefix pfx { ... }

Configures a prefix and determines its mapping to the server’s file system. The pfx argument is the prefix which will be visible to the IMAP client. Available sub-statements are: directory, delimiter, and mailbox-type.

See prefix.

Imap4d namespace.prefix: directory path

Defines the directory in the file system to which the prefix is mapped.

See directory.

Imap4d namespace.prefix: delimiter chr

Defines the folder hierarchy delimiter for the prefix. Argument must be a single character.

See delimiter.

Imap4d namespace.prefix: mailbox-type type

Defines the type of the mailboxes inside that prefix.

See mailbox-type.

Imap4d Conf: login-disabled bool

Disable LOGIN command, if bool is ‘true’.

Imap4d Conf: create-home-dir bool

Create nonexistent user home directories. See also home-dir-mode, below.

Imap4d Conf: home-dir-mode mode

Set file mode for created user home directories. Mode is specified in octal.

The default value for mode is ‘700’ (‘drwx------’ in ls terms).

Imap4d Conf: preauth mode

Configure PREAUTH mode. Valid arguments are:


Imap4d invokes an external program to authenticate the connection. The command line is obtained from the supplied string, by expanding the following meta-variables:


Remote IP address in dotted-quad notation;


Remote port number;


Local IP address;


Local port number.

If the connection is authenticated, the program should print the user name, followed by a newline character, on its standard output and exit with code ‘0’.

Otherwise, it should exit with a non-zero exit code.


The remote machine is asked about the requester identity using the identification protocol (RFC 1413). Both plaintext and DES encrypted replies are understood. Optional port specifies the port to use, if it differs from the default ‘113’. It can be either a decimal port number or a symbolic name of a service, listed in /etc/services.


PREAUTH mode is enabled automatically if imap4d is started from command line in interactive mode (-i command line option). The current login name is used as the user name.

Imap4d Conf: preauth-only bool

If bool is ‘true’, use only preauth mode. If unable to setup it, disconnect immediately.

Imap4d Conf: ident-keyfile file

Set DES keyfile for decoding encrypted ident responses. Used with ‘ident://’ preauth mode.

Imap4d Conf: ident-encrypt-only bool

Use only encrypted IDENT responses.

Imap4d Conf: id-fields list

Set list of fields to return in response to ID command.

Valid field names are:


Package name (‘GNU Mailutils’).


Package version (‘3.14’).


Vendor name (‘GNU’).


The string ‘


The string ‘51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA’.


OS name.


OS version number.


Name of the imap4d binary.


Invocation command line.


List of environment variables with their values.

GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: imap4d   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index