Skip to content

Mail Forwarding

Emakin channels can accept email messages and automatically create new cases for each incoming email. Emakin also tracks the email thread and if any case is open previously, an incoming new email is automatically linked to the previously opened case.

E-Mail options dialog can be displayed from channel options by selecting ā€œEditā€ from the channel menu.

Emakin channels always define a default email address that can be used in forwarding. In addition to the default mail address, other custom email addresses can also be used.

In this example;
The ā€œ[email protected]ā€ address is automatically generated and can be used to be forwarded email address.

The ā€œ[email protected]ā€ address is custom defined address and can be used in outgoing emails. Custom mail addresses are optional.

Integrating the emails to channels depends on your email server configuration from ā€œEmail forwardingā€ section.

Registering DNS MX Record

To forward emails from a new MX record must be added to your DNS configuration. If you host your mail server internally internal MX record is enough.

  1. Open your DNS management panel

  2. Add a new record for emakin forwarded addresses. For example if you configured the ā€œIncoming Mail (SMTP) Domainā€œ as ā€œsmtp.emakin.comā€ a new record must be created with ā€œsmtpā€ under ā€œemakin.comā€ domain.

  3. Enter emakin application hostname to new entry.

  4. Select type as ā€œMXā€

  5. Save your configuration

Checking Configuration

Before forwarding emails to Emakin channels, it is recommended to check your email server configuration.

First, check if your email server is listening on SMTP ports like 25, 465 and 587.

Checking Connection

1
curl -vvvk smtp://localhost:587

If the configuration is correct, you should see some output like below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
* Host localhost:587 was resolved.
* IPv4: 127.0.0.1
*   Trying 127.0.0.1:587...
* Connected to localhost (127.0.0.1) port 587
< 220 localhost v11.0.0.0 ESMTP ready
> EHLO MyServer
< 250-localhost Hello MyServer, haven't we met before?
< 250-PIPELINING
< 250-8BITMIME
< 250-SMTPUTF8
< 250-STARTTLS
< 250 AUTH PLAIN LOGIN
> HELP
< 502 Unrecognized command, 4 retry(ies) remaining.
* Command failed: 502
> QUIT
< 221 bye
* Closing connection
curl: (8) Command failed: 502

This is ensuring the Emakin agent is accepting the incoming emails.

Sending a Test Email

You may send a test email to check if the email server is configured correctly. Please remember to change the mail-rcpt argument to your channel email address, otherwise the mail will be rejected because the channel is not existing.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
curl -k -vvv --ssl \
  --url 'smtp://localhost:587' \
  --mail-from '[email protected]' \
  --mail-rcpt '[email protected]' \
  --upload-file - <<'EOF'
From: [email protected]
To: [email protected]
Subject: Test mail

Hello,
This mail is a test mail.
EOF

Forwarding e-Mails from Google GMail Configuration

Configuration Steps

  1. Open the ā€œadmin.google.comā€ panel

  2. Choose ā€œGMailā€ under the ā€œGoogle Workspaceā€ navigation menu.

  1. Open the ā€œRoutingā€ section bottom of the list.

  2. Find the ā€œEmail forwarding using recipient address mapā€ option in routing options.

  3. Click on ā€œADD RULEā€

  4. Enter a description like ā€œemakin forwardsā€ for the rule.

  5. Enter the mapped address as ā€œ[email protected]ā€ and map to ā€œ[email protected]ā€

  1. You may add additional channel email addresses as long as needed in this list.

  2. Select ā€œAll incoming messagesā€

  3. Click to ā€œSaveā€

After the configuration steps are completed, Google Gmail services now begin to forward any incoming mail to emakin channels.