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 |
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
Enable IMAP/SMTP Access
Go to Yandex Mail Settings:
- Open mail.yandex.ru and log in
- Click the gear icon โ All Settings
- Go to 'Email clients' section
- Enable 'From the imap.yandex.ru server via IMAP'
Create App Password (if 2FA enabled)
If you have two-factor authentication enabled:
- Go to id.yandex.ru/security
- Find 'App passwords' section
- Click 'Create app password'
- Select 'Mail' as the app type
- Copy the generated password
The App Password is shown only once. Save it securely!
Configure Your Application
Use these settings in your email client:
- Server:
smtp.yandex.ru - Port:
465(SSL) or587(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.