Server

The server object handles incoming TCP connections and runs the through the various other objects.

[server]
listen=0.0.0.0
port=4096
sparethreads=2
maxthreads=150
maxrequests=0
cacherefresh=50
poolrefresh=10
log=full
deferwithstatus=true
defer=defer_if_permit Service is unavailable
dunno=dunno
onerror=dunno
stats=1
listen
IP to listen on.
port
port to bind to.
sparethreads
number of spare threads.
maxthreads
maximum number of threads.
maxrequests
maximum number of requests to handle per thread (leave at 0 - postfix closes connections on a regular basis anyway).
cacherefresh
time in seconds between refreshing any cached data (see match)
(poolrefresh)
(internal - don't use)
log
full, minimal. Minimal will only log the daemons status message but nothing about individual triplets.
deferwithstatus
on, off - mention the status of the triplet in the reply if it is new or waiting, so the client will see 450 .... new(0, 0)
defer
String to send to postfix when a triplet is greylisted (new or wait). Must start with defer_if_permit for greylisting to happen. The rest is free text. If deferwithstatus is on the greylist status is appended to this text.
dunno
String to send to postfix if a triplet is ok - seen before and timeout. Should be dunno.
onerror
if something goes wrong send this string to postfix - e.g. the database connection failed or an internal error occured.
stats
how often to log stats - this depends on poolrefresh. stats=5 with poolrefresh=10 results in stats being logged every 50 second.