Lion Server: How to enable webmail for Active Directory users

Learn how to enable webmail for Active Directory users.

  1. Using your favorite text editor, add the following lines to /usr/share/webmail/config/

    // Add site-specific require directive
    require_once(RCMAIL_CONFIG_DIR . '/');
  2. Create /usr/share/webmail/config/ with the following lines..

    $rcmail_config['imap_auth_type'] = LOGIN;
    $rcmail_config['default_host'] = 'tls://%n';
  3. Make sure SSL is enabled for the webmail and mail server because passwords may be clear text.
  4. Disable CRAM-MD5 authentication. and enable LOGIN and PLAIN authentication for IMAP in the Advanced Mail settings of Server Admin, or with the following commands.

    sudo serveradmin settings mail:imap:imap_auth_cram_md5=no
    sudo serveradmin settings mail:imap:imap_auth_login=yes
    sudo serveradmin settings mail:imap:imap_auth_plain=yes
  5. Use Server app to restart Mail.
Last Modified: Jul 29, 2011
  • Last Modified: Jul 29, 2011
  • Article: HT4776
  • Views:


Additional Product Support Information

Start a Discussion
in Apple Support Communities
See all questions on this article See all questions I have asked