Skip to main content

Quick Exchange Setup (Admin Panel Walkthrough)

This single-page walkthrough shows you how to set up a complete, multi-tenant Microsoft Exchange environment for a domain using the hermEX Admin Panel. Every step also notes the matching hermex-admin CLI command if you prefer automation.

Sign In to the Admin Panel​

  1. Open your Admin Panel URL (https://admin.example.com/admin/ui/).
    • If you chose SSH-only admin access during installation, open a tunnel from your workstation:
      ssh -L 8608:127.0.0.1:8608 root@YOUR_SERVER_IP
      Then open https://127.0.0.1:8608/admin/ui/ in your browser.
  2. Sign in with your system administrator account (postmaster@example.com and the password printed during installation).
Switching Admin Panel language

The top bar provides a language selector between English and Türkçe, as well as a light/dark theme toggle.


Step 1: Create an Organization​

Organizations isolate tenants across the Global Address List (GAL), room lists, and domain administrators.

  1. In the left sidebar under Directory, click Organizations.
  2. In Add an organization, enter:
    • Name: for example Acme Corp
    • Description: for example Acme Enterprise Exchange Organization
  3. Click Add organization.
  4. Open the newly created organization, scroll to Domains -> Add domain, select your domain (for example example.com), and attach it. Note the numeric Organization ID shown in the URL or table.

Optional CLI equivalent:

hermex-admin create-org "Acme Corp" "Acme Enterprise Exchange Organization"
hermex-admin attach-org-domain <ORG_ID> example.com

Step 2: Add and Configure the Domain​

If you are setting up the primary domain created by install.sh, skip creating it and open its existing entry under Directory -> Domains. For a new domain:

  1. Open Directory -> Domains, enter the domain name (for example example.com) under Add a domain, and click Add domain.
  2. Click the domain name to open its detail page. You will see six tabs:

General Tab​

  • Set Title (organization display name, e.g. Acme Corp), Admin Name, Address, and Telephone.
  • Enable Plus addressing (allows user+tag@example.com delivery) and MTA-STS enabled if your gateway publishes MTA-STS.
  • Under Create defaults (or Directory -> Domains / Devices and policy -> Defaults), set domain-wide defaults for new mailboxes:
    • Storage quota: e.g. 5120 MiB (5 GB)
    • Receive quota / Send quota: e.g. 50 MiB / 25 MiB
    • Language: e.g. en or tr
    • Services: enable POP3/IMAP, SMTP, Web, EAS (ActiveSync), DAV, Sieve, and JMAP
    • Force password change on next sign-in: uncheck (off) for pre-provisioned accounts if users should sign in immediately

Mail Handling Tab​

  • Antivirus scan: enable both Inbound and Outbound ClamAV scanning.
  • Outgoing display name templates: format how sender names appear inside and outside the organization, for example:
    • Internal format: {name} ({title})
    • External format: {name} ({title} - {company})
  • Login branding: customize the webmail sign-in page for users visiting https://mail.example.com:
    • App name: e.g. Acme Mail
    • Logo URL: optional HTTPS URL to your SVG/PNG logo
    • Primary color: hex color (e.g. #4f46e5)
    • Footer text: e.g. Acme Enterprise Mail

DNS and DKIM Tab​

  1. If this is a newly added domain, generate a DKIM key with selector hermex (2048-bit RSA or Ed25519).
  2. Publish every DNS record shown in the DNS records table at your DNS provider (keep Cloudflare proxies set to DNS only).
  3. Once the DKIM TXT record resolves in DNS, click Enable DKIM to activate outbound signing.
  4. Click Run DNS check and confirm every row reports OK.

Step 3: Create Users, Domain Admins, and Shared Mailboxes​

  1. Open Directory -> Users.
  2. Under Add a user, create your accounts:
    • Domain Administrator (for example admin@example.com): manages only this domain without accessing other hosted tenants.
    • Standard Users (for example alice@example.com, bob@example.com, charlie@example.com): enter Given name, Surname, and a strong password (minimum length enforced by System -> Settings).
  3. To grant Domain Admin permissions to admin@example.com:
    • Click admin@example.com to open User detail.
    • Scroll to Admin roles, select Domain as the Role, enter the domain's numeric Scope ID, and click Grant role.
  4. To fill out GAL contact details (so Outlook Address Book and {title} / {company} sender templates work):
    • In User detail, fill Title, Department, Company, and phone fields, then save.
  5. To create a Shared Mailbox (for example team@example.com):
    • Create a user team@example.com with Display name Team.
    • Open its User detail page and change Status to Shared mailbox (status 4), then save.
    • Scroll to Store owners and add the users who should open this shared mailbox in Webmail, Outlook, or IMAP (for example alice@example.com and bob@example.com).
Automatic mailbox provisioning

Accounts created via the Admin Panel have their mailboxes initialized automatically on disk when provisioned or upon first delivery. When creating accounts via CLI, run hermex-admin provision-mailboxes before configuring delegates or sent-copy settings.


Step 4: Configure Delegates, Send-As, and Send-on-Behalf​

To let bob@example.com manage mail and send on behalf of alice@example.com:

  1. Open Directory -> Users and click alice@example.com.
  2. In Delegates, add bob@example.com and set folder access level (read or write).
  3. In Send as grants, add bob@example.com (allows sending directly From: alice@example.com).
  4. In Send on behalf grants, add bob@example.com (allows sending Sender: bob@example.com on behalf of alice@example.com).
  5. In Sent copy, enable Send as and Send on behalf copies so messages sent by Bob are saved in Alice's Sent folder as well.

Apply the same Store owners, Delegates, and Send as grants on team@example.com so authorized team members can read and reply as the shared mailbox.


Step 5: Create Mail Aliases​

Aliases route service or role addresses into an existing mailbox without requiring a separate license or inbox.

  1. In the left sidebar under Directory, click Aliases.
  2. Create standard operational aliases:
    • postmaster@example.com -> admin@example.com (required so DMARC and TLS-RPT reports arrive at a monitored inbox)
    • info@example.com -> admin@example.com
    • abuse@example.com -> admin@example.com
    • support@example.com -> alice@example.com

Step 6: Create Mailing Lists (Distribution Groups)​

  1. In the left sidebar under Directory, click Mailing lists.
  2. Recommended three-list enterprise setup:
    • Company-wide dynamic list (all@example.com, display name All Staff, type Domain, privilege Domain): membership automatically includes every active user in the domain.
    • Team list (eng@example.com, display name Engineering, type Normal, privilege Members only): only list members may post.
    • Announcement list (announce@example.com, display name Announcements, type Normal, privilege Specified senders): only approved senders (such as admin@ and alice@) may post.
  3. Click each list to set its Owner, add Members (one email per line for Normal lists), and configure Permitted senders for restricted lists.

Step 7: Add Conference Rooms and Equipment​

  1. In the left sidebar under Directory, click Rooms.
  2. Add meeting rooms and bookable equipment:
    • boardroom@example.com, display name Boardroom, capacity 16 (Room)
    • meeting-a@example.com, display name Meeting Room A, capacity 6 (Room)
    • projector-1@example.com, display name Projector 1, capacity 0, check Equipment
  3. Open each resource under Directory -> Users (or via CLI set-meeting-config) and configure automatic calendar processing:
    • Enable Auto-accept meeting requests
    • Enable Decline conflicting requests
    • Enable Remove request after responding
hermex-admin set-meeting-config boardroom@example.com --auto-accept=on --decline-conflict=on --remove-request=on

Step 8: Add External GAL Contacts​

External contacts make outside partners and vendors searchable in Outlook and Webmail autocomplete.

  1. Open Directory -> Contacts.
  2. Click Add contact, choose domain example.com, enter the external email (for example partner@vendor.org), and enter a display name (for example External Partner).

Step 9: Create Public Folders​

Each domain gets isolated Public Folders shared across its users in Outlook, IMAP shared namespaces, and Webmail.

  1. Open Directory -> Public folders.
  2. Select domain example.com.
  3. Under Create a folder, create top-level folders such as Announcements and Operations.
  4. Select each folder and grant permissions:
    • Grant anyone Author rights (every domain user can read and post)
    • Grant admin@example.com (or the department lead) Owner rights (can manage folder permissions and delete items)

Step 10: Optional Custom RBAC Roles​

If you want helpdesk or compliance staff to have scoped permissions without full domain or system admin access:

  1. Open Directory -> Roles and click Add role.
  2. Open the role to assign capabilities:
    • Helpdesk: select Reset passwords (ResetPasswd) and assign users such as bob@example.com.
    • Auditor: select Read-only system access (SystemAdminRO) and assign charlie@example.com.

Step 11: Verify Live Operation​

Once all items above are in place:

  1. DNS & DKIM: Open Directory -> Domains -> <your domain> -> DNS and DKIM -> Run DNS check. Every check (MX, SPF, DKIM, DMARC, MTA-STS, Autodiscover, SRV) must show OK.
  2. TLS Certificates: Open System -> TLS certificates. If ACME mode is enabled and mail.<domain>, autodiscover.<domain>, autoconfig.<domain>, and mta-sts.<domain> resolve to the server, wait for the 15-minute ACME cycle or restart hermex-gateway.service to issue certificates immediately.
  3. Webmail Branding: Visit https://mail.example.com in an incognito browser window and verify the login badge renders your configured App name, Logo, and Footer text before sign-in.
  4. Domain Admin Isolation: Sign in at https://admin.example.com/admin/ui/ as admin@example.com. Verify that your domain configuration is accessible and other hosted domains return Forbidden.
  5. Client Autodiscovery: Configure an Outlook, Thunderbird, Apple Mail, or mobile ActiveSync client using just your email address (alice@example.com) and password to confirm autodiscovery completes cleanly.