1

Topic: Auto Installation

I've looked around in the documentation but I haven't found anything that deals with what I'm trying to accomplish.

Is it possible to fully automate the installation of iRedMail on a CentOS system by passing all of the arguments (domian name, etc) to the main installation script?

----

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

2

Re: Auto Installation

Refer to iRedOS in download page: http://www.iredmail.org/download.html

it's a customized installation ISO image base on CentOS, you can find all you want in its kickstart file.
If all you want is write domain name and other aegs in config file, you csn simplily write a config and then  run the main script.

3

Re: Auto Installation

i also would look for the possibility to automate the installation of iredmail (OS independent). i personally use debian with preseed / fai for bootstrapping and would really enjoy if i could call the installation script in wizardless mode, where i can specify all wizard-questioned data via command line or via a single & simple config file.

like

bash iRedMail.sh --install-dir=/var/vmail --backend=ldap --ldap-suffix="dc=iredmail,dc=org"...

or even better

iredmail.conf:

install-dir    /var/vmail
backend    ldap
ldap-suffix    dc=iredmail,dc=org
...
bash iRedMail.sh --config-file=iredmail.conf

4

Re: Auto Installation

Hi @c33s.

You can define them in iRedMail-x.y.z/config.

It's recommended to read two files after iRedMail installation completed:
iRedMail-x.y.z/config
iRedMail-x.y.z/.iRedMail.installation.status

5

Re: Auto Installation

oh great, this is perfect for automation.
thank you

6 (edited by c33s 2012-03-19 08:55:12)

Re: Auto Installation

i tried to install iredmail automatically, which is not possible also if i have a config file (iRedMail-x.y.z/config)

automation is a binary thing, there is no half automation, only auto or manual.

having the the following prompts stops the automation:

< INFO > Check configuration file: /root/iRedMail-0.7.4/config... [FOUND]
< Question > Use it for mail server setting? [y|N] y

< Question > Would you like to use firewall rules shipped within iRedMail now?
< Question > File: /etc/default/iptables, with SSHD port: 22. [Y|n]n

< Question > Would you like to start postfix now? [y|N]y
< ERROR > File not exist or not executable: /etc/init.d/iptables.

please add an option for full automatic installation.´

bash iredmail --start=yes --firewall=no --use-config=yes

edit:
also it would be a good thing, to define a custom key and a custom cert in the installation.