# Connect Yahoo Mail and AOL

> Connect Yahoo Mail and AOL Mail with an app password over IMAP and SMTP.

Source: https://docs.posternmail.app/providers/yahoo/

Yahoo Mail and AOL Mail connect over IMAP and SMTP with an **app password**, a separate
password that Yahoo or AOL creates for apps like Postern. Postern has no Yahoo or AOL sign-in
page; your normal password does not work.

The Hub recognizes these addresses:

| Provider | Addresses |
|---|---|
| Yahoo Mail | `yahoo.com` and the country domains (`yahoo.de`, `yahoo.co.uk`, ...), `ymail.com`, `rocketmail.com` |
| AOL Mail | `aol.com`, `aim.com` |

Yahoo! JAPAN (`yahoo.co.jp`) is a separate service; the Hub looks its settings up like any
other provider (see [Any IMAP server](https://docs.posternmail.app/providers/imap/)).

## What you need

- Your Yahoo or AOL address and access to its account security page.
- For some accounts, two-step verification has to be on before app passwords appear.

## 1. Create an app password

1. Open the app password page directly:
   - Yahoo: <https://login.yahoo.com/account/security/app-passwords>
   - AOL: <https://login.aol.com/account/security/app-passwords>

   Or sign in, open **Account Info → Account Security** and click **Generate app password**
   (on some accounts: **Generate and manage app passwords**).
2. Enter a name such as `Postern` and click **Generate password**.
3. Copy the password (16 letters) and click **Done**. Yahoo and AOL show it only once.

Yahoo's help: <https://help.yahoo.com/kb/SLN15241.html>. AOL's help:
<https://help.aol.com/articles/Create-and-manage-app-password>.

> **Check:** the app password page lists `Postern`.

> **If it did not work:** if there is no **Generate app password** link, turn on two-step
> verification on the same **Account Security** page first.

## 2. Add the mailbox

1. **Settings → Mailboxes → Add mailbox**, pick **Other**, type your address and click
   **Continue**.
2. The dialog goes straight to the password form, with the note "Yahoo Mail needs an app
   password: open Account Security in your Yahoo account and generate an app password." (AOL:
   the same with "AOL"). **Create an app password** opens the page from step 1.
3. Paste the app password into **App password**, optionally fill **Your name on outgoing mail**
   and click **Connect**.

> **Check:** the dialog shows **you@yahoo.com is connected**, and **Settings → Mailboxes** shows
> the mailbox downloading mail.

> **If it did not work:** see [Troubleshooting](https://docs.posternmail.app/providers/yahoo/#troubleshooting).

## Server settings

The Hub fills these in. The username is your full address.

| | Yahoo | AOL | Port | Security |
|---|---|---|---|---|
| Incoming (IMAP) | `imap.mail.yahoo.com` | `imap.aol.com` | 993 | TLS |
| Outgoing (SMTP) | `smtp.mail.yahoo.com` | `smtp.aol.com` | 465 | TLS |

## What the Hub does with Yahoo and AOL

- **Sync** over IMAP. Inbox, Sent, Draft, Archive, Trash and Bulk Mail (spam) are recognized by
  their special-use flags or names.
- **New mail** arrives at once through IMAP IDLE on the inbox. All folders are checked every
  2 minutes.
- **Sending** goes through SMTP. The Hub then saves a copy in your Sent folder.
- **Tags** are saved as IMAP keywords where the server allows them.
- **Devices.** The desktop and mobile apps connect to Yahoo or AOL directly with the same app
  password, which the Hub hands them.

In **Settings → Mailboxes**, AOL mailboxes are labelled **Yahoo**; the add dialog itself says
**AOL Mail**.

## Limits

- Yahoo and AOL limit how many connections one account may open at a time. The Hub and each
  desktop or mobile app that syncs the mailbox each use their own connections. If the mailbox
  shows **The mail server at imap.mail.yahoo.com is limiting how fast this mailbox can sync**
  under **Technical details**, that is the cause; it settles by itself.
- Sending limits per day are Yahoo's and AOL's own.

## Troubleshooting

| Symptom | Cause | Fix |
|---|---|---|
| **The sign-in was rejected.** | You used your normal password, or the app password was deleted. | Create a new app password and paste it. |
| The mailbox shows **The sign-in no longer works** | You changed your password or deleted the app password. | Create a new app password and **Reconnect**. |
| **The mail server didn't answer.** | The Hub cannot reach Yahoo's or AOL's servers. | Check the Hub's internet access and that outgoing ports 993 and 465 are open. |
| **Having trouble getting new mail**, and **Technical details** says the mail server is limiting how fast this mailbox can sync | Too many open connections to the account. | Close other mail apps that use the account, or wait; the Hub retries. |

To disconnect, remove the mailbox in Postern and delete the app password on the account
security page.
