update Updated January 2026 Free

Mail.ru SMTP Settings

Complete guide to configure Mail.ru SMTP for sending emails. One of the largest free email providers in Russia and CIS countries.

table_chart Quick Reference

Setting Value
SMTP Server smtp.mail.ru
Port (SSL) 465 Recommended
Port (TLS) 587
Username Your full Mail.ru email (user@mail.ru)
Password App Password (required)
Encryption SSL/TLS Required
Daily Limit ~300 emails/day
IMAP Server imap.mail.ru
info

Supported Email Domains

Mail.ru SMTP works with all Mail.ru Group domains: @mail.ru, @inbox.ru, @list.ru, @bk.ru. Use the same smtp.mail.ru server for all.

Step-by-Step Setup Guide

1

Create App Password

Mail.ru requires App Passwords for SMTP access:

  1. Go to account.mail.ru
  2. Navigate to Security โ†’ App Passwords
  3. Click 'Add' to create a new password
  4. Name it (e.g., 'My Application')
  5. Copy the generated 16-character password
warning

Important: You must use an App Password, not your regular account password!

2

Enable External Access

Make sure external client access is enabled:

  1. Go to Mail.ru mail settings
  2. Find 'External client access' or 'IMAP/SMTP'
  3. Enable access for external applications
3

Configure Your Application

Use these settings:

  • Server: smtp.mail.ru
  • Port: 465 (SSL) or 587 (TLS)
  • Username: Your full email address
  • Password: Your App Password (16 characters)

Code Examples

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

# Mail.ru SMTP settings
SMTP_HOST = "smtp.mail.ru"
SMTP_PORT = 465  # SSL
SMTP_USER = "your-email@mail.ru"
SMTP_PASS = "your-app-password"  # 16-char App Password

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

body = "This is a test email sent via Mail.ru SMTP."
msg.attach(MIMEText(body, 'plain', 'utf-8'))

# 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

Mail.ru requires an App Password for SMTP. Regular passwords will not work. Create an App Password in account.mail.ru settings.

Connection refused

Ensure external client access is enabled in your Mail.ru settings. Also check firewall settings for ports 465/587.

Encoding issues with Cyrillic

Make sure to use UTF-8 encoding for your emails. Set charset to UTF-8 in your email library configuration.

Frequently Asked Questions

What email domains work with Mail.ru SMTP?

All Mail.ru Group domains: @mail.ru, @inbox.ru, @list.ru, @bk.ru. They all use smtp.mail.ru server.

Is Mail.ru for Business available?

Yes, Mail.ru offers business email solutions with custom domains. Check biz.mail.ru for business features.

Why can I not use my regular password?

Mail.ru requires App Passwords for security. This protects your main account even if the app password is compromised.