Creating a Laserfiche Email Archive Profile

Laserfiche Email Archive profiles define the rules that determine which emails will be imported to Laserfiche, where they will be saved, and the metadata that will be applied to them.

To create a profile

  1. Open the Laserfiche Email Archive Configuration dialog box from the Windows Start Menu.
  2. Select Profile from the menu, and then select Add profile.
  3. Enter your Laserfiche repository and authentication information. Select the Cloud tab to log into Laserfiche Cloud. and provide a user (not built -in system) account ID, username, and password. We recommend using a Service Principal user, which is a secure, unlicensed user that Laserfiche provides for connecting applications.
  4. On the General tab, name your profile.
  5. Select IMAP to periodically poll a monitored email folder for emails to send to email archive. The SMTP option is being deprecated and is not recommended.
  6. If you select Disable this profile , you can save your profile but it will not be operational.
  7. Under Mail server, for Authentication Type, select either Basic Authentication or Microsoft 365 OAuth 2.0.
  8. Note: If you are using a Microsoft mail server (e.g., Exchange Online), you must select Microsoft OAuth 2.0 as your authentication type.

    1. If you selected Basic Authentication, configure the following:
      • Server: Your mail server's URL. For Gmail, this is imap.gmail.com.
      • Port: The standard IMAP server ports are 143 (non-encrypted) and 993 (SSL).
      • Use SSL: Select this option to use a SSL connection to the server.
      • Username: The username of the account associated with the mailbox Email Archive will monitor.
      • Password: If you selected BasicAuth, enter the password for the account.
      • Shared mailbox alias: If you want Laserfiche Email Archive to monitor a shared mailbox, instead of the mailbox associated with a single account, enter the mailbox's name here.
    2. If you selected Microsoft 365 OAuth 2.0, configure the following:
      • Username: The username of the account associated with the mailbox Email Archive will monitor.
      • Application (client) ID: This is the application ID assigned to your app. The ID can be found in the portal where the app was registered.
      • Client secret: The client secret generated for the app in the app registration portal.
      • Tenant ID: The directory tenant that granted the app the permissions requested, in GUID format. The ID can be found in the portal where the app was registered.
      • Note: To use Laserfiche Email Archive with Microsoft 365 OAuth 2.0, you must enable the API permissions “Mail.Read” and “Mail.ReadWrite” in Microsoft Azure. ClosedLearn more.

      To Configure Microsoft Azure

      1. Go to https://portal.azure.com/#home.
      2. Navigate to App registrations (you may want to search for it), and then select New registration.
      3. Provide an application name, and then select Accounts in any organizational directory and personal Microsoft accounts.
      4. Click Register.
      5. Azure AD will assign a unique application (client) ID to your app, and then take you to your application's Overview page. Click Certificates and secrets.
      6. Under Client secrets, add a new client secret. Provide a description and an expiration time period, and click Add.
      7. Important: Keep a record of your client secret value because it will be hidden next time you view it.

      8. On the App registrations page, click the app you just created, and then select Authentication.
      9. Click Add a platform, and select Mobile and desktop applications.
      10. Select https://login.microsoftonline.com/common/oauth2/nativeclient and https://login.live.com/oauth20_desktop.srf (LiveSDK). Then, click Configure.
      11. Under Advanced settings, enable Live SDK support and Default client type.
      12. Click Save.
      13. Navigate to API permissions.
      14. Select, Add a permission, then Microsoft Graph, and then Application permissions.
      15. Under Mail, select Mail.Read and Mail.ReadWrite.
      16. Click Add permissions.
      17. Click Grant admin consent for Laserfiche.
    3. Test Connection: Click this button to ensure Laserfiche Email Archive can connect to your Exchange server using the credentials you provided.
  9. Under Message retrieval, enter the following:
    1. Polling interval in minutes: Specify how frequently Laserfiche Email Archive will poll the monitored folder for emails to archive.
    2. Retrieve unread messages and set their status to read: Select this option if you want Laserfiche Email Archive to change the status of messages it's processed to "read." You will still need to either delete or move processed emails (configured under Post-processing) regardless of whether messages are set to read or not.
  10. Under Post-processing, enter the following:
    1. Monitored folder: Enter the path of the email folder you want Laserfiche Email Archive to monitor and retrieve emails from. (E.g., Inbox or Inbox\Contracts). Subfolders in the folder you specify here will also be monitored and their contents archived. By default, messages in subfolders of the monitored folder will be archived as well, but you can select Exclude subfolders to skip messages in subfolders.
    2. Note: Only one profile should be associated with each monitored folder. Running two profiles on the same folder may cause emails to be processed twice or not at all.

    3. Permanently delete messages once they are archived: Select this option to delete emails from the mail server after they've been archived to Laserfiche.
    4. Mail folder for messages archived to Laserfiche: If you chose not to delete archived emails, then specify a folder in your mailbox where emails will be sent after they are archived to Laserfiche. If the folder doesn't already exist, Laserfiche Email Archive will create it.
    5. Note: If you don't delete processed emails or specify a processing folder, emails will be repeatedly imported as there is no indication that they've already been processed.

    6. Mail folder for messages that encountered an error during retrieval: Specify a folder in your mailbox where emails will be sent if they encounter an error during archival. If the folder doesn't already exist, Laserfiche Email Archive will create it. If an error occurs, the Windows Event Viewer on the workstation where Laserfiche Email Archive is installed will include the details of the error.
  11. Under Repository information, you can update the repository in which Laserfiche Email Archive will save messages.
  12. For SMTP configurations only: Use the Import Rules tab to specify which emails to import to Laserfiche. You can configure rules to only import emails from specific email addresses, emails that have specific email subjects, and/or emails that were sent to specific email addresses. If you do not configure any rules, then all emails sent to the recipient email address for the Laserfiche Email Archive service will be imported.
  13. Use the Archived Messages tab to configure the message and attachment documents archived to your repository.
    1. Document properties: Provide a name and location for the archived emails. You can use tokens to customize the name and file path based on the email's properties. Learn more about tokens. Additionally, select the Laserfiche volume where the emails will be archived. Learn more about volumes.
    2. Tip: To use the volume assigned to the parent folder the email will be saved in, select Use parent folder's default volume. For example, if you configured a profile to archive email to a Laserfiche folder named Contracts, and this folder had been previously configured to use a default volume named Accounting, emails imported via this profile would be stored in the Accounting volume.

    3. Generate text settings: Select if you want to generate text from the email to make it searchable in the Laserfiche repository, and specify the number of lines of text on each page.
    4. Attachment handling: Select how attachments will be archived to Laserfiche. You can:
      • Include the attachments in the message document
      • Save attachments in a separate document
      • Save the attachments in the message document and save them as separate documents
      • Save the attachments as separate documents and discard the email message
    5. Optional: If you select to save attachments separately from email messages, there are several options to configure how attachments are saved.
      • Attachment name: Specify how attachments will be named when they are saved to the repository. Use tokens to construct unique names. This option is only available if you choose to save attachments as separate documents.
      • Save attachments with these file extensions: Specify the file extensions attachments can have for them to be archived to Laserfiche. Files with different extensions than the ones listed here will be ignored. Separate acceptable file extensions with commas. If you don't specify any file extensions here, all attachments (regardless of extension) will be saved.
      • Apply the Laserfiche metadata configured in the Templates & Fields tab to attachments: Select this option to apply the fields and values configured in the Templates & Fields tab to all attachments.
      • Ignore inline attachments: Select this option to ignore attachments that have been embedded in the body of an email message. Clear this option to save these attachments as separate documents.
      • Generate Laserfiche pages for PDF attachments: Enable Laserfiche Email Archive to generate Laserfiche pages for PDF attachments as they're saved to Laserfiche.
        • Keep original PDF files: Retain the PDF file after generating TIFF image pages. The import process will import the original unaltered PDF along with the TIFF image pages.
        • Preserve PDF annotations on Laserfiche pages: Convert PDF annotations to the equivalent Laserfiche annotations when generating TIFF image pages.
        • Import monochrome images: By default, the import process attempts to verify color information in an imported PDF to determine whether to generate image or monochrome images. Select this option to speed PDF importing and always create monochrome images,
        • Create pages at DPI: By default, Import Agent generates TIFF images that are 300x300 DPI. Select this checkbox to configure a different DPI value.
    6. Error handling: Configure how the mail will be processed if there are metadata errors or if a document with the same name already exists in the repository.
  14. Use Template and Fields and Tag tabs to configure the templates, fields, and tags that will be applied to archived emails. Using a multi-value token in a multi-value field will append each value to the field.
  15. Note: Dynamic fields are not supported in Import Agent.

  16. When you have finished configuring your profile, click OK.