Next: conf-callout, Previous: conf-debug, Up: Mailfromd Configuration [Contents][Index]
The SMTP timeouts used in callout sessions are configured via
smtp-timeout
statement:
smtp-timeout type { connection interval; initial-response interval; helo interval; mail interval; rcpt interval; rset interval; quit interval; }
Declare SMTP timeouts of the given type, which may be ‘soft’ or ‘hard’.
Callout SMTP sessions initiated by polling functions, are controlled by two sets of timeouts: ‘soft’ and ‘hard’. Soft timeouts are used by the mailfromd milter servers. Hard timeouts are used by callout servers (see callout server). When a soft timeout is exceeded, the calling procedure is delivered an ‘e_temp_failure’ exception and the session is scheduled for processing by a callout server. The latter re-runs the session using hard timeouts. If a hard timeout is exceeded, the address is marked as ‘not_found’ and is stored in the cache database with that status.
Normally, soft timeouts are set to shorter values, suitable for use in MFL scripts without causing excessive delays. Hard timeouts are set to large values, as requested by RFC 2822 and guarantee obtaining a definite answer (see below for the default values).
The time argument for all smtp-timeout
sub-statements
is expressed in time interval units, as described in time interval specification.
Sets initial connection timeout for callout tests. If the connection is not established within this time, the corresponding callout function returns temporary failure.
Sets the time to wait for the initial SMTP response.
Timeout for a response to ‘HELO’ (or ‘EHLO’) command.
Timeout for a response to ‘MAIL’ command.
Timeout for a response to ‘RCPT’ command.
Timeout for a response to ‘RSET’ command.
Timeout for a response to ‘QUIT’ command.
The default timeout settings are:
Timeout | Soft | Hard |
---|---|---|
connection | 10s | 5m |
initial-response | 30s | 5m |
helo | I/O | 5m |
I/O | 10m | |
rcpt | I/O | 5m |
rset | I/O | 5m |
quit | I/O | 2m |
Sets a general SMTP I/O operation timeout. This timeout is used as the default for entries marked with ‘I/O’ in the above table. The default is 3 seconds.
Next: conf-callout, Previous: conf-debug, Up: Mailfromd Configuration [Contents][Index]