3. Mail Quarantining
3.1 Quarantine directory options
smtp.proxy supports quarantining spam and viruses. If mail matches the configured criteria, it is not forwarded to the upstream server but stored in some directory on the proxy server. There are some options how the quarantine areas can be configured.
Virus and spam scanning may share the quarantine area or uses different configuration. The configuration option names are the same for both but they have different prefixes (referred below as xx) which are spamc for the spam and clamav for the virus quarantine area.
3.1.1 Directory options
By default smtp.proxy creates automatically a subdirectory for each in the quarantine area when a mail is quarantined. The naming scheme for the directories is YYYY-MM-DD.
The xx-dirmode option control this:
- xx-dirmode mode
-
sets the configured directory mode which is one of
Table XX - Directory mode options
| autosubdir |
the default, creates new subdirectories automatically. |
| plain |
store all files in the given directory. |
| flat |
same as plain. |
3.1.2 Directory index style
By default smtp.proxy stores for each quarantined e-mail a file which holds some information about the quarantined mail. But this can be changed with the xx-index option. Possible index modes are
Table 2 - Quarantine index styles
| Value |
Function |
| info |
creates files for each mail
|
| table |
writes additional information to the file |
| none |
store no additional data, most useful for IMAP server directories. |
3.2 Directory for temporary files
Any quarantining in smtp.proxy works only if the quarantine directories are on the same disk partition as smtp.proxy's directory for temporary files ( smtp.proxy uses a "move" operation rather than "copy" to put the files into quarantine).
The default directory for spoolfiles is /tmp but this can be changed with the tmpdir option if necessary.
|