update Updated January 2026 Premium

Fastmail SMTP Settings

Complete guide to configure Fastmail SMTP for sending emails. Fastmail is a premium email service known for privacy, speed, and excellent custom domain support.

table_chart Quick Reference

Setting Value
SMTP Server smtp.fastmail.com
Port (TLS/STARTTLS) 587 Recommended
Port (SSL) 465
Username Your full Fastmail email address
Password App Password recommended
Encryption TLS/SSL Required
IMAP Server imap.fastmail.com
Pricing From $3/month (Individual plan)
info

Privacy-Focused Email

Fastmail is based in Australia with servers in the US and Australia. They don't show ads or scan your email for advertising purposes.

Step-by-Step Setup Guide

1

Create Fastmail Account

  1. Go to fastmail.com and sign up
  2. Choose a plan (Individual, Duo, or Family)
  3. Create your email address or connect your domain
2

Create an App Password

For better security, create an app-specific password:

  1. Go to Settings โ†’ Password & Security
  2. Scroll to 'App Passwords' section
  3. Click 'New App Password'
  4. Enter a name (e.g., 'SMTP Client')
  5. Select 'SMTP' access
  6. Copy the generated password
warning

App passwords are shown only once. Save it securely!

3

Configure Your Application

  • Server: smtp.fastmail.com
  • Port: 587 (TLS) or 465 (SSL)
  • Username: Your full email address
  • Password: Your App Password

Using Custom Domains

Fastmail supports custom domains on all plans. To send from your domain:

  1. Go to Settings โ†’ Domains
  2. Add your domain
  3. Configure MX, SPF, and DKIM records
  4. Verify domain ownership
  5. Create email addresses on your domain
lightbulb

Fastmail provides a setup wizard that guides you through DNS configuration for your domain.

Code Examples

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

# Fastmail SMTP settings
SMTP_HOST = "smtp.fastmail.com"
SMTP_PORT = 587
SMTP_USER = "you@fastmail.com"  # or your custom domain
APP_PASSWORD = "your-app-password"

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

body = "This is a test email sent via Fastmail SMTP."
msg.attach(MIMEText(body, 'plain'))

# Send email
with smtplib.SMTP(SMTP_HOST, SMTP_PORT) as server:
    server.starttls()
    server.login(SMTP_USER, APP_PASSWORD)
    server.send_message(msg)
    print("Email sent successfully!")

Fastmail Features

check_circle

Custom Domains

Use your own domain with full DNS management tools

check_circle

No Ads

Ad-free experience with no email scanning for advertising

check_circle

Calendar & Contacts

Integrated CalDAV calendar and CardDAV contacts

check_circle

Masked Email

Create unique email addresses for different services (with 1Password integration)

Troubleshooting

Authentication failed

Create an App Password instead of using your account password. Go to Settings โ†’ Password & Security โ†’ App Passwords.

Cannot send from custom domain

Ensure your domain is properly verified and SPF/DKIM records are configured. Check Settings โ†’ Domains for verification status.

Connection timeout

Check that your firewall allows connections to port 587 or 465. Try both ports if one doesn't work.

Frequently Asked Questions

What are Fastmail's sending limits?

Fastmail allows up to 300 recipients per message and has daily sending limits based on your plan. Contact support for exact limits.

Can I migrate from another email provider?

Yes, Fastmail offers IMAP migration tools to import emails from Gmail, Outlook, and other providers.

Does Fastmail support aliases?

Yes, you can create multiple aliases and send from any of them via SMTP. Aliases are included in all plans.