intel_logo
Exim • Courier • MySql • SpamAssassin • ClamAV
64-bit Lion Client or Server (OS X 10.7+)
back
You will need to have XCode 4.1 downloaded, which is now a free download from the Mac App Store for OS X Lion users. Install the newest 64-bit 10.6 version of MySql (current version - 5.5.25) as per this instruction.

1. Download and install the following Intel Snow Leopard based packages:

2. Login to terminal as root to install PEAR and a PEAR module called DB:

$ curl http://pear.php.net/go-pear.phar > go-pear.phar
$ php -q go-pear.phar

'1. Installation base ($prefix)                   : /usr/local'
continue with install process. When finished add the following line to your php.ini file
include_path = ".:/usr/local/share/pear"

$ pear install DB

3. ecm3Admin

ecm3Admin should be in your home (root) directory unpacked: Set up MySql database via terminal:

mysql -u root -p
mysql> CREATE database ecm3;
mysql> use ecm3;
mysql> \. /private/var/root/ecm3Admin/ecm3.sql
mysql> quit

After you finished with mysql installation, move the "ecm3Admin" folder to wherever you serve files via apache.

4. Configuration files

EXIM: Open exim "configure" file and edit the top part of "Main configuration Setting":

open -e /usr/local/exim/configure

Fill in username and password, server ip number and your primary hostname:

SERVER_IP = 0.0.0.0
primary_hostname = example.com
hide mysql_servers =
localhost::(/var/mysql/mysql.sock)/ecm3/username/password

COURIER (Authlib): Open courier "authmysqlrc" file to edit the following lines near the top:

open -e /usr/local/courier-authlib/etc/authlib/authmysqlrc

MYSQL_USERNAME username
MYSQL_PASSWORD password      

SPAMASSASSIN: Open SA's "local.cf" file and edit with appropriate values:

open -e /private/etc/mail/spamassassin/local.cf

MYSQL_USERNAME
MYSQL_PASSWORD      

ECM3ADMIN: Open "config.inc.phpf" file and enter database username/password:

open -e /Library/WebServer/ecm3Admin/config/config.inc.php

MYSQL_USERNAME
MYSQL_PASSWORD    

6. Fixing logging for courier

Apple's mail.log needs to be fixed in order to show courier logging. Login as root to your terminal and open syslog.conf file.

open -e /private/etc/syslog.conf

Replace 'crit' with '*' after mail. mail.* /var/log/mail.log

REBOOT

After you finished with the installation you can log in via web browser at http://yourdomain.com/ecm3Admin.
Inital username/password will be username: siteadmin and password: change in order to gain access as an administrator to set up admins and domains.

When ECM3 is installed and correctly functioning, it sends a new email to the postmaster and/or users upon creation of their accounts. The initial email can be customized within the config file (config.inc.php) for ecm3Admin.