/go/installmail: installmail from the Command Line

/go/installmail sets up the server so it can send and receive email for your hosted domains. It installs the mail server programs, then calls GoAdmio's other mail commands to configure them. It sets up: It installs the mail server only. Webmail programs such as roundcube and snappymail are installed separately. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Install the mail server
/go/installmail

Options

Option Required Notes
--skip No Skips the port 25 check and installs anyway. Any argument that contains --skip counts.
--force No Resets GoAdmio’s own mail connection settings to their defaults before installing. See below.

What --force resets

GoAdmio stores the IMAP and SMTP settings it uses to connect to the mail server. --force sets them back to:

Setting Default
IMAP Host localhost, port 143, no encryption, short login off
SMTP No host, port 587, no username, no password

Examples

# Install the mail server (checks port 25 first)
/go/installmail

# Install even if port 25 appears blocked
/go/installmail --skip

# Install and reset GoAdmio's IMAP and SMTP connection settings
/go/installmail --force

# Check that the mail services are running afterward
systemctl status postfix dovecot

Output

You see progress messages, such as Installing POSTFIX, the package manager’s output, and the names of the steps as they run:

MAILSSL...
POSTCONF...
DOVECONF...
Installing SPF...
DKIM...
Installing DMARC...

When the server already has accounts, you also see TROUBLESHOOT... and AUTODISCOVER....

Message Meaning
Your ISP <name> blocking SMTP Port 25 The server can’t reach port 25 on Google’s mail server, so mail can’t be sent. Exit status 1. Nothing is installed.

Log

Each run appends one line to /var/log/go/installmail.log:

[Nov 21 12:00:00]# installmail --skip

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