Adding a mailbox to Apple Mail on macOS
In this article we explain how to add a mailbox that you created yourself in DirectAdmin (Create a new email address or mailbox) to Apple Mail on your Mac.
There are two ways to do this:
- Option 1: the regular way, where you enter the details yourself.
- Option 2: download the mailbox's configuration file from DirectAdmin and install it on your Mac.
Option 1: enter the details yourself
Step 1: Open System Settings on your Mac and open Internet Accounts. Then click Add Account.... You can also open the Mail app and choose Add Account from the Mail menu. The names may differ slightly depending on your version of macOS.

Step 2: Choose Add Other Account...

Step 3: Choose Mail account.

Step 4: Fill in these fields:
- Name: the display name of the mailbox. When you send an email, the recipient sees this name as the sender.
- Email Address: the email address you created in DirectAdmin.
- Password: the password you set when creating the mailbox. Forgot it? Read Change the password or limits of an email address.

Step 5: Fill in all fields, even if they say they are optional.
- Email Address: the email address you created in DirectAdmin.
- User Name: enter your full email address here as well. This must always be filled in.
- Password: the password of the mailbox.
- Account Type: IMAP.
- Incoming and Outgoing Mail Server: your domain name, so in this example testnaam2.nl. If there is IMAP, SMTP or mail in front of your domain name, you can remove it: the domain name alone is enough.

Done! The mailbox has now been added to Apple Mail.
Sending or receiving not working? In the Mail app, choose Settings from the Mail menu, go to Accounts, select your account and open Server Settings. Turn off automatically managing the connection settings and enter: incoming port 993 with TLS/SSL, outgoing port 587 (or 465) with TLS/SSL, and your full email address as the user name for both.
Option 2: add the mailbox using the configuration file
- In DirectAdmin, go to E-Mail Accounts.
- Click the three dots next to the email address and choose Download Apple iOS, iPadOS, Mac configuration.
- Open the downloaded file on your Mac. Go to System Settings: the profile will be ready to install there (under Privacy & Security, under Profiles, or as a notification at the top).
- Install the profile and enter the password of your email address when asked.
See also in the DirectAdmin manual: All settings at a glance: servers, ports and security.
Detailed explanation with screenshots: Apple Mail and Outlook on the Mac in the DirectAdmin manual.
