Skip to content

Horde Configuration

Tharanga Rajapaksha edited this page Feb 27, 2019 · 2 revisions

Horde Configuration for copper email solution

Copper email solution wants some configurations to complete before the system deploy. We have some configuration files inside the project folder. Those files will be located inside the horde folder in the built process. This attempt to describe some important configurations required for successful deployment.

conf.php

This is the main configuration file in the system. There are few configurations you should change according to your environment.

Session cookies domain

$conf['cookie']['domain'] = '';

Database configuration

$conf['sql']['username'] = 'root'; // database username

$conf['sql']['password'] = 'c0pperDB'; // database password

$conf['sql']['hostspec'] = 'mysql'; // mysql database server name or ip

$conf['sql']['port'] = 3306; // database server port

$conf['sql']['protocol'] = 'tcp'; // protocol

$conf['sql']['database'] = 'horde'; // database name

SMTP server details

$conf['mailer']['params']['host'] = 'email'; // SMTP server name or IP

$conf['mailer']['params']['port'] = 587; // SMTP server port

$conf['mailer']['params']['secure'] = 'tls'; // Encription

$conf['mailer']['params']['localhost'] = 'copper.opensource.lk'; //Email domain

$conf['mailer']['type'] = 'smtp'; // for external smtp servers

IMAP login details

$conf['imap']['server'] = 'email'; //IMAP server name or ip

$conf['imap']['port'] = 143; // IMAP server port

$conf['imap']['secure'] = 'tls'; // IMAP server encription

$conf['imap']['maildomain'] = 'copper.opensource.lk'; // IMAP mail domain

$conf['imap']['enabled'] = true; // Enabling the IMAP login to horde

backend.local.php

This is another important file which has backend server configurations like email server configurations for horde webmail version. If you want to configure External email server with horde this configuration is very important. Hear remember to keep "IMAP" and "pop" options disable true and make following configuration according to your scenario.

$servers['advanced'] = array(
    // Disabled by default
    'disabled' => false,
    'name' => 'Advanced IMAP Server',
    'hostspec' => 'email',
    'hordeauth' => false,
    'protocol' => 'imap',
    'port' => 143,
    'secure' => 'tls',
    'maildomain' => 'copper.opensource.lk',
    'smtp' => array(
    //    'auth' => true,
    //    'debug' => false,
    //    'horde_auth' => false,
        'host' => 'email',
    //    'lmtp' => false, // if you use port 25
    //    'localhost' => 'localhost',
        'password' => null,
    //    /* Mail from a MUA SHOULD be sent via the mail submission port (587)
    //     * rather than the MTA port (25). (See RFC 6409/STD 72).
    //     * Note that mail submission REQUIRES some method of authentication
    //     * (whether explicit user/password credentials or configuring the
    //     * mail submission agent to automatically authenticate this host
    //     * based on the network location). */
    //    'port' => 587,
        'port' => 587,
        'username' => null
    ),

'hostspec' => 'email', : this is imap server name or IP

'port' => 143, : this is for imap server name or IP

'host' => 'email', : this is smtp server name or IP

'port' => 587, : smtp server port

If you use 25 as smtp port then you have to uncomment 'lmtp' => false.

'maildomain' => 'copper.opensource.lk' Change this domain name with your one.

Clone this wiki locally