1

Topic: Silent/unattended installation

==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.0.4 LTS
- Any related log? Log is helpful for troubleshooting.
====

Hi All,
I just started trying out iRedMail and I am really impressed with its easy installation process. I would like to know if the installer currently supports silent or unattended installation with preselected configurations say by reading a config file. If not, it is good idea to customize the installation scripts to do so?


Thanks in advance.

Regards,
Guan Wee

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Silent/unattended installation

- iRedMail will store configrations in file iRedMail-x.y.z/config during installation, and ask you whether to use it for installation directly or re-create one.
- iRedMail will read several global variables for automate installation.

You can create a sample config file by executing iRedMail installer:

# bash iRedMail.sh

After config wizard dialogs, you will find file "config" under iRedMail root directory. For example, iRedMail-0.8.1/config.
it will ask whether to start installation or not, you can cancel it if you want.

You can copy this config file to deploy as many servers as you want, change the hard-coded passwords in it if you want.

How to deploy a new server with sample config file:

- Copy sample config file to new server, e.g. /root/iRedMail-0.8.1/config.
- Execute iRedMail installer without asking:

# AUTO_USE_EXISTING_CONFIG_FILE=y \
    AUTO_INSTALL_WITHOUT_CONFIRM=y \
    AUTO_CLEANUP_REMOVE_SENDMAIL=y \
    AUTO_CLEANUP_REMOVE_MOD_PYTHON=y \
    AUTO_CLEANUP_REPLACE_FIREWALL_RULES=y \
    AUTO_CLEANUP_RESTART_IPTABLES=y \
    AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y \
    AUTO_CLEANUP_RESTART_POSTFIX=n \
    bash iRedMail.sh

That's all. Easy enough?

3

Re: Silent/unattended installation

Hi Huangbin,
I tested your approach and it works like a charm.  Thanks!

GW