1. Home
  2. Knowledge Base
  3. Settings
  4. Global settings g_legal - Legal Archive

Global settings g_legal - Legal Archive

The legal archive feature is ideal for keeping a copy of incoming emails in an archive. You can enable user level searching of the archive. And store the data locally (recommended) or on your Amazon storage.

Use the Archive config page in SurgeMail admin to quickly configure it. (Under Manage)

Never use the amazon storage feature (it's expensive, local drives are better!)

The Report and Search buttons let you see the usage and search for messages. Users can also search the archive (if permitted).

The basic settings you need are:

    g_legal_archive_enable "TRUE"
    g_legal_archive_local "TRUE"
    g_legal_archive_path "/usr/local/surgemail/legal_archive"
    g_legal_archive_hostid "1"
    g_legal_archive_encrypt_key "yoursecret" <-- change this and never loose it!
    g_legal_archive_keep "3 months" <-- specify retention time based on disk space

Tellmail commands for managing the archive:

la_export

tellmail la_export domain.name dd-mon-yyyy dd-mon-yyyy c:\destination

This command extracts the contents of the archive in a format suitable to import into other systems.

archive_delete

tellmail archive_delete domain.name YES_REALLY_DELETE_THIS

This deletes all archive data for a single domain.

archive_list (s3 only)

tellmail archive_list domain.name

Lists the contents of the archive. Not useful for local archives. DO NOT USE.

resync_archive

tellmail resync_archive

Send archive data to a mirror system

archive_monthly

tellmail archive_monthly 365

Will cleanout old archive data up to 1 year ago (applying existing rules within that time period)

This command does not need to be run manually.


Other archive settings...

Used if the archive is on amazon s3 storage, DO NOT USE!

Syntax: g_legal_archive_accesskey string

This setting has no further documentation currently available

Syntax: g_legal_archive_add string

This setting has no further documentation currently available

Syntax: g_legal_archive_bucket string

This setting has no further documentation currently available

Syntax: g_legal_archive_enable bool

This setting has no further documentation currently available

Syntax: g_legal_archive_encrypt_key string

This setting has no further documentation currently available

Syntax: g_legal_archive_hostid int

This setting has no further documentation currently available

Syntax: g_legal_archive_keep int

This setting has no further documentation currently available

Syntax: g_legal_archive_local bool

This setting has no further documentation currently available

Syntax: g_legal_archive_nofail bool

This setting has no further documentation currently available

Syntax: g_legal_archive_only bool

This setting has no further documentation currently available

Syntax: g_legal_archive_path string

This setting has no further documentation currently available

Syntax: g_legal_archive_secretkey string

This setting has no further documentation currently available

Syntax: g_legal_archive_show bool

Messages are always stored now regardless of spam score

Syntax: g_legal_archive_spam bool

Was this article helpful?

Related Articles