2 msgDuplicate messages with always_bcc
14 msg[OT] Saving outgoing email Gmail style
3 msg451 error
10 msgPostfix 2.5 release candidate (and 2.6 snapshot...
2 msgpostfix errors when sending smtp auth via yahoo
4 msgDocumentation enhancement: Adjusting DB file pe...
11 msgI don't want Postfix to confirm users via telnet
3 msgQuestion on Earthlink and dnsbl.sorbs.net
36 msgRe: Enforced Outbound TLS (part deux)
6 msgsmtpd_proxy_filter to unix: problem

Again troubles with postfix and cyrus-sasl
\ Jevos, Peter (15 Jan 2008)
. \ Patrick Ben Koetter (15 Jan 2008)
. . \ Jevos, Peter (15 Jan 2008)
. \ Jevos, Peter (16 Jan 2008)

3 msgExclude local host from smtpd_proxy_filter
4 msgtransport nexthop nexthop
3 msgTLS has been selected, but TLS support is not c...
2 msgWhich documentation to read for this..
4 msgExchange 2003 to Postfix maildir migration
7 msgvirtual_mailbox_base & LDAP
12 msgEnforced Outbound TLS
2 msgpostfix+maildrop error
10 msgOutgoing IP address
Subject:Again troubles with postfix and cyrus-sasl
Group:Postfix-users
From:Jevos, Peter
Date:16 Jan 2008


 
Hi ,

I Installed cyrus-sasl and postfix but when I run saslfinger -s smtpd links to the differernt locations of sasl libs.

smtpd is linked to --
libsasl2.so.2 => /usr/lib64/libsasl2.so.2

and should be pointing to libsasl2.so.2 => /usr/local/lib/libsasl2.so.2

how can I change it ? I tried to recompile postfix many times

Then logs shows :

warning: SASL authentication failure: Couldn't find mech plain
mail2 postfix/smtpd[6042]: warning: localhost[127.0.0.1]: SASL plain authentication failed

Thanks

BR

pet

>
> * Jevos, Peter <Peter.Jevos>:
> > Sorry for disturbing again with this vast topic but after 3 days
> > struggeling and changing everything I have to write into this forum.
> >
> > I installed Cyrus-sasl-2.1.20:
> >
> > ./configure --enable-anon --enable-plain --enable-login --enable-sql
> > --disable-krb4 --disable-otp --disable-cram --disable-digest
> > --with-mysql=/usr/
> > --without-pam --without-saslauthd --without-pwcheck
> > --with-dblib=berkeley --with-bdb-libdir=/usr/lib64/
> > --with-bdb-incdir=/usr/include/
> > --with-openssl=/usr/share/ssl --with-plugindir=/usr/local/lib/sasl2
> >
> > And did ln -s /usr/local/lib/sasl2 /usr/lib/sasl2. So I can say that
> > cyrus-sasl is installed correctly
> > Then I installed postfix-2.2.9 with:
> >
> > make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -
> DUSE_SASL_AUTH
> > -DUSE_CYRUS_SASL -I/usr/local/include/sasl -I/usr/include'
> > 'AUXLIBS=-L/usr/lib64/mysql -lmysqlclient -lz -lm -L/usr/local/lib
> > -lsasl2 -L/usr/lib64/'
> >
> > When I try sasl test through telnet my error message is:
> >
> > Jan 15 11:01:30 mail2 postfix/smtpd[29690]: warning: SASL
> authentication
> > failure: Couldn't find mech plain
> > Jan 15 11:01:30 mail2 postfix/smtpd[29690]: warning:
> > localhost[127.0.0.1]: SASL plain authentication failed
> > Jan 15 11:01:32 mail2 postfix/smtpd[29690]: lost connection after
> AUTH
> > from localhost[127.0.0.1]
> >
> > When I run saslfinger -s I get:
> >
> > -- basics --
> > Postfix: 2.2.9
> > System:
> > Welcome to SUSE LINUX Enterprise Server 9 (x86_64) - Kernel \r (\l).
> >
> > -- smtpd is linked to --
> > libsasl2.so.2 => /usr/lib64/libsasl2.so.2
> (0x0000002a95a16000)
> >
> > -- active SMTP AUTH and TLS parameters for smtpd --
> > broken_sasl_auth_clients = yes
> > smtpd_sasl_auth_enable = yes
> > smtpd_sasl_local_domain =
> > smtpd_sasl_security_options = noanonymous
> >
> >
> > -- listing of /usr/lib/sasl2 --
> > total 16
> > drwxr-xr-x 2 root root 4096 Jan 15 10:51 .
> > drwxr-xr-x 21 root root 4096 Jan 15 10:05 ..
> > drwxr-xr-x 2 root root 4096 Jan 15 10:50 sasl2
> > -r-------- 1 postfix postfix 260 Jan 14 18:10 smtpd.conf
>
> Your symlink from /usr/lib/sasl2 to /usr/local/lib/sasl2 did not work.
> Fix it.

Dear Patrick

Thnanks for your answer.

I fixed it.

-- listing of /usr/lib/sasl2 --
total 1316
drwxr-xr-x 2 root root 4096 Jan 15 10:50 .
drwxr-xr-x 4 root root 4096 Jan 15 10:50 ..
-rwxr-xr-x 1 root root 713 Jan 15 10:50 libanonymous.la
-rwxr-xr-x 1 root root 68307 Jan 15 10:50 libanonymous.so
-rwxr-xr-x 1 root root 68307 Jan 15 10:50 libanonymous.so.2
-rwxr-xr-x 1 root root 68307 Jan 15 10:50 libanonymous.so.2.0.20
-rwxr-xr-x 1 root root 697 Jan 15 10:50 liblogin.la
-rwxr-xr-x 1 root root 70029 Jan 15 10:50 liblogin.so
-rwxr-xr-x 1 root root 70029 Jan 15 10:50 liblogin.so.2
-rwxr-xr-x 1 root root 70029 Jan 15 10:50 liblogin.so.2.0.20
-rwxr-xr-x 1 root root 697 Jan 15 10:50 libplain.la
-rwxr-xr-x 1 root root 69915 Jan 15 10:50 libplain.so
-rwxr-xr-x 1 root root 69915 Jan 15 10:50 libplain.so.2
-rwxr-xr-x 1 root root 69915 Jan 15 10:50 libplain.so.2.0.20
-rwxr-xr-x 1 root root 739 Jan 15 10:50 libsasldb.la
-rwxr-xr-x 1 root root 113497 Jan 15 10:50 libsasldb.so
-rwxr-xr-x 1 root root 113497 Jan 15 10:50 libsasldb.so.2
-rwxr-xr-x 1 root root 113497 Jan 15 10:50 libsasldb.so.2.0.20
-rwxr-xr-x 1 root root 703 Jan 15 10:50 libsql.la
-rwxr-xr-x 1 root root 84678 Jan 15 10:50 libsql.so
-rwxr-xr-x 1 root root 84678 Jan 15 10:50 libsql.so.2
-rwxr-xr-x 1 root root 84678 Jan 15 10:50 libsql.so.2.0.20
-r-------- 1 postfix postfix 260 Jan 14 18:10 smtpd.conf>

....

> smtpd tells libsasl to do auth. libsasl looks in /usr/lib/sasl2 and
> cannot
> find a mechanism. Then things turn bad... ;)





© 2004-2008 readlist.com