On Tue, Nov 27, 2012 at 01:03:56PM +0500, Muhammad Yousuf Khan wrote:

> I am using Postfix with maildir and I want my mailboxes to be
> integrated with my active directly windows 2003 server.

So you're not using Microsoft Exchange, with Postfix just a border
gateway then?

If so, your Active Directory likely lacks the email specific schema
elements and management tools that come with Exchange.

> I don't want to recreate all the "accounts" and "home directories" in
> Linux which are already created in active directory.

If your users can already login to the system via "winbind", ...
Postfix will already see them as "local" users. Just arrange for
local(8) to deliver their mail appropriately. One way to do that
is to use mailbox_transport and/or mailbox_transport_maps setting
that to a transport that will hand-off the mail to dovecot lmtp.

Then you just have to configure dovecot with PAM authentication
and a mapping from username to maildir path.

A common configuration (with user email addresses in the domain,
rather than the hostname of the server) is:

        myorigin = $mydomain
        mydestination =
                $myhostname, $mydomain, localhost.$mydomain, localhost
        mailbox_transport = lmtp:[127.0.0.1]:24

the rest is up to dovecot. This delegates user lookup to AD via
local_recipient_maps which defaults to

        proxy:unix:passwd.byname $alias_maps

and the underlying passwd.byname lookups are just calls to getpwnam(3)
which are presumably handled by winbind.

-- 
        Viktor.

Reply via email to