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) |
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
Create Fastmail Account
- Go to fastmail.com and sign up
- Choose a plan (Individual, Duo, or Family)
- Create your email address or connect your domain
Create an App Password
For better security, create an app-specific password:
- Go to Settings โ Password & Security
- Scroll to 'App Passwords' section
- Click 'New App Password'
- Enter a name (e.g., 'SMTP Client')
- Select 'SMTP' access
- Copy the generated password
App passwords are shown only once. Save it securely!
Configure Your Application
- Server:
smtp.fastmail.com - Port:
587(TLS) or465(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:
- Go to Settings โ Domains
- Add your domain
- Configure MX, SPF, and DKIM records
- Verify domain ownership
- Create email addresses on your domain
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
Custom Domains
Use your own domain with full DNS management tools
No Ads
Ad-free experience with no email scanning for advertising
Calendar & Contacts
Integrated CalDAV calendar and CardDAV contacts
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.