# Exporting and leaving

Download your mail and calendars, move a domain to another provider, and what happens when you close a Prodmail account.

You can leave at any time and take your mail with you.

## Exporting mail

- Download any message as an `.eml` file from the message view. It opens in any mail client.
- To take everything, go to **Settings > Import & export > Export mail**. Choose one mailbox and folder, or all of them. You get your original messages as `.eml` files, with a report of the folders and labels they were in. A large export comes as several zip files; keep the page open until the last one has downloaded.

Exported mail is no longer encrypted. Keep the files somewhere private.

## Exporting calendars

In Calendar, open the three dots beside a calendar and choose **Export as a file**. You get an `.ics` file that Google, Apple, Outlook and every other calendar can import. Do it once for each calendar.

Coming the other way? See [Moving your mail to Prodmail](/docs/importing-mail/) and [Moving your calendar to Prodmail](/docs/calendar-import/).

## Moving a domain away

If you connected a domain, point its MX record at your new provider first, then remove the domain here. Mail keeps flowing throughout.

## Closing an account

Go to **Settings > Account > Close account** and confirm with your password.

- **At once:** the account stops sending and receiving. Mail sent to it is returned to its sender.
- **For 30 days:** you can still sign in to read and export your mail. To change your mind, choose **Keep my account** on the same page.
- **After 30 days:** the account, its mail, contacts, keys and any apps you registered are removed for good. Nobody, including us, can get the mail back.

Addresses on `prodmail.io` stay reserved and are never given to anyone else.

Two kinds of account work differently:

- If you have custom domains, remove them first in **Admin > Domains**. A domain with members can be removed once its members are deleted.
- If your address was issued by the owner of a custom domain, only they can delete it. See [Members](/docs/members/).
