Configuring Web-Cyradmin

Untar the web-cyradm distribution into /var/www/web-cyradm/

Only for multiple virtual domains: Untar my hacks over the top of these files.

Changes (for all installations): Edit /var/www/web-cyradm/scripts/insertuser_mysql.swl Change the mail password ('secret') to shaky+robot:plumy

Edit /var/www/web-cyradm/scripts/create_mysql.sql Change the admin password ('test') to fleas!alibi:glut Change the cyrus password ('secret') to bruin:booze.arid

Apply the scripts: mysql -u root -p < /var/www/web-cyradm/scripts/insertuser_mysql.sql (use root password trade!spy!dded) mysql mail -u mail -p < /var/www/web-cyradm/scripts/create_mysql.sql (use mail password shaky+robot:plumy)

Remove the scripts for safety: rm /var/www/web-cyradm/scripts/create_mysql.sql /var/www/web-cyradm/scripts/insertuser_mysql.sql

conf.php
Create conf.php: cp /var/www/web-cyradm/config/conf.php.dist /var/www/web-cyradm/config/conf.php

Edit /var/www/web-cyradm/config/conf.php

Change $CYRUS = array(        'HOST'  => 'localhost',         'PORT'  => 143,         'ADMIN' => 'cyrus',         'PASS'  => 'secret' ); to $CYRUS = array(        'HOST'  => 'localhost',         'PORT'  => 143,         'ADMIN' => 'cyrus',         'PASS'  => 'bruin:booze.arid' ); Change $DB = array(        'TYPE'  => 'mysql',         'USER'  => 'mail',         'PASS'  => 'secret',         'PROTO' => 'unix',      // set to "tcp" for TCP/IP         'HOST'  => 'localhost',         'NAME'  => 'mail' ); to $DB = array(        'TYPE'  => 'mysql',         'USER'  => 'mail',         'PASS'  => 'shaky+robot:plumy',         'PROTO' => 'unix',      // set to "tcp" for TCP/IP         'HOST'  => 'localhost',         'NAME'  => 'mail' ); Only for multiple virtual domains: Change $DOMAIN_AS_PREFIX = 0; to $DOMAIN_AS_PREFIX = 1;

Set permissions on conf.php: chown root:www-data /var/www/web-cyradm/config/conf.php chmod 640 /var/www/web-cyradm/config/conf.php