Email Client Setup
This guide covers configuring standard email clients to work with Inboxlayer inboxes via IMAP and SMTP.
Before you start
You need:
- An Inboxlayer inbox (e.g.
myinbox@inboxlayer.dev) - An API token from Account Settings > API Keys
Connection summary
Incoming Mail (IMAP):
Server: imap.inboxlayer.dev
Port: 993
Encryption: SSL/TLS
Username: inbox_name@inboxlayer.dev
Password: <your_api_token>
Outgoing Mail (SMTP):
Server: smtp.inboxlayer.dev
Port: 587
Encryption: STARTTLS
Username: inbox_name@inboxlayer.dev
Password: <your_api_token>
If you have a verified custom domain, use inbox_name@yourdomain.com as the username instead.
Apple Mail
- Open Mail > Settings > Accounts.
- Click + and choose Other Mail Account.
- Enter your inbox email and API token as the password.
- When prompted for manual setup, enter the IMAP and SMTP settings above.
- Set authentication to Password for both incoming and outgoing.
Thunderbird
- Open Account Settings > Account Actions > Add Mail Account.
- Enter your inbox email and API token as the password.
- Click Configure manually.
- Set incoming to IMAP,
imap.inboxlayer.dev, port 993, SSL/TLS. - Set outgoing to SMTP,
smtp.inboxlayer.dev, port 587, STARTTLS. - Set authentication to Normal password for both.
- Click Done.
Outlook (Desktop)
- Go to File > Add Account.
- Enter your inbox email and select Advanced options > Let me set up my account manually.
- Choose IMAP.
- Enter the IMAP and SMTP settings above.
- Use the API token as the password for both.
Programmatic clients
Any library or tool that supports standard IMAP/SMTP works with Inboxlayer. Examples:
Python (smtplib)
import smtplib
from email.message import EmailMessage
msg = EmailMessage()
msg["From"] = "myinbox@inboxlayer.dev"
msg["To"] = "recipient@example.com"
msg["Subject"] = "Hello"
msg.set_content("Message body")
with smtplib.SMTP("smtp.inboxlayer.dev", 587) as server:
server.starttls()
server.login("myinbox@inboxlayer.dev", "your_api_token")
server.send_message(msg)
Python (imaplib)
import imaplib
imap = imaplib.IMAP4_SSL("imap.inboxlayer.dev", 993)
imap.login("myinbox@inboxlayer.dev", "your_api_token")
imap.select("INBOX")
status, messages = imap.search(None, "ALL")
for num in messages[0].split():
status, data = imap.fetch(num, "(RFC822)")
print(data[0][1].decode())
imap.logout()
Ruby (Net::SMTP)
require "net/smtp"
Net::SMTP.start("smtp.inboxlayer.dev", 587, starttls: true) do |smtp|
smtp.authenticate("myinbox@inboxlayer.dev", "your_api_token")
smtp.send_message(message, "myinbox@inboxlayer.dev", "recipient@example.com")
end
Troubleshooting
- Authentication failed: Verify you are using an API token, not your account password.
- Connection timeout on port 465: Try port 587 with STARTTLS instead. Some networks block 465.
- Certificate errors: Ensure your client trusts Let's Encrypt certificates. Most modern clients do by default.
- Messages not appearing: New messages appear in IMAP within seconds. If delayed, check your inbox in the web UI to confirm delivery.