# Connecting Yahoo! Mail to Swarmica
# Connecting Yahoo! Mail to Swarmica via IMAP

:::danger
After connecting Yahoo! Mail, all messages marked as "Unread" may be imported into Swarmica as tickets. If there are more than 100 such messages, this can overload the system!
:::

<br />

1\. In Swarmica, open **Settings - Channels** and click **Email**.

2\. Click <img height="43" width="100" src="https://support.swarmica.com/attachments/T/r/TrT8ATLlLoqAgiAj_a/yahoo-setup-en-missing-1.png" /> in the upper-right corner.

3\. A window with the main settings will open:

<img height="254" width="762" src="https://support.swarmica.com/attachments/b/B/bBml8n5nYgauF9KA_a/yahoo-setup-en-missing-2.png" />

**Name** — any name for your email channel.

**Recipient** — the email address where you receive messages.

**Sender** — the address from which you will reply to messages.

The incoming and outgoing addresses may be different. For example, you may receive mail in several mailboxes but send all replies from one address.

After entering the main settings, click <img height="37" width="100" alt="&quot;Save&quot;" src="https://support.swarmica.com/attachments/Q/x/QxVV9AMluu6W_G_x_a/yahoo-setup-en-missing-3.png" />.

4\. The email settings page will open.

## Filling in the settings in Swarmica

### Incoming mail settings

1.  **Name** — any name for your email channel.
2.  **Sender name** — the name displayed to recipients, for example, "Support team" and your company name.
3.  **Recipient** — the email address where you receive messages.
4.  **Incoming mail server**: [imap.mail.yahoo.com](https://imap.mail.yahoo.com).
5.  **IMAP server port**: 993.
6.  **Encryption:** SSL.
7.  **Username** — usually your email address.
8.  **Password** — an app password is required. The steps to create one are described below.
9.  **Folder** — the name of the folder on the IMAP server, if you want Swarmica to receive mail only from a specific folder.
10. **"Check connection"** — click this after entering the settings to verify that they are correct. If you see an error, check the values again.

### Outgoing mail settings

You can send mail through Yahoo! Mail or through your own SMTP Relay server. To use SMTP Relay, enable the **Use system SMTP server** switch:

<img height="600" width="766" src="https://support.swarmica.com/attachments/t/I/tItkLgdk3y_qO2m6_a/yahoo-setup-en-9.png" />

Below are the settings for sending mail through Yahoo! Mail.

<img height="229" width="380" src="https://support.swarmica.com/attachments/X/r/XrVTh5fc1FpHqBcb_a/yahoo-setup-en-7.png" />

1.  **Sender** — the address from which you will reply to messages.
2.  **Outgoing mail server**: [smtp.mail.yahoo.com](https://smtp.mail.yahoo.com).
3.  **SMTP server port**: 465.
4.  **Encryption**: SSL.
5.  **Username** — usually your email address.
6.  **Password** — an app password is required. The steps to create one are described below.
7.  **Timeout** — the interval in seconds between outgoing messages. It helps avoid sending many messages at the same time and reduces the risk of being treated as spam.
8.  **"Check connection"** — click this after entering the settings to verify that they are correct. If you see an error, check the values again.

### Other settings

<img height="306" width="736" src="https://support.swarmica.com/attachments/6/7/67MHv3dXk6IONoJs_a/yahoo-setup-en-11.png" />

1.  **Allow ticket creation** — enable this to create tickets in Swarmica from incoming mail.
2.  **Preserve quoting** — preserve the conversation when forwarding messages. When disabled, the forwarded message contains only the accompanying text; when enabled, it contains the full conversation.
3.  **Allow new users in CC** — allow any email address to be added to the CC field of email tickets. This setting helps protect against spammers who use ticket creation to send mailings.
4.  **Same domain in CC** — allow only addresses from the domain in the ticket creator's email address to be added to CC. This is a simplified protection against the spam scenario described above.
5.  **Use by default** — enable this so replies are always sent from the specified sender address.
6.  **Enabled** — activates the email channel in Swarmica.

After completing and checking the settings, remember to save them.

# Creating an app password in Yahoo! Mail

1\. Sign in to your Yahoo! Mail account. Click your account name in the upper-right corner and choose **Account info**.

<img height="236" width="708" src="https://support.swarmica.com/attachments/_/3/_3aPmCvhrQMVv4fJ_a/yahoo-setup-en-2.png" />

2\. Open the **Security** tab, scroll down, and click **Generate app password**.

3\. Enter the name of your app — Swarmica.

<img height="625" width="710" src="https://support.swarmica.com/attachments/H/x/Hx5PwySiNsFGKKXI_a/yahoo-setup-en-4.png" />

4\. Copy the generated password.

5\. Return to the Swarmica email settings and paste the copied app password into both password fields:

<img height="332" width="332" src="https://support.swarmica.com/attachments/O/y/OyH6A3ygm-lkj8_s_a/yahoo-setup-en-8.png" />

Check both connections. If an error occurs, verify the settings again.

Click **Save**. Yahoo! Mail is connected.