Addition/Install.PostfixAdmin.For.MySQL.Backend

From iRedMail

(Difference between revisions)
Jump to: navigation, search
(Download and configure PostfixAdmin)
(Make PostfixAdmin can be accessed via HTTPS only)
Line 68: Line 68:
Alias /postfixadmin "/var/www/postfixadmin/"
Alias /postfixadmin "/var/www/postfixadmin/"
</pre>}}
</pre>}}
 +
 +
Restart the Apache
 +
 +
<pre>
 +
/etc/init.d/httpd restart
 +
</pre>

Revision as of 06:37, 10 March 2011

iRedMail-0.7.0 removed PostfixAdmin, but you can install it to work with MySQL backend manually.

Download and configure PostfixAdmin

Terminal:
# ---- On RHEL/CentOS ----
cd /var/www
wget  http://www.iredmail.org/yum/misc/postfixadmin-2.3.2.tar.gz
tar zxvf postfixadmin-2.3.2.tar.gz
ln -s postfixadmin-2.3.2 postfixadmin
chown -R root:root postfixadmin
chmod -R 755 postfixadmin
cd postfixadmin
wget http://code.google.com/p/iredmail/source/browse/iRedMail/patches/postfixadmin/create_mailbox.patch
patch -p0 < create_mailbox.patch
mv setup.php setup.php.save
echo '' > motd.txt
echo '' > motd-users.txt

Create config.local.php file for PostfixAdmin, you can find the vmailadmin password form iRedMail.tips or iRedadmin/ssettings.ini

File: /var/www/postfixadmin/config.local.php
<?php
$CONF['configured'] = true;
$CONF['postfix_admin_url'] = "/postfixadmin";
$CONF['default_language'] = "en";
$CONF['database_type'] = "mysqli";
$CONF['database_host'] = "localhost";
$CONF['database_user'] = "vmailadmin";
$CONF['database_password'] = "SoElbUfarkAAzYXQVHNbNkaE9h5oY4";
$CONF['database_name'] = "vmail";
$CONF['smtp_server'] = "127.0.0.1";

$CONF['domain_path'] = "YES";
$CONF['domain_in_mailbox'] = "NO";
$CONF['quota'] = "YES";
$CONF['quota_multiplier'] = 1;
$CONF['transport'] = "YES";
$CONF['transport_options'] = array ('dovecot', 'virtual', 'local', 'relay');
$CONF['transport_default'] = "dovecot";

# Enable alias domain.
$CONF['alias_domain'] = 'YES';

$CONF['backup'] = "NO";
$CONF['fetchmail'] = "NO";
$CONF['sendmail'] = "NO";
$CONF['show_footer_text'] = "NO";
$CONF['emailcheck_resolve_domain'] = "NO";

# Disable vacation.
$CONF['vacation_control'] = "NO";
$CONF['vacation_control_admin'] = "NO";
$CONF['admin_email'] = "www@example.com";
?>

Make PostfixAdmin can be accessed via HTTPS only

Create PostfixAdmin Apache config file:

File: /etc/httpd/conf.d/postfixadmin.conf
<Directory "/var/www/postfixadmin/">
    Options -Indexes
</Directory>

Setting SSL access. Add the line

File: /etc/httpd/conf.d/ssl.conf
Alias /postfixadmin "/var/www/postfixadmin/"

Restart the Apache

/etc/init.d/httpd restart
Personal tools