OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: /usr/lib/sasl2 failed to open directory

From: Wietse Venema (wietseporcupine.org)
Date: Sun May 27 2007 - 16:36:47 CDT


Mark Edwards:
> On May 26, 2007, at 7:39 PM, Mark Edwards wrote:
>
> > Updating from postfix 2.3.3 to postfix 2.3.8 on Ubuntu (that's the
> > Edgy to Feisty update) I suddenly started getting warnings in the
> > logs:
> >
> > May 25 15:37:41 mini postfix/smtpd[4735]: looking for plugins in '/
> > usr/lib/sasl2', failed to open directory, error: No such file or
> > directory
>
> After doing some research on this situation, I believe the following
> are true:
>
> * These errors are occurring whenever postfix encounters an sasl-
> related directive

Correction: libsasl encounters an sasl-related directive.
            =======

Postfix could not care less where libsasl keeps its files.

> * postfix tries to access /usr/lib/sasl2 because the Ubuntu package
> is compiled with cyrus-sasl support

Correction: libsasl tries to access /usr/lib/sasl2.
            =======

Postfix could not care less where libsasl keeps its files.

> 2) Why does postfix insist on bothering with /usr/lib/sasl2 when I
> have smtpd_sasl_type = dovecot? Is there a way to configure postfix
> so it ignores cyrus-sasl, even though its compiled to support it?

Perhaps because you configured SMTP_sasl_xxx instead of SMTPD_sasl_xxx?

        Wietse