Using RustPost
Client setup
Connect Outlook, Thunderbird, Apple Mail, Calendar and Contacts, Android and iOS to RustPost, with autoconfiguration or by hand.
On this page
Any standard mail app works with RustPost over IMAP and SMTP submission, and any CalDAV or CardDAV app can sync calendars and contacts. Most apps can configure themselves from your address and password.
The examples use the address ana@example.org on the mail host mail.example.org. Your administrator can tell you the host name; it is also in the webmail's Connect a device dialogs in Calendar and People.
The settings
| What | Server | Port | Security |
|---|---|---|---|
| Incoming mail (IMAP) | mail.example.org | 993 | SSL/TLS |
| Incoming mail (IMAP), alternative | mail.example.org | 143 | STARTTLS |
| Outgoing mail (SMTP) | mail.example.org | 465 | SSL/TLS |
| Outgoing mail (SMTP), alternative | mail.example.org | 587 | STARTTLS |
| Calendars (CalDAV) | https://mail.example.org/dav/ | 443 | HTTPS |
| Contacts (CardDAV) | https://mail.example.org/dav/ | 443 | HTTPS |
| Filters (ManageSieve) | mail.example.org | 4190 | STARTTLS |
- User name: your full email address, everywhere.
- Password: your account password, sent as a normal password inside TLS. There is no NTLM or "secure password authentication".
- The outgoing server needs a login (the same as incoming).
App passwords, two-factor sign-in and single sign-on are planned. Until then, every app uses your account password.
How autoconfiguration works
RustPost answers the three common discovery protocols on its HTTPS port:
- Autodiscover (v1 XML at
/autodiscover/autodiscover.xml, v2 JSON at/autodiscover/autodiscover.json), used by Outlook. - Mozilla autoconfig (
/mail/config-v1.1.xmland/.well-known/autoconfig/mail/config-v1.1.xml), used by Thunderbird, Thunderbird for Android, FairEmail, Evolution, KMail and others. - An Apple configuration profile for Mail, Calendar and Contacts on macOS and iOS.
They tell the app the host, ports and security above, implicit TLS first. For this to work, your administrator publishes the autoconfig, autodiscover and SRV records described in DNS records.
Autoconfiguration is new in RustPost and has not yet been tried with every client and version. If an app cannot find the settings, enter them by hand from the table above.
Outlook
Outlook for Windows (classic): choose File → Add account, type your address, and continue. Outlook asks Autodiscover on your domain and fills in IMAP and SMTP. If it offers a choice of account type, pick IMAP.
New Outlook for Windows, Outlook for Mac and Outlook for iOS and Android add IMAP accounts through Microsoft's cloud service, which then connects to RustPost on your behalf. That service keeps a copy of your mail and your password. Ask your administrator whether that is acceptable for your organization.
Outlook gets mail only. Its calendar and contacts need Exchange protocols that RustPost does not implement; use the webmail, or another app over CalDAV and CardDAV, for those.
Thunderbird
Mail. Choose Add Mail Account, enter your name, address and password, and click Continue. Thunderbird finds the settings through autoconfig. Check that it chose IMAP, then click Done.
Calendars. In the calendar, choose New Calendar → On the Network, enter your address as the user name and https://mail.example.org/ as the location, and click Find Calendars. Thunderbird lists your calendars and the ones shared with you.
Contacts. In the address book, choose New Address Book → Add CardDAV Address Book, enter your address and https://mail.example.org/ and continue. Your address books and, unless your administrator turned it off, the organization's directory appear.
Filters. Thunderbird's own filters run on your computer. To edit the server's filters, the same ones as in the webmail's Rules, install a Sieve add-on that speaks ManageSieve and point it at mail.example.org, port 4190, with STARTTLS and your address and password. A script edited outside the webmail opens there as a script rather than in the rules editor.
Apple Mail, Calendar and Contacts (macOS and iOS)
Apple's apps do not use autoconfig. RustPost makes a configuration profile for you instead:
- Sign in to the webmail in Safari on the device.
- In the same Safari, open
https://mail.example.org/api/autoconfig/apple.mobileconfig. It downloadsexample.org.mobileconfig. - Install it. On iPhone and iPad: Settings → Profile Downloaded → Install. On a Mac: System Settings → Privacy & Security → Profiles (or Profiles in older versions), then double-click it.
- Enter your password when asked. The profile holds no password.
The profile adds a mail account, a CalDAV account and a CardDAV account. It is not signed, so the system shows it as Unverified; that is expected. Downloading it again replaces the installed one.
By hand: in Mail, add an Other mail account with the settings above. In Calendar or Contacts, add a CalDAV or CardDAV account, choose Manual or Advanced, and enter mail.example.org, your address and your password; the app finds the rest.
Android
Mail. Any IMAP app works: Thunderbird for Android, K-9 Mail, FairEmail and others use autoconfig, so the address and password are usually enough. Otherwise use the settings table.
Calendars and contacts. Install DAVx⁵, add an account with Login with email address, and enter your address and password. If it cannot find the server, choose Login with URL and user name and enter https://mail.example.org/. DAVx⁵ then syncs your calendars and address books with Android's own apps.
iOS and iPadOS
Use the Apple profile, which sets up mail, calendars and contacts in one step, or add the three accounts by hand in Settings → Apps → Mail → Mail Accounts → Add Account → Other.
CalDAV and CardDAV addresses
| Address | What it is |
|---|---|
https://mail.example.org/dav/ | The DAV root; apps discover your principal, calendars and address books from here. |
https://mail.example.org/.well-known/caldav | Calendar discovery (RFC 6764). |
https://mail.example.org/.well-known/carddav | Contacts discovery (RFC 6764). |
https://mail.example.org/dav/directory/ | The organization's directory, read-only. |
Log in with your full address and password (HTTP Basic, over HTTPS only). Calendars and address books that colleagues share with you appear next to your own.