mailintel
Y
consumeryahooapp password

Yahoo Mail IMAP and SMTP settings

Yahoo Mail, plus the legacy ymail.com and rocketmail.com addresses, all use Yahoo's mail hosts.

Connection
IMAP host
imap.mail.yahoo.com

port 993 · SSL/TLS

SMTP host
smtp.mail.yahoo.com

port 465 · SSL/TLS

Username

your full email address
password: app-specific
Setup

Connect in three steps

  1. 1

    Enable 2-Step Verification on your Yahoo account.

  2. 2

    Generate an app password under Account Security → Generate app password.

  3. 3

    Use the full address as the username and the app password as the password.

Watch out

What usually breaks

  • Yahoo requires an app password for third-party mail clients; the account password will be rejected.

  • Yahoo has been retiring password-based access for some account tiers — check the current policy in account settings.

Detect it

Resolve it instead of hardcoding it

A custom domain on Yahoo Mail has the same MX infrastructure as the consumer product. That is what mailintel reads.

yahoo.ts
import { mailintel } from "mailintel";

const result = await mailintel("[email protected]");

result.provider;              // "yahoo"
result.connection.imap;       // { host: "imap.mail.yahoo.com", port: 993, security: "tls" }
result.connection.smtp;       // { host: "smtp.mail.yahoo.com", port: 465, security: "tls" }
result.connection.username;   // "[email protected]"
FAQ
What is Yahoo Mail's IMAP server?+

imap.mail.yahoo.com on port 993 using SSL/TLS. The username is the full email address, and an app password is required when two-factor authentication is enabled.

What is Yahoo Mail's SMTP server?+

smtp.mail.yahoo.com on port 465 using SSL/TLS. Most clients also accept the alternate submission port with STARTTLS.

Does Yahoo Mail need an app password?+

Yes, in practice. Yahoo Mail rejects normal account passwords for IMAP and SMTP once 2FA is on, so generate an app-specific password.