||include||table.htm||
To |
From |
Subject |
Archive Path |
Max msg size |
Archive size |
Size in days |
Early |
||begin_list||
|
|
| |
|
|
|
|
||end_list||
To, From and Subject are optional filter rules. eg To/From "*@adomain.com" or Subject "*important business*". Leaving a field blank is the same as "*".
Archive path is required and is the path on disk the archive is stored.
Max msg size, Archive size, Size in days and Early are optional and modify the behaviour of your archive.
Notes:
- Max msg size is the maximum that will be logged per message. Any message larger than this will be truncated to this size in the archive. If not specified the default is 1mb.
- Archive size and Size in days specify the "size" of the archive. If size in days is specified all old mail will be stored for this duration regardless of specified archive size, otherwise (or if fixed size is specified) the archive will be a fixed size rotating archive. If nothing is specified the default is a fixed size rotating archive of 20mb.
- Early allows you to archive messages before they are passed to the virus or spam filters. This can be useful for unmodified message text as received by surgemail.
- The from field will also match the senders IP address eg From "1.2.3.*"
- To delete an entry set path to blank.
- eg. to run in US CYA mode for a particular domain:
to=* from=*@mydomain.com subject=* path=c:\archives\mydomain msgsize=100mb days=3years
beware though... 3 years of mail is a lot of mail, unless you have a very big disk you will probably want to move the archive files off your server periodically. Also
you will probably want to increase g_archive_bucketsize.