Configuring Xeams with eM Client for Reading and Sending Emails

This page explains how to configure eM Client, a commercial email client, with Xeams to send and receive emails.

Prerequisites

  • You must have installed Xeams in either Stand-Alone or Hybrid mode.
  • Create at least one user account. Go to Server Configuration > Manage Users to create user accounts.
  • You must configure either POP3 or IMAP, or both, in Xeams. Click the "gear" icon for the POP3 or IMAP Server Status box on the home page to configure these servers.
  • Create an SSL certificate for your Xeams to ensure encrypted communication between Xeams and eM Client. Click Server Configuration > Manage SSL Certificate to create a free SSL certificate.

Assumption

This article makes the following assumptions about your environment.

  • You have enabled the IMAP server in Xeams, which listens on TCP/IP port 143 to fetch emails from your Inbox.
  • You have enabled port 587 under Server Configuration > SMTP Configuration to receive outbound emails.
  • STARTTLS is enabled, meaning you have configured Xeams to use an SSL certificate and have enabled STARTTLS for IMAP and SMTP.
  • You have a valid SSL certificate from Let's Encrypt.
  • The fully qualified hostname of your Xeams server is mail.myserver.com. Replace this with the actual value.
  • You're configuring a user that is identified by john.doe@mycompany.com. Replace this with the actual value.
  • You have configured the firewall at the edge of your network to allow Internet traffic to the machine running Xeams on the necessary ports.
  • You have downloaded and installed eM Client. Xeams works with every edition of eM Client (Free, Personal & Business).

Once configured, the Home page in Xeams should look like the screen below.

Configuration Steps

  • Open eM Client
  • Click the hamburger icon in the upper-left corner to open the pop-up menu, then click Accounts.
  • Click the Add Account button at the top.
  • There are two options for creating an account:
  1. Automatic Setup - in this case, enter your email address, and eM Client will try to determine the connection parameters. Refer to this page for more information on this method.
  2. Manual Setup - this method gives you more control when specifying the configuration parameters. The following steps assume you are using this method.
  • Select the "Mail" panel and click "Other", as shown below.
  • On the following page, specify your email address
  • Select either POP3 or IMAP
  • Enter the value for the Incoming server field. This is the hostname where Xeams is running.
  • Add a username (typically your email address) and a password for the user. Then, click the Next button.
  • Enter the SMTP values, which are similar to the previous screen.
  • The following screen will perform a connection test, confirming that the connection parameters work.

Some Cool Features

Here are some cool features to use with eM Client and Xeams.

Feature #1 - Get Notified When The Recipient Opens Your Email

When composing your email, add [rr] at the end of the subject. That's it! Now, when the recipient opens their email, you will be notified.

Refer to this page for details on how to enable this feature.

Feature #2 - Send A Confidential Message

You need to send a message and want to ensure that only the intended recipient can open it. There are multiple ways to do this when using eM Client with Xeams.

Method #1 - Using PGP
This method uses public/private keys. You share your public key so others can encrypt messages to you and verify your signatures, while you keep your password-protected private key to decrypt messages and sign your own. Refer to this page for details.

Method #2 - Use a password-protected PDF

Your private email is converted into a password-protected PDF file that only you and the recipient know. You must share the password using a channel other than email for security. Refer to this page for details.

Method #3 - The Recipient Must Authenticate
Your private email is held in a staging area until the recipient validates their authenticity; then it is revealed to them. The recipients can also reply to your message using a web interface. Refer to this page for details.

Feature #3 - Hide Your Real Address

Imagine you're in the market for a new car and are emailing multiple dealerships. You don't want to use your real address because you don't want to get spammed after you purchase your car. Therefore, you want to use an email like main-street-chevy@yourdomain.com instead of your real address.

You can do this by creating a temporary email in Xeams, which offers multiple options. Click here for instructions. Once done, you can compose emails in eM Client normally using your real address. Xeams will convert the email address before sending it to the dealership. The reverse happens when they reply. This temporary address can expire, so the address gets rejected in the future.

Troubleshooting Common Problems

You get a "Server not responding" Error
You get the following error in eM Client:

The "Fix" Button

eM Client includes a "Fix" button when the test fails. When pressed, this button tries to discover your server settings, as described here, which may override any custom settings you may have specified earlier.

This error suggests that eM Client cannot connect to Xeams. Consider the following factors that can contribute to this problem.

  • Xeams is down. Try connecting to the web interface to confirm it is running.
  • The fully qualified host name (FQDN) is incorrectly specified in eM Client.
  • The TCP/IP port for IMAP is configured to a different value than what you've configured in eM Client.
  • A firewall is blocking the communication between eM Client and Xeams. Typically, there are two firewalls: one on the machine running Xeams and another at the edge of your network.

Use the following steps to confirm if eM Client is connecting to your Xeams.

  • Log in as the administrator.
  • Click Tools > View Logs.
  • Select the IMAPConversation.log and click the Show Contents button.
  • You should see the actual communication between eM Client and Xeams in this log file. If not, that indicates a network problem preventing eM Client from connecting to Xeams.
eM Client complains about incorrect password
Consider the following reasons if eM Client keeps complaining about the password being incorrect.
  • The password is actually being typed incorrectly.
  • Xeams can lock a user's account if too many incorrect password attempts are detected. To release a locked account, log in as the administrator, click Server Configuration > Manager Alerts, and check whether any IP address is blocked under the Password Alerts section.
  • The Authentication Mechanism specified in eM Client is incorrect. Xeams supports "Normal password" and "Encrypted password" methods. Additionally, it will only accept the login after the connection is upgraded to use encryption. Therefore, confirm SSL is configured correctly in Xeams.

Tip #2

Xeams supports multiple authentication mechanisms, including AUTH PLAIN and CRAM-MD5. The eM Client application supports both mechanisms but prefers CRAM-MD5, which never sends the actual password over the network, making troubleshooting more difficult. Try disabling CRAM-MD5 temporarily to see what is being sent. Then, refer to the InvalidLoginAttempts.log file in Xeams to verify.

To disable CRAM-MD5, click Accounts from the upper left-hand menu, select the Diagnostics tab, and add --force-imap-auth PLAIN --force-smtp-auth PLAIN in the Parameters field, as shown below.