Addition/Install.PostfixAdmin.For.MySQL.Backend
From iRedMail
(Difference between revisions)
Shake.chen (Talk | contribs) |
Shake.chen (Talk | contribs) |
||
| Line 56: | Line 56: | ||
$CONF['admin_email'] = "www@example.com"; | $CONF['admin_email'] = "www@example.com"; | ||
?> | ?> | ||
| + | </pre>}} | ||
| + | |||
| + | =Make PostfixAdmin can be accessed via HTTPS only= | ||
| + | |||
| + | Create PostfixAdmin Apache config file: | ||
| + | {{cfg|/etc/httpd/conf.d/postfixadmin.conf|<pre> | ||
| + | <Directory "/var/www/postfixadmin/"> | ||
| + | Options -Indexes | ||
| + | </Directory> | ||
| + | </pre>}} | ||
| + | |||
| + | Setting SSL access. | ||
| + | {{cfg|/etc/httpd/conf.d/ssl.conf|<pre> | ||
| + | Alias /postfixadmin "/var/www/postfixadmin/" | ||
</pre>}} | </pre>}} | ||
Revision as of 06:19, 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.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.
| File: /etc/httpd/conf.d/ssl.conf |
Alias /postfixadmin "/var/www/postfixadmin/" |
