#430: Connecting Yandex Email
Отредактирована: сегодняConnecting Yandex Email via IMAP
After connecting, all emails with the "Unread" status will enter Swarmica in the format of requests. If there are more than 100 of them, it can overload the system!
-
Go to Swarmica to the Settings - Channels section, click Email.
-
In the upper right corner, click

-
A window will open to fill in the main data:

Title - an arbitrary name for your email channel.
Recipient - the email address to which you receive mail.
Sender - the address from which you will respond to emails.
The incoming and outgoing addresses may differ if, for example, you have several email addresses, but you send responses to all emails from all boxes only from one address.
After filling in the main data, click 
- The email settings page will open.
Filling out settings in Swarmica
Incoming mail settings

- Title - an arbitrary name for your email channel.
- Sender's name - the sender's name displayed to recipients. For example, "Support service" and the name of your company.
- Recipient: the email address to which you receive mail.
- Receiving server: imap.yandex.ru.
- Port of the IMAP server: 993.
- Encryption: SSL.
- User - in most cases, it is equal to your email address.
- Password - an application password is required. We will tell you how to get it below.
- Folder - the name of the folder on your server IMAP mail, if you want to receive not all incoming mail in Swarmica, but only from a certain folder.
- "Check connection" - be sure to click after entering the settings above to make sure that the settings are correct. If you see an error, double-check the data entered.
Outgoing mail settings
You can set up sending from your Yandex mailbox, and you can send mail from your own SMTP Relay server. To send by SMTP Relay, enable the runner "Use system SMTP server":

About SMTP Relay settings, you can read here.
Below we will talk about filling out Yandex sending settings.

- Sender - the address from which you will respond to emails.
- Sending server: smtp.yandex.ru.
- Port of the SMTP server: 465.
- Encryption: SSL.
- User - in most cases, it is equal to your email address.
- Password - an application password is required. We will tell you how to get it below.
- Timeout - an artificial time interval in seconds between sent emails, so as not to send many emails at the same time and reduce the likelihood of being suspected of spam.
- "Check connection" - be sure to click after entering the settings above to make sure that the settings are correct. If you see an error, double-check the data entered.
Other settings

- Allow creating requests - enable to transfer requests to Swarmica.
- Save quoting - save the correspondence when forwarding. With the disabled option, the forwarding will contain only the сопроводительный text. With the enabled option - all correspondence.
- Allow new users in CC - allow any addresses to be put in the copy of the email request. The setting is enabled to protect against spammers who use the request creation function to spam using the copy field function.
- Same domain in CC - allows you to put addresses belonging only to the domain of the email address of the request creator in the copy of the letter. This is an облегченный version of protection against spammers described in the previous paragraph. It will allow you to add colleagues from the client's company, but will not allow you to add чужим addresses.
- Use by default - enable so that responses are always sent from the specified sending address.
- Enabled - allows you to activate the email channel in Swarmica.
After completing and checking the settings, do not forget to save them.
Activating the IMAP protocol on the mail side and obtaining an application password
- Go to your Yandex mail, click on the gear in the upper right corner and select "All settings":

- On the opened page, select "Mail programs" in the side menu, and then tick:
- From the server imap.yandex.ru via the IMAP protocol
- Application passwords and OAuth tokens

- In the side menu, go to the "Security" section and select "Application passwords":

- On the opened page, select "Mail":

- Come up with a password name, for example, "Swarmica":

- Click on the copy button to the right of the password to copy it:

- Go to Swarmica to the settings of your mail and paste the copied password into the two fields "Password" on the incoming and outgoing mail settings side:

Check both connections. If errors occur, double-check the settings entered.
Click "Save". The mail is connected.