Re: 4.8 mit postfix

From: Sven Pfeifer <sven(at)yagonna.de>
Date: Tue, 5 Aug 2003 17:58:00 +0200

Hi Andreas,

Andreas Totlis <usenet(at)esct.org> wrote:
[...]
> Aug 5 16:26:03 baldur postfix/smtp[35780]: maps_find: smtp_sasl_passwd: hash:/usr/local/etc/postfix/smtp_auth: provider = username:geheim
> Aug 5 16:26:03 baldur postfix/smtp[35780]: smtp_sasl_passwd_lookup: host `provider' user `username' pass `geheim'
> Aug 5 16:26:03 baldur postfix/smtp[35780]: starting new SASL client
> Aug 5 16:26:03 baldur postfix/smtp[35780]: smtp_sasl_authenticate: provider[provider.ip]: SASL mechanisms CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
> Aug 5 16:26:03 baldur postfix/smtp[35780]: > provider[provider.ip]: AUTH DIGEST-MD5
> Aug 5 16:26:03 baldur postfix/smtp[35780]: < provider[provider.ip]: 334 cmVhbG09ImN3bmV0NSIsbm9uY2U9IjNHVGpvUzF2N3dacFp3ZS8zRTNxT0N2aTNNKzYzczk4b3hKRWVmL29NWFE9Iixxb3A9ImF1dGgsYXV0aC1pbnQiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz
> Aug 5 16:26:03 baldur postfix/smtp[35780]: smtp_sasl_authenticate: provider[provider.ip]: decoded challenge: realm="cwnet5",nonce="3GTjoS1v7wZpZwe/3E3qOCvi3M+63s98oxJEef/oMXQ=",qop="auth,auth-int",charset=utf-8,algorithm=md5-sess
> Aug 5 16:26:03 baldur postfix/smtp[35780]: smtp_sasl_get_user: username
> Aug 5 16:26:03 baldur postfix/smtp[35780]: smtp_sasl_get_user: username
> Aug 5 16:26:03 baldur postfix/smtp[35780]: smtp_sasl_get_passwd: geheim
> Aug 5 16:26:03 baldur postfix/smtp[35780]: smtp_sasl_authenticate: provider[provider.ip]: uncoded client response username="username",realm="cwnet5",nonce="3GTjoS1v7wZpZwe/3E3qOCvi3M+63s98oxJEef/oMXQ=",cnonce="hvwt00uhyKDYAVUhApXhazyY4ONRMqIjQU0uehUMnoc=",nc=00000001,qop=auth,digest-uri="smtp/provider",response=6408c91d78cda21e4bfd558fbcd24a99
> Aug 5 16:26:03 baldur postfix/smtp[35780]: > provider[provider.ip]: dXNlcm5hbWU9ImVzY3QzIixyZWFsbT0iY3duZXQ1Iixub25jZT0iM0dUam9TMXY3d1pwWndlLzNFM3FPQ3ZpM00rNjNzOThveEpFZWYvb01YUT0iLGNub25jZT0iaHZ3dDAwdWh5S0RZQVZVaEFwWGhhenlZNE9OUk1xSWpRVTB1ZWhVTW5vYz0iLG5jPTAwMDAwMDAxLHFvcD1hdXRoLGRpZ2VzdC11cmk9InNtdHAvY3duZXQ1LndpcmVsZXNzbmV0LmRlIixyZXNwb25zZT02NDA4YzkxZDc4Y2RhMjFlNGJmZDU1OGZiY2QyNGE5OQ==
[...]
>
> Andreas -
>

hast Du schon mal versucht den SMTP-Auth von Hand zu testen? Hier
ein kleines Script, dass einen solchen Test durchführt. Kannst Die
einzelnen Befehle aber auch an der Kommandozeile ausführen.

---8<----------
#!/bin/sh
##########################################################################
# Postfix SASL Test Script
# Copyright (C) 2002, Hiroaki Izumi. All right reserved.
##########################################################################
PRE_SLEEP=2
POST_SLEEP=3
SMTPSERVER=[IP.Adresse.des.Providers]
MYDOMAIN=deine-eigene-domain.de
USER=dein-username-beim-provider
PASS=ein-streing-geheimes-passwort-mit-einem-punkt.
ENPASS=`perl -MMIME::Base64 -e "print
encode_base64(\"$USER\0$USER\0$PASS\");"`

(
    echo "EHLO $MYDOMAIN"
    echo "AUTH PLAIN $ENPASS"
    echo "QUIT"
) | while read cmd ; do
    sleep $PRE_SLEEP
    echo $cmd 1>&2
    echo $cmd
    sleep $POST_SLEEP
done | telnet $SMTPSERVER smtp 2>&1 | tee result.$$
echo "#"

if grep "235 Authentication successful" result.$$ ; then
        echo "Did it."
else
        echo "Loser. Check your settings."
fi

rm -f result.$$

exit 1
---------->8---

vielleicht ist es ja nicht mal postfix, sondern wirklich die Kombi
Username/Passwort.

        Sven

-- 
Why you can't find your system administrators:
  has worked so much overtime he is now owed 6 months contiguous,
  paid leave.
------------------------------------------------------[rand. sig. #20]
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Tue 05 Aug 2003 - 17:57:49 CEST

search this site