OpenPGP
On this page
Mailocity publishes your OpenPGP public key so other people's mail apps can find it and send you encrypted mail. Encrypting, decrypting and signing happen in your mail app (Thunderbird, GnuPG with a mail client, K-9 / Thunderbird for Android with OpenKeychain, Proton's bridge...); the server never sees your private key.
Publishing your key
In webmail Settings → OpenPGP key (one of the advanced settings: turn on Settings → General → Show advanced options first), paste your public key (-----BEGIN PGP PUBLIC KEY BLOCK-----; export it from your app) and choose Publish key. The key must have a user ID with one of your mailbox's addresses: its own or one of its aliases. A private key is refused, so pasting one by mistake does no harm.
The card then shows the key's fingerprint and user IDs, Download gives it back as a file, Published takes it out of the directory (or puts it back) without deleting it, and Remove deletes it.
One key for several addresses
A key can carry several addresses (user IDs). Add your aliases to it in your app, for example gpg --quick-add-uid pat@example.com sales@example.com (or Key properties → User IDs → Add in Thunderbird), export it again and choose Replace key. The same key is then found under each of those addresses that is this mailbox's own or one of its aliases.
The card lists every address in the key: Found under this address for the mailbox's own address and its aliases, and Not this mailbox's: not published for the rest. An address in your key that belongs to another mailbox, or to nobody, is never served, so nobody can publish a key for an address they don't receive mail at. The check happens on every lookup: an alias you're given later is found without replacing the key, and one taken away stops being found at once.
Publishing with GnuPG (Web Key Service)
GnuPG can publish your key by mail, without webmail:
gpg-wks-client --create <fingerprint> you@example.com | sendmail -t
(or send the output with your mail app). It goes to key-submission@<domain>, encrypted to that address's own key. A Confirm your key publication message then comes to your mailbox, encrypted to your key; answer it with
gpg-wks-client --receive --send < the-message.eml
(mail apps with Web Key Service support, such as mutt set up for it, do this for you). Once the answer arrives the key is published, replacing any key the mailbox had, and a Your key is published message follows.
Only addresses that are this mailbox's own or one of its aliases get a confirmation request, and only someone who reads the mailbox and holds the key can answer it, so nobody can publish a key for your address. A request can be answered for 72 hours; at most three wait at a time for one address. gpg-wks-client sends a key with only the one address you name; to cover several, paste a key with all of them in webmail instead.
If key-submission is a mailbox or alias on your domain, its mail goes there and the Web Key Service is off for that domain.
How others find it
Keys are published in the Web Key Directory (WKD), which Thunderbird, GnuPG (gpg --locate-keys you@example.com) and most OpenPGP apps look up automatically when you type an address:
https://openpgpkey.<domain>/.well-known/openpgpkey/<domain>/hu/...(the advanced method), onceopenpgpkey.<domain>points at the server: the domain's DNS list has the CNAME record (optional), and the certificate comes on the first lookup;https://<domain>/.well-known/openpgpkey/hu/...(the direct method) when the domain itself points at the server.
Only published keys of active mailboxes are served, and only to the domain's own names.
Mail you receive
Webmail marks OpenPGP mail: Encrypted with OpenPGP (read it in a mail app with your key) and Signed with OpenPGP (not checked here). For S/MIME mail, see Signed mail.
Not yet
Encrypting, decrypting and signing in webmail itself, a separate key for each alias (one key per mailbox, under all its addresses), and taking a key out of the directory by mail (do that in webmail).