193
193
<b>-t</b> <i>timeout</i> (default: 100)
194
194
Limit the time for receiving a command or sending a
195
response. The time limit is specified in seconds.
195
response. The time limit is specified in seconds.
197
197
<b>-T</b> <i>windowsize</i>
198
Override the default TCP window size. To work
199
around broken TCP window scaling implementations,
198
Override the default TCP window size. To work
199
around broken TCP window scaling implementations,
200
200
specify a value > 0 and < 65536.
202
202
<b>-u</b> <i>username</i>
203
203
Switch to the specified user privileges after open-
204
ing the network socket and optionally changing the
205
process root directory. This option is required
206
when the process runs with super-user privileges.
204
ing the network socket and optionally changing the
205
process root directory. This option is required
206
when the process runs with super-user privileges.
207
207
See also the <b>-R</b> option.
209
209
<b>-v</b> Show the SMTP conversations.
215
215
<b>-W</b> <i>command:delay[:odds]</i>
216
Wait <i>delay</i> seconds before responding to <i>command</i>.
217
If <i>odds</i> is also specified (a number between 1-99
218
inclusive), wait for a random multiple of <i>delay</i>.
219
The random multiplier is equal to the number of
216
Wait <i>delay</i> seconds before responding to <i>command</i>.
217
If <i>odds</i> is also specified (a number between 1-99
218
inclusive), wait for a random multiple of <i>delay</i>.
219
The random multiplier is equal to the number of
220
220
times the program needs to roll a dice with a range
221
of 0..99 inclusive, before the dice produces a
221
of 0..99 inclusive, before the dice produces a
222
222
result greater than or equal to <i>odds</i>.
224
224
[<b>inet:</b>][<i>host</i>]:<i>port</i>
225
Listen on network interface <i>host</i> (default: any
225
Listen on network interface <i>host</i> (default: any
226
226
interface) TCP port <i>port</i>. Both <i>host</i> and <i>port</i> may be
227
227
specified in numeric or symbolic form.
230
230
Listen on the UNIX-domain socket at <i>pathname</i>.
233
The maximum length the queue of pending connec-
233
The maximum length the queue of pending connec-
234
234
tions, as defined by the <b>listen</b>(2) system call.
236
236
<b>DUMP FILE FORMAT</b>
237
Each dumped message contains a sequence of text lines,
238
terminated with the newline character. The sequence of
237
Each dumped message contains a sequence of text lines,
238
terminated with the newline character. The sequence of
239
239
information is as follows:
241
241
<b>o</b> The optional string specified with the <b>-S</b> option.
243
<b>o</b> The <b>smtp-sink</b> generated headers as documented
243
<b>o</b> The <b>smtp-sink</b> generated headers as documented
246
<b>o</b> The message header and body as received from the
246
<b>o</b> The message header and body as received from the
249
249
<b>o</b> An empty line.
251
The format of the <b>smtp-sink</b> generated headers is as fol-
251
The format of the <b>smtp-sink</b> generated headers is as fol-
254
254
<b>X-Client-Addr:</b> <i>text</i>
255
255
The client IP address without enclosing []. An IPv6
256
address is prefixed with "ipv6:". This record is
256
address is prefixed with "ipv6:". This record is
259
259
<b>X-Client-Proto:</b> <i>text</i>
260
The client protocol: SMTP, ESMTP or LMTP. This
260
The client protocol: SMTP, ESMTP or LMTP. This
261
261
record is always present.
263
263
<b>X-Helo-Args:</b> <i>text</i>
264
The arguments of the last HELO or EHLO command
265
before this mail delivery transaction. This record
266
is present only if the client sent a recognizable
264
The arguments of the last HELO or EHLO command
265
before this mail delivery transaction. This record
266
is present only if the client sent a recognizable
267
267
HELO or EHLO command before the DATA command.
269
269
<b>X-Mail-Args:</b> <i>text</i>
270
270
The arguments of the MAIL command that started this
271
mail delivery transaction. This record is present
271
mail delivery transaction. This record is present
274
274
<b>X-Rcpt-Args:</b> <i>text</i>
275
The arguments of an RCPT command within this mail
276
delivery transaction. There is one record for each
277
RCPT command, and they are in the order as sent by
275
The arguments of an RCPT command within this mail
276
delivery transaction. There is one record for each
277
RCPT command, and they are in the order as sent by
280
280
<b>Received:</b> <i>text</i>
281
A message header for compatibility with mail pro-
282
cessing software. This three-line header marks the
283
end of the headers provided by <b>smtp-sink</b>, and is
281
A message header for compatibility with mail pro-
282
cessing software. This three-line header marks the
283
end of the headers provided by <b>smtp-sink</b>, and is
284
284
formatted as follows:
286
286
<b>from</b> <i>helo</i> <b>([</b><i>addr</i><b>])</b>
287
287
The HELO or EHLO command argument and client
288
288
IP address. If the client did not send HELO
289
or EHLO, the client IP address is used
289
or EHLO, the client IP address is used
292
292
<b>by</b> <i>host</i> <b>(smtp-sink) with</b> <i>proto</i> <b>id</b> <i>random</i><b>;</b>
293
The hostname specified with the <b>-h</b> option,
294
the client protocol (see <b>X-Client-Proto</b>
293
The hostname specified with the <b>-h</b> option,
294
the client protocol (see <b>X-Client-Proto</b>
295
295
above), and the pseudo-random portion of the
296
296
per-message capture file name.