Addition/Install.PostfixAdmin.For.MySQL.Backend
From iRedMail
(Difference between revisions)
Shake.chen (Talk | contribs) (→Make PostfixAdmin can be accessed via HTTPS only) |
Shake.chen (Talk | contribs) (→Download and configure PostfixAdmin) |
||
| Line 5: | Line 5: | ||
# | # | ||
# ---- On RHEL/CentOS ---- | # ---- On RHEL/CentOS ---- | ||
| + | #Download Postfixadmin 2.3.2 and Extract | ||
cd /var/www | cd /var/www | ||
wget http://www.iredmail.org/yum/misc/postfixadmin-2.3.2.tar.gz | wget http://www.iredmail.org/yum/misc/postfixadmin-2.3.2.tar.gz | ||
| - | |||
tar zxvf postfixadmin-2.3.2.tar.gz | tar zxvf postfixadmin-2.3.2.tar.gz | ||
| + | #Make a soft link | ||
ln -s postfixadmin-2.3.2 postfixadmin | ln -s postfixadmin-2.3.2 postfixadmin | ||
| + | #Set files permission | ||
chown -R root:root postfixadmin | chown -R root:root postfixadmin | ||
chmod -R 755 postfixadmin | chmod -R 755 postfixadmin | ||
| + | #Patch create mailbox patch | ||
cd postfixadmin | cd postfixadmin | ||
wget http://code.google.com/p/iredmail/source/browse/iRedMail/patches/postfixadmin/create_mailbox.patch | wget http://code.google.com/p/iredmail/source/browse/iRedMail/patches/postfixadmin/create_mailbox.patch | ||
patch -p0 < create_mailbox.patch | patch -p0 < create_mailbox.patch | ||
| + | #Remove setup files | ||
mv setup.php setup.save | mv setup.php setup.save | ||
echo '' > motd.txt | echo '' > motd.txt | ||
Revision as of 06:29, 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 ---- #Download Postfixadmin 2.3.2 and Extract cd /var/www wget http://www.iredmail.org/yum/misc/postfixadmin-2.3.2.tar.gz tar zxvf postfixadmin-2.3.2.tar.gz #Make a soft link ln -s postfixadmin-2.3.2 postfixadmin #Set files permission chown -R root:root postfixadmin chmod -R 755 postfixadmin #Patch create mailbox patch cd postfixadmin wget http://code.google.com/p/iredmail/source/browse/iRedMail/patches/postfixadmin/create_mailbox.patch patch -p0 < create_mailbox.patch #Remove setup files mv setup.php setup.save echo '' > motd.txt echo '' > motd-users.txt |
Create config.local.php file:
| 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/" |
