Ionos

IONOS notes: an old Exchange IMAP fix, then how NicAI uses the IONOS DNS API and CalDAV.

20 Sep 2022

enable IMAP/POP in:


29 Nov 2026 IONOS is still the registrar and DNS host for many of my domains. NicAI now talks to it through 2 APIs: DNS and CalDAV.

DNS API

Setup:

  1. Enable API access on the account: it's a product you add in the IONOS shop, with its own terms.
  2. Create a key in the API Keys portal. IONOS shows a public prefix and a secret, and the secret only once.
  3. Send both in 1 header on every call: X-API-Key: <prefix>.<secret>.

The limit is 1,200 requests an hour per key, then HTTP 429.

How NicAI uses it: ionos.py, in my shared tools (see NicAI shared tools ), lists zones and records and adds or updates a record:

python3 ionos.py zones
python3 ionos.py records example.com --type TXT
python3 ionos.py set example.com cv A 203.0.113.10 --ttl 3600
python3 ionos.py --account de zones

set updates the record with that name and type, or creates it, so an agent can run it twice without making a duplicate. I have 2 IONOS accounts, one on IONOS.fr and one on IONOS.de, with my domains split between them, so the script takes --account. Agents use it to point a subdomain at a new site and to add the mail records for a domain on Migadu (see Migadu ).

⚠️ WARNING: check the nameservers before you edit a zone. One of my domains is registered at IONOS but its DNS runs at Spaceship. The IONOS zone for it still exists, still shows old records, and changing it does nothing (see Spaceship (hosting) ).

dig +short NS example.com

CalDAV calendar

IONOS mail accounts include a calendar with a standard CalDAV server. Our shared household calendar lives there, and so does a personal one. family_cal.py reads and writes them with the Python standard library only: list, add, update, delete and import events.

Rules the script enforces, because agents write to a calendar people rely on:

  • Every event NicAI adds is tagged. It gets the NicAI category and a last notes line "Created by NicAI", so a person can tell an agent's entry from their own, and list --nicai shows only those.
  • Every event names its source. add refuses to run without --source: the notes always say where the date came from (an email, a school letter, a booking).
  • Imports send no invitations. import strips attendee and organiser lines from an .ics export before upload, so the server never emails anyone, and skips events that already exist.

The family app around this calendar is Familee: my own family app for iPhone .

Invoices

For my company bookkeeping, a Receiptee skill reads the IONOS invoice emails from the company mailbox, read-only, and matches each one with the bank payment that misses a receipt (see Receiptee: my own missing-receipts matcher ).