TrekMail TrekMail

Bring Your Own SMTP (Custom SMTP)

This guide explains How to connect SES, SendGrid, Mailgun, or other SMTP providers. so you can complete the TrekMail task with confidence.

Article details

Type, difficulty, plans, and last updated info.

Type
Reference
Difficulty
Intermediate
Plans
Starter · Pro · Agency
Last updated
Dec 14, 2025

TrekMail allows you to use your own SMTP provider (like Amazon SES, SendGrid, or Mailgun) to handle outbound mail. This gives you complete control over your sending reputation and limits.

Who this is for

  • Free Plan Users: This is required to send outbound mail.
  • High Volume Senders: If you need to send millions of emails cheaper than our plans allow.
  • Developers: connecting to specific delivery pipelines.

How it works

This setting tells TrekMail: "When I send an email from Webmail or via the TrekMail API, relay it through this external server."

  • Webmail: Uses these credentials to send.
  • Desktop Clients (Outlook): You should usually enter your provider's SMTP settings directly into Outlook, bypassing TrekMail entirely for outbound efficiency.

Configuration Steps

  1. Go to Sending & SMTP in the sidebar.
  2. Select Bring Your Own SMTP.
  3. Enter the details from your provider:
    • Hostname: (e.g., email-smtp.us-east-1.amazonaws.com)
    • Port: (usually 587 for TLS)
    • Username: (API User / SMTP User)
    • Password: (API Key / SMTP Password)
  4. Click Save Configuration.

Provider Examples

Amazon SES

  • Host: email-smtp.[region].amazonaws.com
  • Port: 587 (STARTTLS)
  • Username: SES SMTP Username (Not the IAM User Access Key)
  • Password: SES SMTP Password (Not the IAM Secret Key)

SendGrid

  • Host: smtp.sendgrid.net
  • Port: 587
  • Username: apikey (Literally the string "apikey")
  • Password: Your actual SendGrid API Key starting with SG...

Mailgun

  • Host: smtp.mailgun.org
  • Port: 587
  • Username: postmaster@your-domain.com
  • Password: The SMTP password found in Domain Settings.

Common mistakes

  • Symptom: "Connection Refused".
    • Cause: Using port 25 (often blocked). Use 587.
  • Symptom: "Auth Failed" with AWS SES.
    • Cause: Using the IAM User Access Key instead of the SMTP credentials generated in the SES console. They are different.

See also

Related articles

Jump to nearby guides that continue the workflow.

We use cookies for essential functionality. No ads, no tracking pixels.

Welcome to TrekMail

Continue with Google
Or continue with email
Continue with Google
Or register with email

Reset email sent

If an account exists for this email, we've sent password reset instructions.

By continuing, you agree to TrekMail's Terms and Privacy Policy.