snappymail with the /go/snappymail Command

SnappyMail is a lightweight webmail client. Users log in with their normal mailbox address and password, and read and send mail through the server's IMAP and SMTP services. /go/snappymail installs it, or reinstalls it over an existing copy. It: The mail itself is not stored in SnappyMail. It stays on the server's mail system, so reinstalling doesn't touch anyone's messages. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/snappymail

Then open https://webmail.<your domain>/snappymail/?admin to reach the admin area. The user name is admin, and the password is in:

cat /usr/local/goadmio/home/go/webmail/snappymail/data/_data_/_default_/admin_password.txt

Options

None.

The version is fixed in the script at 2.38.2. Running the command again reinstalls that same version. You get a newer version only when the script itself is updated, for example by update.

Examples

# Install, or reinstall and keep the data
/go/snappymail

# Check that the files are in place
ls /usr/local/goadmio/home/go/webmail/snappymail

# Read the admin password
cat /usr/local/goadmio/home/go/webmail/snappymail/data/_data_/_default_/admin_password.txt

# Copy your saved data back by hand, if the restore step didn't work
/go/cf /var/go/snappymail/data /usr/local/goadmio/home/go/webmail/snappymail/data

Output

The command prints only the progress message Installing SnappyMail Webmail, shown through GoAdmio’s progress display.

Notes on the output:

  • There is no success message and no error message. The download and unpacking steps run silently, and their errors are not checked.
  • The admin password is not printed. Read it from the file shown in Quick start.
  • Every run is logged with a timestamp and its arguments to /var/log/go/snappymail.log.

See the full reference at /go/snappymail 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 *