| Audience: DocuShare administrators |
Applies To
DocuShare 7.5, 7.6, 7.7, 8.0, and 8.1.
Overview
Use dsemailService to configure an outbound email server for DocuShare system messages, including subscription, workflow, and Lifecycle Manager email. When enabled, the Email Service configuration takes precedence over the base SMTP settings for these messages. This procedure does not configure inbound Email Agent mailbox retrieval.
Before You Begin
| Important: Schedule a maintenance window and stop DocuShare before running this utility. Back up the existing configuration first. The utility can create or change configuration files before the final confirmation, including on first-time setup. If setup is interrupted, canceled, or reports an error, review the configuration with Support before restarting. |
- With DocuShare stopped, securely back up the existing emailService.properties, DSCommon.properties, and Subscription.properties files from the DocuShare config directory, if present. Record which files did not exist. Keep backups outside the active configuration directory and follow your site's recovery procedures.
- Protect configuration files, backups, console sessions, and diagnostic output: they can contain sensitive account information or credentials. Do not send passwords or client secrets to Support.
- Obtain the mail server host, port, approved security and authentication method, and sender permissions from your email administrator. For encrypted connections, confirm the required certificates and trust settings. Select a transport that meets your organization's security requirements.
- For Microsoft 365 OAuth, confirm that your DocuShare version and patch level support the intended SMTP OAuth configuration. Work with your Microsoft 365 administrator and DocuShare Support to verify prerequisites, app registration, mailbox permissions, and the release-specific setup procedure.
Configure the Email Service
- Stop DocuShare using your site's normal stop procedure and confirm that it has stopped.
- Open a private administrative command prompt or shell on the DocuShare server. From the bin directory under the DocuShare installation, run dsemailService.bat on Windows or ./dsemailService.sh on Linux. Use an account authorized to administer the installation.
- Review the warnings and current settings. If enabling the service for the first time, confirm that you want to proceed. When prompted to update the configuration, select Yes.
- Select the SMTP type shown by your installation and enter the requested values. See Email Service Settings below. Follow the displayed menu; not every release offers the same options.
- Review the entered settings and confirm them when prompted. Inspect the complete utility output for errors; a success message or process exit code alone does not establish that every configuration file was updated. If there are errors or uncertainty, contact Support before restarting.
- Start DocuShare using your normal procedure, then perform the delivery tests below.
Email Service Settings
The prompts depend on the selected type. Press Enter to retain the displayed current value where offered. Confirm values with your email administrator before saving.
- SMTP Type: The 7.5 command-line guide lists 0 for SMTP-SSL (an SSL/TLS connection), 1 for SMTP-TLS (STARTTLS), and 2 for SMTP (unencrypted). Some installations also offer MS365 for Microsoft 365 SMTP OAuth. Select the value shown on your own system.
- SMTP Host and SMTP Port: Enter the mail server address and the port specified by your email administrator. The required port depends on the provider and connection type; do not assume the default is appropriate.
- SMTP Email Account and SMTP Email Password: Enter the credentials if the server requires them; otherwise leave them blank. To clear previously saved standard SMTP credentials, enter a space for the account and for both password prompts, then confirm. Pressing Enter instead retains an existing value.
- SMTP Sender: Select AGENT (0 in the 7.5 guide) to use the configured SMTP account as the sender. Select NO (1 in the guide) to allow the calling service's sender address; the SMTP account must have the necessary permission to send on behalf of those addresses. Follow the menu shown by your installation.
- SMTP Timeout and SMTP Connection Timeout: Enter values in milliseconds. In the current implementation, SMTP Timeout controls the socket read timeout; SMTP Connection Timeout limits connection establishment. Retain the existing values unless your email administrator recommends a change.
- MS365: If this choice is available and Support confirms it is appropriate, enter the Microsoft 365 SMTP host and port, client ID, client secret, tenant ID, and sender email address from the approved release-specific setup. The application and mailbox permissions must already be configured. Do not put secrets in command-line arguments.
| Important: SMTP is unencrypted. STARTTLS availability alone does not establish that every connection is encrypted. Verify the negotiated encryption and server policy with your email administrator; do not rely solely on the selected label. |
Verify Email Delivery
- Send a non-sensitive test notification or subscription message to an authorized recipient. Confirm delivery and check the sender address. Test other affected workflows as appropriate.
- If delivery fails, review the utility output and relevant DocuShare and mail-server logs. Check network access, host and port, authentication, certificates, encryption, and sender permissions with your email administrator. For Microsoft 365 OAuth, also check the client secret's validity, tenant settings, application permissions, and mailbox access.
DocuShare 8.1 release notes identify a display-only issue for SendGrid SMTP-TLS: the Subscription page can show SMTP although the configured type is SMTP-TLS. Verify the effective configuration and delivery rather than relying on that page alone.
Disable the Email Service Override
| Important: Disabling the override can interrupt outbound email or cause a non-encrypted configuration to be used. It does not necessarily restore the earlier SMTP host, port, or other settings. Confirm a working fallback and recovery plan with your email administrator and Support before proceeding. |
- Back up the current configuration securely, stop DocuShare, and confirm that it has stopped.
- From the DocuShare installation's bin directory, run dsemailService.bat disable on Windows or ./dsemailService.sh disable on Linux. Review the warning and confirm only if you intend to disable the override.
- Check the utility output for success or errors. In the current implementation, the active emailService.properties file is copied to emailService.properties.bak and then removed; an existing backup with that name can be replaced. Backup naming and behavior can vary by release.
- Verify the remaining outbound SMTP configuration and its security with your email administrator. Start DocuShare and repeat the delivery tests. If the operation fails or the fallback is uncertain, contact Support before restarting.
Related Information
DocuShare 7.5 Command Line Utilities Guide: see dsemailService in your product documentation.
Microsoft 365 SMTP OAuth and IMAP OAuth for DocuShare (service-impact advisory; not a full setup guide).
For assistance and release-specific guidance, contact DocuShare Customer Technical Support.
Comments
0 comments
Article is closed for comments.