Email Cleanup
Set how many days each domain keeps its email before old messages are cleaned up to free disk space.
| Location | Home » Email » Email Cleanup |
| Category | |
| Required fields | None (the Email TTL is edited inline) |
| Command line | /go/clean |
| Last updated | 2026-11-23 |
On this page: Overview · Quick start · Fields · Troubleshooting · Details · See also
Overview
Mailboxes grow over time, and old messages can use a lot of disk space. Email Cleanup sets an Email TTL (time to live) for each domain: the number of days email is kept. Mail older than this is treated as expired and is removed when GoAdmio runs its cleanup.
The page is a table with one row per domain. Each value saves as soon as you change it. There is no Save button.
[!WARNING] Cleanup deletes email permanently. Set the Email TTL carefully, and make sure your customers know how long their mail is kept. A shorter TTL means less mail is kept.
[!TIP] This page is available in both the admin panel and the user panel. You can also run the cleanup from a terminal. See Run Cleanup from the Command Line.
Quick start
- Go to Email » Email Cleanup.
- Find the domain in the table. Use the Search box to filter the list, or click a column heading to sort.
- Enter the number of days to keep email in the Email TTL (Days) box.
- Click outside the box so the change saves.
Fields
Each row is one domain. Changing a value saves it immediately.
| Field | Default | Notes |
|---|---|---|
| Domain | None | The hosted domain. Click the name to open the website in a new tab. Click the heading to sort. |
| Email TTL (Days) | 180 |
How many days email is kept for the domain. 180 is about six months. Use whole numbers. Click the heading to sort. |
Type in the Search box to filter the list as you type, or press Enter or the search button to search. The table footer shows how many records are displayed, for example Showing 4 of 4 records.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Customers report mail has disappeared | It was older than the Email TTL. | Restore the mailbox from a backup or snapshot, and raise the TTL. |
| Disk space is not freed after lowering the TTL | Cleanup has not run yet. | Run /go/clean, or wait for the next scheduled run. |
| A change did not stick | The value was not committed. | Click outside the box after typing so it saves, then reload the page. |
| A domain is missing from the list | A search filter is active. | Clear the Search box. |
| Disk is still full after cleanup | The space is used by something else, such as files, databases, or backups. | See Show Accounts Over Quota and Process Monitor. |
Details
Run Cleanup from the Command Line
Every admin action in GoAdmio is also available as a /go/... command. To delete old backups, trash, session files, and expired mail to free up disk space, use the clean command:
/go/clean
This command does more than email cleanup, so check what it removes before you run it by hand.
For the full syntax, arguments, and examples, see the command reference: https://www.goadmio.com/commands/clean
Other ways to free mailbox space
| Task | Page or command |
|---|---|
| Delete bounce messages | Undelivered Emails |
| Clear a mail queue full of spam | /go/deletemailqueue, /go/spam |
| Limit an account's disk space | Modify Account, Package Manager |
See also
| Page | Description |
|---|---|
| Email Accounts | Create and manage mailboxes |
| Undelivered Emails | Review and delete bounced messages |
| Show Accounts Over Quota | Find accounts using too much disk space |
| Backup Wizard | Back up and restore accounts |
| Snapshots | Restore from a snapshot |
| Modify Account | Change an account's disk space |