Launch Settings.

Select Mail.

Select Accounts.

Select Add Account.

Tap Other.

Tap Add macOS Server Account.

Tap a server from the list. If you don't see your server, select Other to manually enter the hostname or IP Address.

Enter your username and password and tap Next. You'll be prompted to accept the macOS Server Identity Certificate.

Tap Continue.

Tap Save.