![]()
From: Bulent OZKAN (bulent_ozkan@ktg.com.tr)
Date: Wed 01 Sep 2004 - 01:37:04 EEST
Merhaba
Yuzduk yuzduk kuyruguna geldik derken :((
[root@localhost /]# printf 'test\0test\0testpass' | mmencode
dGVzdAB0ZXN0AHRlc3RwYXNz
[root@localhost /]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
220 deneme.com ESMTP Postfix (2.0.13) (Mandrake Linux)
ehlo deneme.com
250-deneme.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN DIGEST-MD5
250-AUTH=PLAIN LOGIN DIGEST-MD5
250-XVERP
250 8BITMIME
AUTH PLAIN dGVzdAB0ZXN0AHRlc3RwYXNz
535 Error: authentication failed
AUTH PLAIN şifreyi yazdıktan sonra hata veriyor yabancı kaynaklardan
yararlanmaya çalıştım fakat anlayamadığım bir kısım var o
rdan olabilir mi?
(Alt kaynakta,ki 2- bolumu cozemedim sanırım bu hatayı,da oradan veri
yor.
Bu kismi bana nasil yapacagimi açıklayabilirseniz sevinirim.)
Mandrake 9.2 setup with Postfix + SASL SMTP_AUTH + PAM. Beat my head on the
wall with this one for a while..
Heres how I got it to work:
1- Follow the directions posted below by dlane@egressive.com
I only installed the following rpms:
libsasl2-plug-digestmd5-2.1.15-4mdk
cyrus-sasl-2.1.15-4mdk
libsasl2-plug-plain-2.1.15-4mdk
libsasl2-plug-login-2.1.15-4mdk
libsasl2-plug-sasldb-2.1.15-4mdk
libsasl2-2.1.15-4mdk
2- from the post by marco@mimecom.net you need to:
copy /var/lib/sasl2/* to /var/spool/postfix/var/lib/sasl2/*
copy /usr/lib/sasl2/* to /var/spool/postfix/usr/lib/sasl2/*
don't forget to hardlink the mux file like he states.
(I just put a ln -b blah blah command in the /etc/rc.d/init.d/saslauthd fi
le.
That way it's hardlinked every time saslauthd starts. I also put a rm -f to
delete the link when it stops. Maybe theres a better way?)
3- ramon.casha@linux.org.mt's post got me the last piece I needed.
although I didn't need an /etc/pam.conf, I DO need an /etc/pam.d/smtp file
! I
just copied the existing imap file in that directory and named it smtp.
ie. cp /etc/pam.d/imap /etc/pam.d/smtp
(this may not be the best solution, I haven't looked into what all the
different options of this file are. There doesn't seem to be anything
specific to smtp vs imap vs pop3.)
4- restart postfix and saslauthd and it should work. As always, Your Milea
ge
May Vary.
iyi calismalar
![]()