Configuring IMAP Provider Connections in Aurinko
This guide explains how to configure Aurinko to work with IMAP email accounts, including provider credentials, server settings, synchronization, sending emails, and troubleshooting.
What is IMAP?
IMAP (Internet Message Access Protocol) is a standard email protocol that allows email clients and applications to access and manage messages stored on a mail server while keeping them synchronized across multiple devices.
Before You Start
Before connecting your IMAP account to Aurinko, you need:
Your full email address
An app-specific password or your regular email password, depending on your email provider
Your IMAP server and port, if required by your provider
Your SMTP server and port, if required by your provider
App-Specific Passwords
Most modern email providers require you to generate an app-specific password (also called an application password or app password) instead of using your regular account password.
App-specific passwords are credentials created specifically for third-party applications such as Aurinko. They provide an additional layer of security because you can:
Revoke access without changing your main account password
Limit access to a specific application
Track which applications have access to your account
Where to Find App Password Settings
The exact process varies by email provider:
iCloud
Apple ID → Password & Security → App-Specific Passwords
Yahoo
Account Security → App Passwords
AOL
Account Security → App Passwords
Zoho
Security → App-Specific Passwords
Fastmail
Settings → Privacy & Security → App Passwords
Providers That Use Regular Passwords
Not all email providers support app-specific passwords. Some providers, typically smaller or self-hosted email services, may require you to use your regular email password for IMAP access.
These may include:
Self-hosted IMAP servers
Many custom-domain email hosting services
Some legacy email providers
In these cases, enter your regular email password when connecting your account to Aurinko.
Once you have your credentials, you are ready to add your IMAP account to the Aurinko portal.
Example: Generate a Gmail App Password
If you use Gmail and want to connect your account to Aurinko via IMAP, you may need to generate an app-specific password.
Step 1: Enable 2-Step Verification
Gmail app passwords can only be generated when 2-Step Verification is enabled on your Google Account.
Sign in to your Gmail account.
Click your account icon in the top-right corner and select Manage your Google Account.
In the left-hand menu, select Security.
Under How you sign in to Google, find 2-Step Verification.
If it is not enabled, click Get started and follow the on-screen instructions.
Step 2: Generate an App Password
After enabling 2-Step Verification:
Go to the Security section of your Google Account.
Under How you sign in to Google, select App passwords.
Enter your Google password again if prompted.
Under Select app, choose Mail.
Under Select device, choose the device you are using, or select Other and enter a custom name.
Click Generate.
Google displays a 16-character app password.
Adding Your IMAP Account to the Aurinko Portal
Once you have your credentials, follow these steps to connect your account.
Step 1: Open the Aurinko Portal
Sign in to the Aurinko API Portal and go to Accounts.
Step 2: Add a New Account
Click Add Account.
Select IMAP from the list of service types.

Step 3: Select Scopes
Select the permissions your application requires.
Read
Read emails and email metadata
ReadWrite
Read, update, and delete emails
Drafts
Create and manage drafts
Send
Send emails

Step 4: Enter Account Credentials
Using a predefined provider? You do not need to enter the IMAP or SMTP server details manually. Aurinko already has the required connection settings for supported providers.

Using a custom or unsupported provider? You will need to obtain the IMAP and SMTP server addresses and ports from your email provider's documentation or support team.
Enter your IMAP account information:
ServiceProvider
Select your email service provider
Your full email address, for example user@example.com
Password
Your app-specific password or regular email password
IMAP Server / Port (Incoming)
The server address and port used for receiving emails. Required for custom email providers.
SMTP Server / Port (Outgoing)
The server address and port used for sending emails. Required for custom email providers.

How Aurinko Connects to Your IMAP Server
Aurinko connects to your IMAP server using IMAPS (imaps://), the secure, TLS-encrypted version of IMAP.
This ensures that communication between Aurinko and your mail server is encrypted.
Aurinko uses standard IMAP authentication methods, including:
PLAINLOGIN
These authentication methods are used over the encrypted IMAPS connection.
Sending Emails and the "Sent Messages" Folder
How Aurinko Handles Sent Emails
When you send an email through the Aurinko API, Aurinko delivers the message to the recipient through your SMTP server.
However, not all email providers automatically save a copy of sent messages to the Sent folder.
For example:
iCloud does not automatically add sent emails to the Sent Messages folder.
Some self-hosted IMAP servers may also omit this step by default.
Enable Sent Email Copies
Aurinko provides an account-level option that allows sent emails to be copied to the Sent Messages folder.
To enable it:
Go to Accounts.
Select your IMAP account.
Find the Copy sent emails to 'Sent Messages' folder checkbox.
Turn the option ON.
After enabling this option, Aurinko automatically copies sent emails to the configured Sent folder.

Account Creation and Background Synchronization
What Happens After You Submit the Form
After you submit the IMAP account configuration, Aurinko:
Creates the account and associates it with your application.
Starts a background synchronization process.
Continuously updates mailbox data, including:
Folder and directory structures
Email messages
Read/unread status
Other mailbox metadata
The background synchronization runs automatically. You do not need to manually trigger updates.
Initial Synchronization
During the initial synchronization, Aurinko performs a full scan of your mailbox to build an index of folders and messages.
Depending on the size of your mailbox, the initial synchronization may take some time.
Troubleshooting
If Aurinko encounters an issue while connecting to or synchronizing your IMAP account, the error details are displayed on the account page.
View Provider Errors
Go to Accounts.
Select your IMAP account.
Open the Provider Errors section.

Common provider errors include:
Authentication failures caused by an incorrect password or app-specific password
Server connection timeouts
SSL/TLS handshake errors
Rate limiting
Server bans or connection restrictions
Need Help?
If you see an error in Provider Errors that you do not understand, or the problem persists after verifying your credentials and server settings, contact Aurinko Support.
Include the following information:
Your account ID
The exact error message shown in Provider Errors
Your email provider
Relevant timestamps
This information will help the support team diagnose and resolve the issue more quickly.
Using Your IMAP Account with the Unified Email API
Once your IMAP account has been successfully added and synchronized, you can interact with it through the Aurinko Unified Email API.
The REST API provides a consistent interface for accessing and managing email across supported providers, including:
Google
Microsoft 365
iCloud
IMAP
Key Capabilities
The Email API allows you to:
Read email messages, including content, sender and recipient information, subject lines, and dates
Search inboxes using the
qparameterUpdate message status, including read/unread and flagged status
Manage and download email attachments
Create drafts and send emails
Perform incremental synchronization to efficiently retrieve only changes
Full Documentation
For the complete API reference, including endpoints, parameters, and response formats, see the Aurinko Email API Documentation.
Last updated
Was this helpful?
