On Sun, 2003-06-01 at 10:17, Luca Olivetti wrote:
> En/na Jack Coates ha escrit:
> > hey,
> > 
> > just upgraded my server from 9.0 to 9.1, went fairly smoothly but my
> > Postfix SASL setup is now busted. Since I need SMTP AUTH to work, this
> > is a problem :-)
> 
> If you're using the sasldb, sasl v1 (i.e libsasl7) packages are broken 
> in 9.1, since they're compiled with gdbm as the backend instead of 
> berkeley db. The problem originates from the fact that they combined in 
> the same srpm both sasl v1 and sasl v2. Since sasl v1 isn't developed 
> anymore it doesn't support the latest version of berkeley db, while sasl 
> v2 does. In the combined package you can buildrequire libdb3.3-devel or 
> libdb4.0-devel but not both, so the old library version is linked with 
> gdbm instead. I have experimental packages with separate srpm for sasl 
> v1 and sasl v2 (each linked with the "correct" database library) but the 
> maintaner didn't accept them because he says they don't compile in cooker.
> I suppose you can grab the current srpm, replace the "Buildrequires: 
> libdb4.0-devel" with "Buildrequires: libdb3.3-devel" and tweak configure 
> options for sasl v1 (remove the --with-gdbm or something similar).
> 
> Bye

thanks for the tip -- this makes sense, so I did as you suggested and
got the Mandrake 9.1 srpm, -ivh'ed it, edited the spec and changed
buildrequire from libdb4.0-devel to libdb3.3-devel, and installed all
the relevant -devel packages. I then had to remove all gdbm related
lines completely, including the patch lines, in order to make it compile
cleanly. Once that was done I gave it a for i in `rpm -qa|grep sasl`;do
rpm -e $i --nodeps;done and then installed all the freshly made RPMS,
ensuring that mine were installing rather than the stock 9.1 RPMs by
replacing the stock ones with these in my hard disk source.

I've then restarted Postfix and gotten no change in behavior :-(

So, unless there's an error up there I'm back to the Postfix config.
Anything obviously wrong here?

/etc/postfix/main.cf
...
# SASL related configuration
# server
smtpd_use_tls = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
# Should be "noanonymous noplaintext" but Outlook* and Mozilla can't do 
# the encrypted authentication properly. Sigh.
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, check_relay_domains
# client
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/var/lib/sasl/sasl

[EMAIL PROTECTED] root]# ll /var/lib/sasl
total 16
srwxrwxrwx    1 root     root            0 May 30 23:43 mux=
-rw-------    1 root     root            5 May 30 23:43 mux.pid
-rw-r--r--    1 root     root        12288 May 31 22:27 sasl.db
[EMAIL PROTECTED] root]# ll /var/lib/sasl2
total 4
srwxrwxrwx    1 root     root            0 Jun  1 19:35 mux=
-rw-------    1 root     root            0 May 31 00:14 mux.accept
-rw-------    1 root     root            6 Jun  1 19:35 mux.pid
lrwxrwxrwx    1 root     root           21 May 31 22:09 sasl.db ->
/var/lib/sasl/sasl.db

[EMAIL PROTECTED] root]# ls /usr/lib/sasl
libanonymous.a           libdigestmd5.la*         liblogin.so.0@
libanonymous.la*         libdigestmd5.so@         liblogin.so.0.0.7*
libanonymous.so@         libdigestmd5.so.0@       libplain.a
libanonymous.so.1@       libdigestmd5.so.0.0.20*  libplain.la*
libanonymous.so.1.0.17*  libgssapiv2.a            libplain.so@
libcrammd5.a             libgssapiv2.la*          libplain.so.1@
libcrammd5.la*           libgssapiv2.so.1@        libplain.so.1.0.16*
libcrammd5.so@           libgssapiv2.so.1.0.19*   smtpd.conf
libcrammd5.so.1@         liblogin.a               smtpd.conf~
libcrammd5.so.1.0.19*    liblogin.la*
libdigestmd5.a           liblogin.so@
[EMAIL PROTECTED] root]# ls /usr/lib/sasl2
libanonymous.a           libgssapiv2.la*         libotp.so.2.0.12*
libanonymous.la*         libgssapiv2.so.2@       libplain.a
libanonymous.so@         libgssapiv2.so.2.0.12*  libplain.la*
libanonymous.so.2@       liblogin.a              libplain.so@
libanonymous.so.2.0.12*  liblogin.la*            libplain.so.2@
libcrammd5.a             liblogin.so@            libplain.so.2.0.12*
libcrammd5.la*           liblogin.so.2@          libsasldb.a
libcrammd5.so@           liblogin.so.2.0.12*     libsasldb.la*
libcrammd5.so.2@         libntlm.a               libsasldb.so.2@
libcrammd5.so.2.0.12*    libntlm.la*             libsasldb.so.2.0.12*
libdigestmd5.a           libntlm.so@             libsrp.a
libdigestmd5.la*         libntlm.so.2@           libsrp.la*
libdigestmd5.so@         libntlm.so.2.0.12*      libsrp.so@
libdigestmd5.so.2@       libotp.a                libsrp.so.2@
libdigestmd5.so.2.0.12*  libotp.la*              libsrp.so.2.0.12*
libgssapiv2.a            libotp.so.2@            smtpd.conf


[EMAIL PROTECTED] root]# cat /usr/lib/sasl/smtpd.conf
pwcheck_method: sasldb

sasldblistusers1 /var/lib/sasl/sasl.db works as expected, so does
sasldblistusers2 /var/lib/sasl/sasl.db

I'm running out of ideas, and I need to get it working soon. Help,
please :-)
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...
http://www.monkeynoodle.org/resume.html


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to