Debian Bug report logs - #437841
Postfix SASL configuration file smtpd.conf is placed in the wrong directory

version graph

Package: postfix; Maintainer for postfix is LaMont Jones <lamont@debian.org>; Source for postfix is src:postfix.

Reported by: Anton Chernev <maznio@doom.bg>

Date: Tue, 14 Aug 2007 13:27:01 UTC

Severity: normal

Tags: moreinfo

Found in version postfix/2.3.8-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#437841; Package postfix. Full text and rfc822 format available.

Acknowledgement sent to Anton Chernev <maznio@doom.bg>:
New Bug report received and forwarded. Copy sent to LaMont Jones <lamont@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Anton Chernev <maznio@doom.bg>
To: submit@bugs.debian.org
Subject: Postfix SASL configuration file smtpd.conf is placed in the wrong directory
Date: Tue, 14 Aug 2007 16:23:46 +0300
Package: postfix
Version: 2.3.8-2

The configuration file for Postfix SASL (smtpd.conf) is placed in the 
/etc/postfix/sasl/ directory. However, it is never read by the daemons.
As a result, the authentication falls back to the default, using the 
file /etc/sasldb2 (sasldb mechanism) and offering all available 
authentication methods.

The workaround is to move the file to /usr/lib/sasl2/ directory (the 
default for Cyrus SASL2, IIRC).
A fix would probably be to reconfigure the prefix for the file while 
building the package.

I am not sure which package this file belongs to, as dpkg returns the 
following:
> dpkg: /etc/postfix/sasl/smtpd.conf not found.

I am using Debian GNU/Linux 4.0 (Etch), kernel version: 2.6.21.1, libc6 
version: 2.3.6.ds1-13
I am omitting hardware details, as this is clearly not a hardware issue.

The following warning are logged:
postfix/smtpd[25479]: warning: SASL authentication problem: unable to 
open Berkeley db /etc/sasldb2: No such file or directory
postfix/smtpd[25479]: warning: SASL authentication problem: unable to 
open Berkeley db /etc/sasldb2: No such file or directory
postfix/smtpd[25479]: warning: SASL authentication failure: no secret in 
database
postfix/smtpd[25479]: warning: hostname[x.x.x.x] SASL CRAM-MD5 
authentication failed: authentication failure
postfix/smtpd[25479]: warning: SASL authentication problem: unable to 
open Berkeley db /etc/sasldb2: No such file or directory
postfix/smtpd[25479]: warning: SASL authentication problem: unable to 
open Berkeley db /etc/sasldb2: No such file or directory
postfix/smtpd[25479]: warning: SASL authentication failure: no secret in 
database
postfix/smtpd[25479]: warning: hostname[x.x.x.x] SASL NTLM 
authentication failed: authentication failure
postfix/smtpd[25479]: warning: SASL authentication problem: unable to 
open Berkeley db /etc/sasldb2: No such file or directory
postfix/smtpd[25479]: warning: SASL authentication failure: Password 
verification failed
postfix/smtpd[25479]: warning: hostname[x.x.x.x] SASL PLAIN 
authentication failed: authentication failure
postfix/smtpd[25479]: warning: SASL authentication problem: unable to 
open Berkeley db /etc/sasldb2: No such file or directory
postfix/smtpd[25479]: warning: hostname[x.x.x.x] SASL LOGIN 
authentication failed: authentication failure




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#437841; Package postfix. Full text and rfc822 format available.

Acknowledgement sent to LaMont Jones <lamont@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #10 received at 437841@bugs.debian.org (full text, mbox, reply):

From: LaMont Jones <lamont@debian.org>
To: Anton Chernev <maznio@doom.bg>, 437841@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#437841: Postfix SASL configuration file smtpd.conf is placed in the wrong directory
Date: Tue, 14 Aug 2007 07:58:52 -0600
tags 437841 + moreinfo

On Tue, Aug 14, 2007 at 04:23:46PM +0300, Anton Chernev wrote:
> The configuration file for Postfix SASL (smtpd.conf) is placed in the 
> /etc/postfix/sasl/ directory. However, it is never read by the daemons.
> As a result, the authentication falls back to the default, using the 
> file /etc/sasldb2 (sasldb mechanism) and offering all available 
> authentication methods.

> I am using Debian GNU/Linux 4.0 (Etch), kernel version: 2.6.21.1, libc6 
> version: 2.3.6.ds1-13
> I am omitting hardware details, as this is clearly not a hardware issue.

What architecture are you running on?  Other people are using postfix
2.3.8-2 on x86 with no issues, so this may be a build issue....

lamont



Tags added: moreinfo Request was from LaMont Jones <lamont@debian.org> to control@bugs.debian.org. (Tue, 14 Aug 2007 14:00:04 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#437841; Package postfix. Full text and rfc822 format available.

Acknowledgement sent to Anton Chernev <maznio@doom.bg>:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>. Full text and rfc822 format available.

Message #17 received at 437841@bugs.debian.org (full text, mbox, reply):

From: Anton Chernev <maznio@doom.bg>
To: 437841@bugs.debian.org
Subject: Re: Bug#437841: Postfix SASL configuration file smtpd.conf is placed in the wrong directory
Date: Tue, 14 Aug 2007 18:23:59 +0300
LaMont Jones wrote:
> tags 437841 + moreinfo
>
> On Tue, Aug 14, 2007 at 04:23:46PM +0300, Anton Chernev wrote:
>   
>> The configuration file for Postfix SASL (smtpd.conf) is placed in the 
>> /etc/postfix/sasl/ directory. However, it is never read by the daemons.
>> As a result, the authentication falls back to the default, using the 
>> file /etc/sasldb2 (sasldb mechanism) and offering all available 
>> authentication methods.
>>     
>
>   
>> I am using Debian GNU/Linux 4.0 (Etch), kernel version: 2.6.21.1, libc6 
>> version: 2.3.6.ds1-13
>> I am omitting hardware details, as this is clearly not a hardware issue.
>>     
>
> What architecture are you running on?  Other people are using postfix
> 2.3.8-2 on x86 with no issues, so this may be a build issue....
>
> lamont
>   
I am also using x86.
Indeed, I have recompiled Postfix to add a trash quota patch, by using 
the dpkg-build routine.
I haven't touched anything in the source or the debian control/rules 
files, so my guess is this won't be the source of trouble.

What I'm not sure about is whether this is caused by Postfix, libsasl2, 
libsasl2-modules or sasl2-bin; I couldn't find out which package 
contains this file.

Anton



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#437841; Package postfix. Full text and rfc822 format available.

Acknowledgement sent to LaMont Jones <lamont@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #22 received at 437841@bugs.debian.org (full text, mbox, reply):

From: LaMont Jones <lamont@debian.org>
To: Anton Chernev <maznio@doom.bg>, 437841@bugs.debian.org
Subject: Re: Bug#437841: Postfix SASL configuration file smtpd.conf is placed in the wrong directory
Date: Tue, 14 Aug 2007 21:07:33 -0600
On Tue, Aug 14, 2007 at 06:23:59PM +0300, Anton Chernev wrote:
> LaMont Jones wrote:
> I am also using x86.
> Indeed, I have recompiled Postfix to add a trash quota patch, by using 
> the dpkg-build routine.

dpkg-buildpackage should result in the patches that you need...
strings -a /usr/lib/postfix/smtpd | grep "sasl:/usr/lib/sasl2" should
result in output, or you've managed to drop a patch.

> What I'm not sure about is whether this is caused by Postfix, libsasl2, 
> libsasl2-modules or sasl2-bin; I couldn't find out which package 
> contains this file.

The file is created either by the admin or by postfix (but I think
admin...)  and would belong to postfix.  If the strings | grep above
produces output, then life is interesting and I'm not sure who's broken.

lamont



Information forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#437841; Package postfix. Full text and rfc822 format available.

Acknowledgement sent to Anton Chernev <maznio@doom.bg>:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>. Full text and rfc822 format available.

Message #27 received at 437841@bugs.debian.org (full text, mbox, reply):

From: Anton Chernev <maznio@doom.bg>
To: 437841@bugs.debian.org
Subject: Re: Bug#437841: Postfix SASL configuration file smtpd.conf is placed in the wrong directory
Date: Wed, 15 Aug 2007 12:39:06 +0300
LaMont Jones wrote:
> On Tue, Aug 14, 2007 at 06:23:59PM +0300, Anton Chernev wrote:
>   
>> LaMont Jones wrote:
>> I am also using x86.
>> Indeed, I have recompiled Postfix to add a trash quota patch, by using 
>> the dpkg-build routine.
>>     
>
> dpkg-buildpackage should result in the patches that you need...
> strings -a /usr/lib/postfix/smtpd | grep "sasl:/usr/lib/sasl2" should
> result in output, or you've managed to drop a patch.
>
>   
>> What I'm not sure about is whether this is caused by Postfix, libsasl2, 
>> libsasl2-modules or sasl2-bin; I couldn't find out which package 
>> contains this file.
>>     
>
> The file is created either by the admin or by postfix (but I think
> admin...)  and would belong to postfix.  If the strings | grep above
> produces output, then life is interesting and I'm not sure who's broken.
>
> lamont
>   

Here is the output of the command you suggested:

> $ strings -a /usr/lib/postfix/smtpd | grep "sasl:/usr/lib/sasl2"
> /etc/postfix/sasl:/usr/lib/sasl2
> $

Does that mean it looks for the file in both places?

Anton



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#437841; Package postfix. Full text and rfc822 format available.

Acknowledgement sent to LaMont Jones <lamont@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #32 received at 437841@bugs.debian.org (full text, mbox, reply):

From: LaMont Jones <lamont@debian.org>
To: Anton Chernev <maznio@doom.bg>, 437841@bugs.debian.org
Subject: Re: Bug#437841: Postfix SASL configuration file smtpd.conf is placed in the wrong directory
Date: Wed, 15 Aug 2007 08:47:47 -0600
On Wed, Aug 15, 2007 at 12:39:06PM +0300, Anton Chernev wrote:
> >$ strings -a /usr/lib/postfix/smtpd | grep "sasl:/usr/lib/sasl2"
> >/etc/postfix/sasl:/usr/lib/sasl2

> Does that mean it looks for the file in both places?

That is the path that postfix provides to sasl.  It also tells me that
you're running a version of postfix that didn't allow an alternate
config directory for sasl (hardcoded /etc/postfix).  It's also possible
that said version has the defect that it only half-dealt with the path
split that sasl did a bit ago...  does debian/patches/10tls.dpatch add a
routine called xsasl_getconfpath?

What version of postfix are we talking about here?

lamont



Information forwarded to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#437841; Package postfix. Full text and rfc822 format available.

Acknowledgement sent to Anton Chernev <maznio@doom.bg>:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>. Full text and rfc822 format available.

Message #37 received at 437841@bugs.debian.org (full text, mbox, reply):

From: Anton Chernev <maznio@doom.bg>
To: 437841@bugs.debian.org
Subject: Re: Bug#437841: Postfix SASL configuration file smtpd.conf is placed in the wrong directory
Date: Thu, 16 Aug 2007 14:43:48 +0300
LaMont Jones wrote:
>  On Wed, Aug 15, 2007 at 12:39:06PM +0300, Anton Chernev wrote:
> >> $ strings -a /usr/lib/postfix/smtpd | grep "sasl:/usr/lib/sasl2"
> >> /etc/postfix/sasl:/usr/lib/sasl2
>
> > Does that mean it looks for the file in both places?
>
>  That is the path that postfix provides to sasl.  It also tells me
>  that you're running a version of postfix that didn't allow an
>  alternate config directory for sasl (hardcoded /etc/postfix).  It's
>  also possible that said version has the defect that it only
>  half-dealt with the path split that sasl did a bit ago...  does
>  debian/patches/10tls.dpatch add a routine called xsasl_getconfpath?
>
>  What version of postfix are we talking about here?
>
>  lamont

No such routine is mentioned in any of the files in the debian/patches 
directory (the file you mentioned is 50tls.dpatch, btw).
I thought the first post mentions the version in the pseudo-header, 
namely 2.3.8-2.

I have obtained these sources by doing an "apt-get source postfix" after 
an apt database update on Etch. How could this result in getting 
outdated sources? In aptitude it seems this is the latest version of the 
package.

Anton



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun May 31 23:03:16 2015; Machine Name: buxtehude

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.