/go/troubleshoot fixes common email problems in one run, for one domain or for every domain on the server. For each domain it: It is useful after a migration or restore, or when mailboxes are missing from the panel or can't be read. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Fix one domain
/go/troubleshoot example.com
# Fix every domain on the server
/go/troubleshoot
Options
| Argument | Required | Default | Notes |
|---|---|---|---|
<domain> |
No | All domains | The hosting account’s domain. /home/<domain>/www must exist. |
With no argument, the command goes through every folder in /home that contains a www folder. The word all is not recognized. Use no argument instead.
Examples
# Fix the email accounts of example.com
/go/troubleshoot example.com
# Fix every domain (can take a while on servers with a lot of mail)
/go/troubleshoot
Output
The command prints nothing when it works. Any output comes from the mail command it calls.
| Outcome | What you get |
|---|---|
| Domain fixed | No output. Exit status 1. |
| All domains processed | No output. Exit status is that of the last command. |
| Domain not found | Domain <domain> does not exist. Exit status 0. |
[!NOTE]
When you pass a domain, the exit status is1even on success. Don’t treat it as an error.
Every run is logged to /var/log/go/troubleshoot.log with a timestamp and the arguments used.
See the full reference at /go/troubleshoot and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
