Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

LDAP address searches for Mutt

Project Description

Mutt-LDAP provides an external address query script for Mutt which connects to LDAP databases using python-ldap. It can cache queries locally in case your LDAP server is slow or not always available, expiring cached queries after a configurable amount of time.




I’ve packaged Mutt-LDAP for Gentoo. You need layman and my wtk overlay. Install with:

# emerge -av app-portage/layman
# layman --add wtk
# emerge -av mail-client/mutt-ldap


If you’re installing by hand or packaging Mutt-LDAP for another distribution, you’ll need the following dependencies:

Package Purpose Debian Gentoo
python-ldap LDAP connections python-ldap dev-python/python-ldap

Installing by hand

Mutt-LDAP is available as a Git repository:

$ git clone git://

It is also mirrored on GitHub. To install the checkout, run the standard:

$ python install

or you can just copy into to your PATH.


Add the following line to your ~/.muttrc:

set query_command = " '%s'"

Search for addresses (from Mutt) with ^t, optionally after typing part of the name. Configure your connection by creating ~/.mutt-ldap.rc contaning something like:

server =
basedn = ou=people,dc=example,dc=net

See the CONFIG options in for other available settings.


This project is distributed under the GNU General Public License Version 3 or greater.


Use the GitHub issue tracker to submit bugs.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(17.6 kB) Copy SHA256 Hash SHA256
Source None Jan 20, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate