Postfix + SASL

Netscape

New Member
Hi,

ich habe ein Problem mit SASL in Postfix 2.5.6.

Ich habe Postfix mit SASL kompiliert, aber es funktioniert nicht.

Code:
warning: smtpd_sasl_auth_enable is true, but SASL support is not compiled in

kompiliert habe ich so:
Code:
make tidy

make makefiles \
 CCARGS='-DUSE_SASL -DHAS_SSL -DHAS_MYSQL -DHAS_LDAP \
 -I/usr/include/sasl -I/usr/include/ssl \
 -I/usr/include/mysql -I/usr/include' \
 AUXLIBS='-L/usr/lib/sasl2 -L/usr/lib/openssl \
 -L/usr/lib/mysql -L/usr/lib \
 -lsasl2 -lcrypto -lssl -lmysqlclient -lz -lm -lldap -llber'

make upgrade

Kann mir einer sagen, was ich falsch mache?

OS ist CentOS 5.2
 
Weil ich auch den MySQL support brauche. Und da habe ich kein RPM gefunden. Aber so schwer kann das doch mit dem kompilieren auch nicht sein.
 
Also hab mal nachgeschaut.

Auf CentOS 5.0

Code:
postconf -m

btree
cidr
environ
hash
ldap
nis
pcre
proxy
regexp
static
unix

Auf CentOS 5.3

Code:
postconf -m

btree
cidr
environ
hash
ldap
nis
pcre
proxy
regexp
static
unix

hab postfix ganz normal über yum installiert. Da ist kein MySQL support dabei.
 
Ok, da gibts ne RPM Version. Mich würde aber trotzdem interessieren, warum das beim kompilieren nicht klappt.

Auch da das RPM noch V 2.3.3 ist würde ich lieber die V 2.5.6 mit SASL kompilieren
 
So, habs hinbekommen. Wenn mans nach der Postfix Doku macht klappts auch.

Code:
(for Cyrus SASL version 2.1.x):

    % make tidy # if you have left-over files from a previous build
    % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
        -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"

Postfix SASL Howto
 
Zu früh gefreut.

Wenn ich ein Telnet auf den Server mache zeigt er mir zwar an:

Code:
250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5

Aber einloggen kann ich mich nicht.

Postfix Log:
Code:
warning: SASL authentication failure: Can only find author/en (no password)
warning: unknown[192.168.0.50]: SASL PLAIN authentication failed: bad protocol / cancel

Und wenn ich ein testsaslauthd mache sagt er mir:
Code:
0: NO "authentication failed"

Den user hab ich mit saslpasswd2 angelegt.

Wenn ich testsaslauthd wie folgt aufrufe, sagt er mir connection refused
Code:
testsaslauthd -u abc@abc.xyz.de -p test -s smtpd -f /var/run/saslauthd
connect() : Connection refused


Das ist meine smtpd.conf unter /usr/lib/sasl2
Code:
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

Auszug aus der postfix main.cf:
Code:
smtpd_sasl_auth_enable = yes
smtpd_sasl_application_name = smtpd
 
Last edited by a moderator:
So, letztendlich hat es noch funktioniert.

Allerdings möchte ich noch etwas ändern. Und zwar sollen die Daten nicht in der sasldb2 abgelegt werden, sondern in einer SQL DB. Dafür mache ich aber einen neuen Thread auf.
 
Back
Top