Skip to Content
Browse documentation

setupmailserver — Command Reference

Install or rebuild Exim and Dovecot components and mail routing metadata.

Install or rebuild Exim and Dovecot components and mail routing metadata.

Requirements

Run as root on the Eenos server. Supported repositories and backups of mail configuration. Review custom Exim/Dovecot settings before rebuilds.

Usage

The following example uses the operation described below; replace example identities and paths before use:

/usr/local/eenos/scripts/setupmailserver --rebuildsni

Arguments and options

Argument / optionUsage and meaning
--installFlag. Install Exim and Dovecot
--installeximFlag. Install Exim SMTP server
--rebuildeximconfFlag. Rebuild Exim configuration
--installdovecotFlag. Install Dovecot IMAP/POP3 server
--rebuilddoveconfFlag. Rebuild Dovecot configuration
--rebuildsniFlag. Rebuild Dovecot SNI files of all users
--mailipsFlag. Rebuild Exim mailips (/etc/exim/mailips)
--mailhelosFlag. Rebuild Exim mailhelo (/etc/exim/mailhelo)

-h, --help displays this parser's help. The installed version remains authoritative for available options.

Operational effects

Changes mail service configuration. --rebuildsni rebuilds Dovecot SNI files and asks for a separate Dovecot restart. The dispatcher processes the first matching action; use one action per invocation.

Verify the result

Check service health, SMTP/IMAP, routing, TLS and delivery after the selected action.

Check operation output and the relevant service/application state. Several legacy wrappers exit successfully after logging a handler failure, so a zero shell exit status alone is not proof of completion.

Back to Service Setup · All command-line tools