April 23, 2008

Fedora Directory Server (FDS) + Postfix Mail Server (Part 2)

· Devecot

This application is use to connecting Postfix to FDS using IMAP or POP3 protocols.

o Postfix Connection

To connected into Postfix, devecot using /etc/devecot.conf file configuration. We must add LDAP configuration, because we use FDS to be backend to get DB password and user.

protocols = imap pop3

listen = [::]

default_mail_env = maildir:~/Maildir

auth default {

mechanisms = plain

passdb ldap {

args = /etc/devecot-ldap.conf

}

}

o LDAP Connection

Configure /etc/devecot-ldap.conf.

hosts = svr6.xx.eu

dn = “cn=Directory Manager”

dnpass = “fdsmanagerpasswd”

ldap_version = 3

base = dc=xx, dc=eu

deref = never

scope = subtree

user_filter = (&(objectClass=mailgroup)(mgrpDeliverTo=%u))

pass_filter = (&(objectClass=posixAccount)(uid=%u))

default_pass_scheme = CRYPT

· Apache and PHP

Let it with default configuration.

· Squirremail

After all squirremail already installed, you can configure it (/etc/squirremail) and web application in /etc/share/squirremail. If you want configure it using desktop interface, so you can run /usr/share/squirrelmail/config/conf.pl, and configure this points.

1. Domain, choose Server Setting | Domain in menu.

2. SMTP Address and IMAP Server, choose Server Setting | Update IMAP Setting / Update SMTP Setting.

3. Data Directory and Attachment, choose General Options | Data Directory / Attachment Directory.

4. LDAP Server, choose Address Book | Change LDAP Servers.

5. change_ldappass Plug-in, this plug-in is used to change LDAP account password. To use this service, extract plug-in packages into /usr/share/squirrelmail/plugins, and then edit /usr/share/squirrelmail/plugins/change_ldappass/config.php.

$ldap_server = ‘svr6.xx.eu’;

$ldap_protocol_version = 3;

$ldap_password_field = ‘userPassword’;

$ldap_user_field = ’uid’;

$ldap_base_dn = ‘dc=xx, dc=eu’;

$no_bind_as_user = false;

$change_ldapsmb = true;

$mkntpwd = ‘/usr/bin/mkntdpwd’;

$ldapsmb_lmpassword = ‘sambaLMPassword’;

$ldapsmb_ntpassword = ‘samabaNTPassword’;

$debug = false;

· mkntpwd

This utility is used to create samba password encryption. Install this packages into /usr/local/src. Then, type this few command.

# tar –zxvf mkntpwd.tar.gz

# cd mkntpwd

# make

# cd mkntpwd /usr/bin

So, start this service…

No comments: