This tutorial is available in other languages. Help translate more

Nederlands /

Perform silent/unattended iRedMail installation

Attention

Check out the lightweight on-premises email archiving software developed by iRedMail team: Spider Email Archiver.

Summary

iRedMail installer stores its own configrations in file named config during installation. For example, if you downloaded iRedMail-1.2 under /root, then then file path is /root/iRedMail-1.2/config.

While launching the iRedMail installer, it detects whether there's an existing config file, and asks for your confirmation to use it if found one. You can use this procedure to perform unattended iRedMail installation.

Generate a sample config file

To generate a sample config file, just run the installer:

bash iRedMail.sh

After finished the configuration dialog, iRedMail installer prints your configuration and ask for your confirmation to perform the actual installation. You should abort it here since you just want to generate a sample config file.

Feel free to open this config file, change the settings to match your real deployment if you want.

Deploy a new server with a prepared config file

To deploy a new server with a prepared config file:

AUTO_USE_EXISTING_CONFIG_FILE=y \
    AUTO_INSTALL_WITHOUT_CONFIRM=y \
    AUTO_CLEANUP_REMOVE_SENDMAIL=y \
    AUTO_CLEANUP_REPLACE_FIREWALL_RULES=y \
    AUTO_CLEANUP_RESTART_FIREWALL=y \
    AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y \
    bash iRedMail.sh

It's easy to understand what the variable names are used for: