--- title: "Archiving of e-mails and X.400 mails" slug: "intro-profiles-phase-1-archive-mails" updated: 2026-09-24T07:04:34Z published: 2026-09-24T07:04:34Z canonical: "docs.lobstersoftware.com/intro-profiles-phase-1-archive-mails" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Archiving of e-mails and X.400 mails Mails that arrive via the Input agent "SMTP" or are picked up by the scheduled input agents "Mail" or "X.400" can be archived either in the EML or XML format. **IMPORTANT:** Please note that you are responsible for managing the archive folder yourself. There is no automatic deletion of files. See [Scheduled input agents (cron)](/v1/docs/en/profiles--entry-tab-2-cron#cron-job-for-deleting-old-files), for example. ## Configuration The configuration for this is done in file `./etc/startup.xml`. Please use one of the following two options. In the Profile, the file name of the archive is then available via the system variable `VAR_SYS_MAIL_ARCHIVE`. ```xml    default_dir_to_place_archive    com.ebd.hub.datawizard.plugin.archive.EmlMailArchiver ``` ```xml    default_dir_to_place_archive    com.ebd.hub.datawizard.plugin.archive.XmlMailArchiver ``` Only one of the two possibilities can be configured, which then works for all mails. The first argument, here as placeholder `default_dir_to_place_archive`, specifies the archive directory that will be used if no individual configuration (see the following section) is set for the profile. You can use date placeholders (,
, , etc.) in the directory argument. The angle brackets have to be encoded with their entities `&lt;` and `&gt;`. | ./backup/mails/<YY><MM> | | --- | ## Individual configuration for single profile The mail archiving setting can be changed for individual profiles using the file `./conf/datawizard/mail_archiver.properties`. Following is an exemplary entry for specifying a different archive directory for the profile *MyProfile.* | MyProfile=/some/path/to/store | | --- | Switching off the archiving for profile *MyProfile* can be achieved as follows. | exclude.MyProfile | | --- | ## Saving the e-mail data stream for troubleshooting To find errors caused by a faulty structure of an e-mail, the data stream can be copied to a file when downloading an e-mail via POP3 or IMAP, or when receiving via SMTP. To do this, start the Integration Server with the following system property. The received e-mails will be saved as files in folder `./logs/dump`. | -Dhub.mail.preserveOriginal=true | | --- | Additionally, activate the option "Mail Log" for Phase 1 in the "Profile logging" for the profile that polls the mailbox. This will create trace files in folder `./logs/mail` that also contain the received e-mails. The input agent receives data in Phase 1 and starts a job for further processing. It works either as event based (passively waits for data) or scheduled (actively fetches data). XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data. A profile is the central configuration unit in the Lobster Data Platform. It receives data, processes it, and forwards it. Configuration is done graphically, with no programming required. The Integration Server is the central runtime component of the Lobster Data Platform. It executes integration processes and processes data. The Integration Server stores local certificates and uses their private keys for signing and decryption. It provides all communication services (e.g., FTP, SMTP, HTTP) and connects the application to the database. It is managed via the Admin console. Input: An input agent receives the data. It can work either as event based (e.g. FTP upload) or scheduled (cron).