## mailfront

# Backend: queuedir

This backend writes messages into individual files in a named directory. The files are written to temporary files with unique filenames and moved into the final directory when the contents are complete.

The file format is as follows:

1. The envelope sender address, followed by a NUL byte.
2. A list of envelope recipient addresses, each followed by a NUL byte.
3. A terminating NUL byte.
4. The full message data.

## Configuration

`$QUEUEDIR`
  The destination top-level directory under which messages are written.
`$QUEUEDIR_DEST`
  The subdirectory of `$QUEUEDIR` into which completed messages are moved. (defaults to "new")
`$QUEUEDIR_NOSYNC`
  If set, the destination file is not synced to disk before the backend reports success.
`$QUEUEDIR_TMP`
  The subdirectory of `$QUEUEDIR` into which temporary files are written. (defaults to "tmp")