GoAdmio

unsuspend

Unsuspend a GoAdmio account: reactivate its website and its email accounts

On this page: Overview · Quick start · Syntax · Options · Output · Examples · Troubleshooting · Details · See also


Overview

/go/unsuspend reverses suspend. It makes a suspended hosting account work again. It:

  1. clears the suspended flag on the account in GoAdmio's database
  2. clears the suspended flag on all of the domain's email accounts
  3. rebuilds the web server configuration for the domain, for both Apache and Nginx
  4. rebuilds the mail maps in the background, so email works again

Quick start

/go/unsuspend example.com

Syntax

/go/unsuspend <domain>

Options

Argument Required Notes
<domain> Yes The domain of the hosting account, as shown in GoAdmio.

Only the domain you name is changed. Other accounts, such as addon domains of the same owner, are not.


Output

Account example.com has been unsuspended

Output from apache and nginx may appear before it.

[!WARNING] The message is printed whether or not the domain exists, and whether or not each step worked. A mistyped domain still prints "has been unsuspended". Always check the result.

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


Examples

# Unsuspend an account
/go/unsuspend example.com
# Check that the flag was cleared (0 means not suspended)
sudo sqlite3 /var/lib/sqlite/site.db "select Suspend from Site where Domain='example.com'"

Troubleshooting

Symptom Likely cause Fix
The message appeared but the site is still down The domain name is wrong, so nothing was updated. Check the spelling against the account list.
The site is still down after the right domain The web server configuration has an error. Check it with checkapache or checknginx, and rebuild it with conf.
Email still doesn't work The mail maps are rebuilt in the background and take a moment. Wait a minute. If it still fails, run vmail and doveconf.
The account is suspended again later Whatever suspended it, such as an expired hosting date or a limit, still applies. Fix the cause first. For the hosting date, see renew.
Configuration files exist for a domain that isn't hosted A mistyped domain still runs apache and nginx for it. Remove the stray files, or rebuild the configuration with conf.
An addon domain is still suspended Each domain is unsuspended on its own. Run the command for that domain too.

Details

  1. Looks up the account in the Site table (the result is not used).
  2. Sets Suspend='0' for the domain in the Site table of /var/lib/sqlite/site.db.
  3. Sets Suspend='0' for the domain's rows in the Mail table of /var/lib/sqlite/mail.db.
  4. Runs /go/apache <domain> and /go/nginx <domain> to create the virtual host configuration again.
  5. Prints the confirmation.
  6. Starts /go/vmail in a detached screen session, then returns without waiting for it.

Nothing is checked before step 2, so an unknown domain changes no rows but still goes through steps 4 to 6.

Item Used for
/var/lib/sqlite/site.db The account's Suspend flag.
/var/lib/sqlite/mail.db The email accounts' Suspend flag.
screen Running vmail in the background.
/var/log/go/unsuspend.log The command log.

See also

Command Description
suspend Suspend a GoAdmio account via the command line
create Create a GoAdmio account from the command line
delete Delete a GoAdmio account from the command line
vmail Rebuild the Postfix/Dovecot vmail maps
conf Rebuild the Apache/Nginx configuration in GoAdmio
renew Update the hosting expiry date in GoAdmio
expire Check hosting and domain expiry dates and send email/WhatsApp notifications