skip to navigation
skip to content

Not Logged In

mutt-ldap 0.1

LDAP address searches for Mutt

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.

File Type Py Version Uploaded on Size
mutt-ldap-0.1.tar.gz (md5) Source 2013-01-20 17KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 24 downloads in the last week
  • 109 downloads in the last month