◈ Mail → Excel

Export Any IMAP server emails to Excel

By the Mail → Excel team · Updated 2026-10-20

Connection settings, credentials and the limits that break exports — for Any IMAP server.

Connection settings

SettingValue
IMAP hostimap.example.com
Port993
EncryptionSSL/TLS
Accessread-only

Credentials

  1. 1. Get host, port and credentials from your provider or IT
  2. 2. Confirm SSL/TLS is supported
  3. 3. Test with one folder before a full run

Limits to expect

Export command

python mail_to_excel.py --host imap.example.com --port 993 --user you@example.com --days 31 --out mail.xlsx

Next step

The universal IMAP guide · Exports by role · Ready script ($3)

FAQ

How do I find the IMAP host?

Check the provider’s help page; it is usually imap.<domain>.

The connection times out

Try port 143 with STARTTLS, or ask IT whether IMAP is enabled.

Related guides