Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84000 - maildrop with ldap should not automatically use config
Summary: maildrop with ldap should not automatically use config
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-03 14:09 UTC by Martin von Gagern
Modified: 2005-07-31 05:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2005-03-03 14:09:58 UTC
On out mailserver, we have USE=ldap, because we would one day like to use this. today I found that maildrop took several minutes to deliver mails. I finally tracked this down to the supplied (and never touched) default config /etc/maildrop/maildropldap.cf. This states a host ldap.server.yourdomain.com that really seems to exist. So every maildrop dried to establish a TCP connection and had to wait for a timeout.

Reproducible: Always
Steps to Reproduce:
1. USE=ldap in make.conf
2. emerge maildrop

Actual Results:  
Every maildrop process tries to contact ldap.server.yourdomain.com

Expected Results:  
Don't use ldap at all unless someone actually configures some sensible host

The easiest would be to just comment the hostname entry in the default
maildropldap.cf, but I'm not sure if perhaps some of the default_ settings would
still be used. In this case, all those entries should be comments as well, I think.
Comment 1 Fernando J. Pereda (RETIRED) gentoo-dev 2005-03-04 00:11:52 UTC
I don't think if you have ldap use flag activated the expected behavior is "not to use ldap unless someone actually configures some sensible host".

If you are not actually using ldap, just deactivate ldap use flag.

Cheers,
Ferdy
Comment 2 Martin von Gagern 2005-06-01 08:19:22 UTC
I reopen this bug because now I've got a scenario where this behaviour is even
more unexpected.

I've got a system completely without ldap. One user asks for the gnupg ldap
module to access ldap://keyserver.pgp.com, so I build gpg with the ldap USE
flag. As a dependency, openldap is built, to provide ldap client libs. The
openldap package provides the ldap use flag, so even if ldap is not included in
make.conf, suddenly maildrop does not work any more.

So I have a situation where just adding some feature to gnupg suddenly renders
maildrop slow when it is updated next, which might be months in between.

I am still of the opinion, that a USE flag should describe some feature made
available, not force the sysadmins to actually configure and use this feature.
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2005-06-01 08:33:28 UTC
You can always disable ldap USE flag for maildrop in /etc/portage/package.use.

Or, you can investigate a bit and propose a change to default config that would
fix this problem of yours.

The bottom line is, don't enable USE flags you don't actually need. Not even "if
you would one day like to use it".
Comment 4 Fernando J. Pereda (RETIRED) gentoo-dev 2005-07-31 05:29:43 UTC
In fact with newer versions of maildrop this isn't a problem anymore since it
uses courier-authlib.

Cheers,
Ferdy