GoAdmio Command Line: undelivered with /go/undelivered

When a message can't be delivered, the mail server sends a bounce message ("Undelivered Mail Returned to Sender") back to the sender's mailbox. On busy accounts these pile up. /go/undelivered has two modes: The command doesn't need sudo. If you aren't root, it runs itself again with sudo. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# See which bounce messages exist
/go/undelivered

# Delete them for one domain
/go/undelivered example.com

Options

Argument Required Default Notes
<domain> No Report mode A hosting account’s domain, with a mail folder at /home/<domain>/mail.

Anything else you pass after the first argument is ignored.

Examples

# Report: which bounces are in the mailboxes?
/go/undelivered

# Delete bounces on one domain
/go/undelivered example.com

# Delete bounces on every domain
/go/undelivered all

# Take a backup of a domain's mail first (see the backup command)
/go/backup

Output

Report mode

A table with one row for each bounce message found:

│ # │ Email Account │ To │ Date
│ 1 │ info@example.com │ missing@other.com │ 2026-11-18
│ 2 │ info@example.com │ old@example.org │ 2026-11-19

Column Meaning
# A running number.
Email Account The mailbox that received the bounce.
To The address the original message was sent to, taken from the To: headers. It shows - or is empty when no address could be found.
Date The date of the file in the mailbox.

If nothing is found, only the header is printed.

Delete mode

Deleting undeliverable emails on domain example.com
/home/example.com/mail/info/cur/1731923456.M123P456.host,S=4521:2,S
...

The first line is Deleting all undeliverable emails when it runs on every domain. After it, the command prints the path of each file it deleted.

Exit status

Outcome Exit status
Report finished 0
Delete finished 1 (even on success)

Every run is logged to /var/log/go/undelivered.log with a timestamp and the arguments used.

See the full reference at /go/undelivered 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.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *