Previous: General Server Configuration, Up: Server Settings


3.2.11.2 Server Statement

Editor's note:

The information in this node may be obsolete or otherwise inaccurate. This message will disappear, once this node revised.


Syntax:

     server ipaddr[:port] {
       # Run this server as a single process.
       single-process bool;
       # Log the session transcript.
       transcript bool;
       # Set idle timeout.
       timeout time;
       # Set server specific ACLs.
       acl { /* See ACL Statement. */ };
     }


Description: The server block statement configures a single TCP or UDP server. It takes effect only in daemon mode (see server mode). The argument to this statement specifies the IP address, and, optionally, the port, to listen on for requests. The ipaddr part is either an IPv4 address in dotted-quad form, or a symbolic host name which can be resolved to such an address via DNS. Specifying ‘0.0.0.0’ as the ipaddr means listen on all available network interfaces. The port argument is either a port number in decimal, or a symbolic service name, as listed in /etc/services (see Internet network services list). If port is omitted, Mailutils uses the port set by port statement (see port), or, in its absence, the default port number, which depends on a server being used (e.g. 110, for pop3d, 143, for imap4d, etc.).

Any number of server statements may be specified in a single configuration file, allowing to set up the same service on several IP addresses and/or port numbers, and with different configurations.

Statements within the server block statement configure this particular server.

— Configuration: single-process bool;

If set to true, this server will operate in single-process mode. This mode is intended for debugging only, do not use it on production servers.

— Configuration: transcript bool;

Enable transcript of the client-server interaction. This may generate excessive amounts of logging, which in turn may slow down the operation considerably.

Session transcripts are useful in fine-tuning your configurations and in debugging. They should be turned off on most production servers.

— Configuration: timeout time;

Set idle timeout for this server. This overrides global timeout settings (see timeout).

— Configuration: acl

This statement defines a per-server Access Control List. Its syntax is as described in ACL Statement. Per-server ACLs complement, but not override, global ACLs, i.e. if both global ACL and per-server ACL are used, the connection is allowed only if both of them allow it, and is denied if any one of them denies it.