update Updated January 2026 Free

Yandex Mail SMTP Settings

Complete guide to configure Yandex Mail SMTP for sending emails from your application. Free email service popular in Russia and CIS countries.

table_chart Quick Reference

Setting Value
SMTP Server smtp.yandex.ru
Port (SSL) 465 Recommended
Port (TLS) 587
Username Your full Yandex email (user@yandex.ru)
Password App Password (if 2FA enabled)
Encryption SSL/TLS Required
Daily Limit 500 emails/day
IMAP Server imap.yandex.ru
info

Yandex 360 for Business

For business use with custom domains, consider Yandex 360 for Business. It offers higher sending limits, custom domain email, and additional features.

Step-by-Step Setup Guide

1

Enable IMAP/SMTP Access

Go to Yandex Mail Settings:

  1. Open mail.yandex.ru and log in
  2. Click the gear icon โ†’ All Settings
  3. Go to 'Email clients' section
  4. Enable 'From the imap.yandex.ru server via IMAP'
2

Create App Password (if 2FA enabled)

If you have two-factor authentication enabled:

  1. Go to id.yandex.ru/security
  2. Find 'App passwords' section
  3. Click 'Create app password'
  4. Select 'Mail' as the app type
  5. Copy the generated password
warning

The App Password is shown only once. Save it securely!

3

Configure Your Application

Use these settings in your email client:

  • Server: smtp.yandex.ru
  • Port: 465 (SSL) or 587 (TLS)
  • Username: Your full email address
  • Password: App Password or regular password

Code Examples

import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart

# Yandex SMTP settings
SMTP_HOST = "smtp.yandex.ru"
SMTP_PORT = 465  # SSL
SMTP_USER = "your-email@yandex.ru"
SMTP_PASS = "your-app-password"

# Create message
msg = MIMEMultipart()
msg['From'] = SMTP_USER
msg['To'] = "recipient@example.com"
msg['Subject'] = "Test Email via Yandex"

body = "This is a test email sent via Yandex SMTP."
msg.attach(MIMEText(body, 'plain'))

# Send email using SSL
with smtplib.SMTP_SSL(SMTP_HOST, SMTP_PORT) as server:
    server.login(SMTP_USER, SMTP_PASS)
    server.send_message(msg)
    print("Email sent successfully!")

Troubleshooting

Authentication failed

If you have 2FA enabled, use an App Password instead of your regular password. Create one at id.yandex.ru/security.

Connection refused

Make sure IMAP/SMTP access is enabled in Yandex Mail settings. Also check that your firewall allows connections to port 465 or 587.

Daily limit reached

Free Yandex accounts can send up to 500 emails per day. Wait 24 hours for the limit to reset or upgrade to Yandex 360.

Frequently Asked Questions

Can I use my own domain with Yandex?

Yes, Yandex 360 for Business allows custom domains. You'll need to verify domain ownership and configure DNS records.

What is the difference between yandex.ru and yandex.com?

Both domains work for email. Use smtp.yandex.ru regardless of whether your email is @yandex.ru or @yandex.com.

Is Yandex Mail free?

Yes, personal Yandex Mail is free with unlimited storage. Yandex 360 for Business offers additional features for a monthly fee.