User Tools

Site Tools


linux:debian:mailpiler:web-configuration

Mail Piler Web Interface Configuration

In this post I would like to show how I configured the piler's web user interface settings regarding LDAP, themes, etc. I have a windows 2010 server and active directory. I did not have any problem with these settings. I add all the email addresses user have to “proxyAddresses” attribute of users in active directory so users can access all emails registered to their user.

In this post how to setup mailpiler on Debian is documented.

LDAP Settings

//my domain name is kp.intra so change it according to your domain.
$config["ENABLE_LDAP_AUTH"]=1;
$config["LDAP_HOST"]="192.168.1.126"; //your ldap server's IP
$config["LDAP_HELPER_DN"]="CN=Administrator,CN=Users,DC=kp,DC=intra"; //I used administrator account to help piler to fetch the necessary info from ldap
$config["LDAP_HELPER_PASSWORD"]="*********"; //adminisrator's password
$config["LDAP_MAIL_ATTR"]="mail";
$config["LDAP_AUDITOR_MEMBER_DN"]="";
$config["LDAP_ADMIN_MEMBER_DN"]="mail";
$config["LDAP_BASE_DN"]="DC=kp,DC=intra";

config-site.php

My configurations reflected on config-site.php is below. I prefered mobile theme which has better looking. I do not use smart host to forward the coming emails so I did not add any. Some settings come from the postinstall script of mail piler automatically, like database access information. Enabling remote images while viewing emails has good influence on users, you should enable it.

config-site.php
<?php
 
$config['SITE_NAME'] = 'mailpiler.kp.intra';
$config['SITE_URL'] = 'http://' . $config['SITE_NAME'] . '/';
$config['DIR_BASE'] = '/var/www/piler/';
 
$config['ENABLE_SYSLOG'] = 1;
 
$config['SMTP_DOMAIN'] = 'mailpiler.kp.intra';
$config['SMTP_FROMADDR'] = '[email protected]';
$config['ADMIN_EMAIL'] = '[email protected]';
 
$config['DB_DRIVER'] = 'mysql';
$config['DB_PREFIX'] = '';
$config['DB_HOSTNAME'] = 'localhost';
$config['DB_USERNAME'] = 'piler';
$config['DB_PASSWORD'] = '********';
$config['DB_DATABASE'] = 'piler';
 
$config['SMARTHOST'] = '';
$config['SMARTHOST_PORT'] = 25;
 
$config["ENABLE_LDAP_AUTH"]=1;
$config["LDAP_HOST"]="192.168.1.126";
$config["LDAP_HELPER_DN"]="CN=Administrator,CN=Users,DC=kp,DC=intra";
$config["LDAP_HELPER_PASSWORD"]="*********";
$config["LDAP_MAIL_ATTR"]="mail";
$config["LDAP_AUDITOR_MEMBER_DN"]="";
$config["LDAP_ADMIN_MEMBER_DN"]="mail";
$config["LDAP_BASE_DN"]="DC=kp,DC=intra";
 
$config["TIMEZONE"]="Europe/Istanbul";
$config["MEMCACHED_ENABLED"]=1;
 
$config['THEME'] = 'mobile';
$config['ENABLE_TABLE_RESIZE'] = 1;
$config['SITE_LOGO_LG'] = 'logo-lg.png';
$config['SITE_LOGO_SM'] = 'logo-sm.png';
$config['COMPATIBILITY'] = '<strong>XXX Company\'s EMail Archive</strong><br/>Use your window\'s login info';
$config['ENABLE_REMOTE_IMAGES'] = '1';
$config['ADMIN_EMAIL'] = '[email protected]';
?>

Discussion

Guy Boisvert, 2015/09/29 18:08

Hi!

Very interesting and thanks for your post!

I have a hard time figuring out the way to enter the “LDAP_HELPER_DN”.

What is the name of your domain?

Guy Boisvert, 2015/09/29 18:17

Well, just saw in the first part “kp.intra” so i had it good.

So what are the other LDAP fields? My problem should be there.

Ozan HACIBEKIROGLU, 2015/10/09 08:53

My domain name is kp.intra and it is at IP 192.168.1.126. You need to enter your administrator user or other helper user to query LDAP and its password as shown. That's all for the LDAP side.

Enter your comment. Wiki syntax is allowed:
 
linux/debian/mailpiler/web-configuration.txt · Last modified: 2015/05/04 05:51 by ozan