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 --rebuildsniArguments and options
| Argument / option | Usage and meaning |
|---|---|
--install | Flag. Install Exim and Dovecot |
--installexim | Flag. Install Exim SMTP server |
--rebuildeximconf | Flag. Rebuild Exim configuration |
--installdovecot | Flag. Install Dovecot IMAP/POP3 server |
--rebuilddoveconf | Flag. Rebuild Dovecot configuration |
--rebuildsni | Flag. Rebuild Dovecot SNI files of all users |
--mailips | Flag. Rebuild Exim mailips (/etc/exim/mailips) |
--mailhelos | Flag. 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.