/go/roundcube: roundcube from the Command Line

/go/roundcube downloads a Roundcube release from GitHub and sets it up as the webmail application for the server. It: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Install the default version (1.6.19) with MariaDB
/go/roundcube

Arguments

Argument Required Default Notes
version No 1.6.19 A Roundcube release tag, such as 1.6.10. It must be the first argument.
--ssl No Off Send mail over SSL (port 465) using the server hostname’s certificate. See SMTP settings.
--sqlite No Off Use a SQLite database file instead of MariaDB. See the warning below.
--mysql No On Accepted, but it is already the default.
--silent No — Accepted, but this script does nothing different when it is used.

If the first argument is empty or is one of --silent, --ssl, --mysql, or --sqlite, the version is set to 1.6.19. This means a version placed after a flag is ignored:

Command Version installed
/go/roundcube 1.6.10 --ssl 1.6.10
/go/roundcube --ssl 1.6.10 1.6.19 (the 1.6.10 is ignored)

The flags --ssl and --sqlite are found anywhere in the arguments.

SQLite mode

With --sqlite, the configuration points Roundcube at roundcube.db inside the Roundcube folder. The command that would create the SQLite tables is commented out in the script, so the tables are not created. The MariaDB database and user are still created. Load the SQLite schema yourself, or don’t use --sqlite.

Examples

# Default version, MariaDB
/go/roundcube

# A specific version, with SMTP over SSL
/go/roundcube 1.6.10 --ssl

# Default version, with SMTP over SSL
/go/roundcube --ssl

# Review recent calls
tail /var/log/go/roundcube.log

Output

The command shows a progress bar titled Installing Roundcube <version> Webmail. There are no success or error messages. Errors from the database import are hidden, and the script doesn’t check whether the download worked. Confirm the result by opening the webmail address.

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