Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Linux IMAP, Active Directory with MS Outlook

Posted on 2015-01-04
Medium Priority
Last Modified: 2015-01-05
I'm about to experiment with some email client/server configuration on Linux and would like some of you EExperts to help make sure I'm both sane and don't do something stupid.

I have Linux Slackware64 14.1 system which is configured as a Domain Controller/Active Directory using Samba4. That works great with Window Domain client workstations.

Now, I'd like to get basic email service going.

According to my research, I want IMAP instead of POP3 because (http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol) "IMAP, unlike POP, specifically allows multiple clients simultaneously connected to the same mailbox, and through flags stored on the server, different clients accessing the same mailbox at the same or different times can detect state changes made by other clients."

My experience is limited to Outlook and Exchange on Windows and Sendmail and various clients (mailx, mutt) on Linux.

My questions:

1. Is Dovecot the IMAP server of choice for Linux?

2. If so, it appears (http://en.wikipedia.org/wiki/Comparison_of_mail_servers) that dovecot does IMAP, but not SMTP, therefore I still need an smtp server like Sendmail, right? That same link indicates that Sendmail works with dovecot.

3. If dovecot is best for IMAP, I would prefer using Sendmail for SMTP since I have a lot of experience using it, but also I've already got various milters configured/built for e.g. spam, antivirus, etc. and would prefer to leverage all that. Therefore, can someone point out to me how to integrate Sendmail and dovecot.

4. I would like to use AD Authentication for the Outlook users. Supposedly this can be done with Outlook and IMAP. I haven't checked the Outlook setup to verify this, but I'd appreciate it if someone could confirm this.

5. Here's the confusing bit: even if I can authenticate using Active Directory, I believe Sendmail is still going to want to put SMTP received mail into /var/spool/mail/{username} folders in traditional mbox format. So, do I therefore need to either create a Linux user account for each domain user? Or alternatively, create an alias for each user in in /etc/mail/aliases as:

joe        /var/spool/mail/joe

I assume "yes" I will have to do one or the other, but maybe the answer to #3 will clarify this question.

6. According to what I've read, IMAP is "folder oriented" and the various mail folders a user creates using e.g. Outlook are actually stored on the server, not on the client workstation. How do the messages get from the mbox format created by Sendmail to the complex folder format (dbox?) used by Dovecot's implementation of IMAP. Would this also be explained by #3?

7. Finally, can I take an Outlook pst file and get it to dovecot? I ask this because we have Outlook users with many years of email and these cannot be simply lost or archived.

Thanks for your guidance
Question by:jmarkfoley
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 62

Accepted Solution

gheist earned 2000 total points
ID: 40531371
1. Yes, it is very resource-savvy, functional, and has reasonably good security record.
2. MTA like postfix or exim does SMTP, not their fault that Exchange includes windows SMTP server.
3. sendmail is like very clumzy, slow, and braindead. Why not postfix or exim?
4. Only way to get transparent authentication working is using winbind. LDAP can allow use of same password.
I doubt sendmail can be part of it.
5. You said you are sendmail master. I have no clue, i think it is dead and being abandoned by most Linux and UNIX systems.
6. You said you can do it. It is quite easy with exim or postfix. Just add slash at the end of mailbox path and it will be maildir. mbox is the simple format, for dbox format you need to use dovecot-lda.
7. You can copy mails using outlook to any IMAP account.

Author Comment

ID: 40532853
OK, thanks, this points me in the right direction. I will pursue dovecot immediately. According to dovecot.org there are no actual man pages and refers you to the wiki. That is pretty sparse so I'll be posting lots of howto questions. I'll save the smtp server issue for later. If I can't use sendmail I'll move on, but as I said, I'm very familiar with sendmail and have numerous custom milters and other tweaks, so I'd like to leverage that if possible.
LVL 62

Expert Comment

ID: 40532939
Learn exim or postfix ;)
Ubuntu has nice guides on how to link samba to AD...

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question