Creating and Configuring Email Addresses for Document Import
When you use on-premises OCR, you must create and configure email addresses for each relevant document category in order to import your documents into Continia Document Capture. Document Capture currently supports the following two protocols:
- Internet Message Access Protocol (IMAP)
- Exchange Web Services (EWS)
The actual configuration of email addresses depends on which of these protocols you use. Both methods are described below.
Warning
It's very important to note that:
- Only unread emails are processed.
- You must not use a user-accessible mailbox.
- You should uninstall or deactivate any other software that processes emails in any way.
Configuring email addresses using IMAP
To configure an email address for document import using IMAP, follow these steps:
- Choose the icon, enter Document Categories, and then choose the related link.
- Open the document category that you want to set up with the Document Capture service. For example, to open the purchase document category, select the PURCHASE line (not the PURCHASE code itself), and then choose Edit in the action bar.
- On the E-Mail FastTab, in the Server Address field, enter the name or IP address of the mail server you want to use.
- In Server Port, enter the number of the port through which the connection to the mail server should be established. The IMAP port is usually 993 with an SSL connection and 143 without SSL.
- In Username, enter the email address of the account that should be used for the selected document category – for example, invoice@company.com. This will link it to the Document Capture email address for this category.
- In Password, enter the password that's associated with the email address entered under Username.
- Optional: If you want to have incoming documents automatically deleted from the mail server upon download, enable Delete After Download.
- Optional: If you want Document Capture to archive all document-import emails including their attached documents, enable Import and Archive E-Mails. In this way, accountants, auditors, and other users of Document Capture have direct access to the emails.
- Repeat the above steps for any additional categories that you want to set up with the Document Capture service.
- When you've set up all categories, choose the icon, enter Export OCR Configuration Files, and then choose the related link. A dialog box confirms that a number of configuration files have been exported. Select OK to close it.
Configuring email addresses using EWS
Important
Before you can complete the guide below, you must set up EWS following this guide. During the EWS setup process, you'll obtain a client ID, a tenant ID, and either a certificate thumbprint or a client secret value, which must be used when you configure EWS email addresses for document import.
To configure an email address for document import using EWS, follow these steps:
- Choose the icon, enter Document Categories, and then choose the related link.
- Open the document category that you want to set up with the Document Capture service. For example, to open the purchase document category, select the PURCHASE line (not the PURCHASE code itself), and then choose Edit in the action bar.
- On the E-Mail FastTab, under E-Mail Protocol, select EWS.
- In E-Mail Address or Shared Email Address, enter the full address of the mailbox you want the service to scan.
- In Client ID and Tenant ID, enter the values you copied from the Overview pane in Azure, as described in this guide.
- Fill out either Client Secret or Certificate Thumbprint, depending on your choice of credentials.
- Optional: If you want to have incoming documents automatically deleted from the mail server upon download, enable Delete After Download.
- Optional: If you want Document Capture to archive all document-import emails including their attached documents, enable Import and Archive E-Mails. In this way, accountants, auditors, and other users of Document Capture have direct access to the emails.
- Repeat the above steps for any additional categories that you want to set up with the Document Capture service.
- When you've set up all categories, choose the icon, enter Export OCR Configuration Files, and then choose the related link. A dialog box confirms that a number of configuration files have been exported. Select OK to close it.
The Document Capture service is now set up to authenticate with EWS using OAuth 2.0. If authentication fails, an entry is created in the server application event log with information about the cause of the authentication error.