• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Authentication failed: Cannot SASL Autheticate to server ...

Status
Für weitere Antworten geschlossen.

torbla

Member
Hallo Jungs,

brauche noch einmal Eure Hilfe, Ich bekomme immer die Meldung

Authentication failed: Cannot SASL Autheticate to server smtp1und1.de habe schon alles versucht. In meiner main.cf steht geanu die Anleitung von 1und1

relayhost = smtp.1und1.de
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

geht nicht immer die Meldung. Habe auch schon die sasl-passwd immer wieder neu geschrieben

smtp.1und1.de user:password

nichts immer der Fehler wo liegt mein Problem? Könnte ihr mir helfen?

postmap /etc/postfix/sasl_passwd

Habe die pakete


cyrus-sasl-saslauthd
cyrus-sasl-digestmd5
cyrus-sasl

Fehlt mir ein Paket???
 

crazyrolf

Advanced Hacker
Das sollte alles so richtig sein.

Nach den Änderungen bitte noch Postfix neu starten.

Also auf der Konsole ein "rcpostfix restart"

Bei 1und1 sieht das so aus:

1&1 DSL

Postausgangsserver: smtp.1und1.de
Benutzername: mxxxxxxx-yyyy (Paketnummer-Postfachkürzel)
Besonderheiten: Verwendet SMTP-Authentifizierung.

Ist also möglich, dass du deinen Benutzernamen nicht richtig angegeben hast.

Du kannst auch mal in deine /var/log/mail sehen, was da so steht.
 
OP
torbla

torbla

Member
Hallo crazyrolf

erst einmal danke für Deine Antwort, leider habe ich das alle schon überprüft in der mailq steht immer die fehler Meldung. Habe auch schon geschaut ob ich irgendwo einen Fehler in der main.cf habe, ohne Erfolg. Cyrus und smtp funktionieren intern wunderbar. Ich weiß leider auch nicht was ich noch machen kann. Habe in anderen Foren was von sasl-tls gelesen des Weiteren habe ich auch den Server
Code:
auth.smtp.kundenserver.de
veruscht immer das selbe. Habe 1000 mal rcsaslautjd restart, porstfix restart cyrus resatart ;-) gemacht nichts. Wo kann ich jetzt noch suchen??????
 
OP
torbla

torbla

Member
Okey dann wollen wir mal erst meine main.cf

Code:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550


smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
mydomain = paulus.intern
readme_directory = /usr/share/doc/packages/postfix/README_FILES
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = linux.paulus.intern
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost
mynetworks = 192.168.2.0/24 172.0.0.1/8
defer_transports =
disable_dns_lookups = no
relayhost = smtp.1und1.de
mailbox_command =
mailbox_transport = lmtp:unix:public/lmtp
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions =  reject_unknown_sender_domain,
                                permit_sasl_authenticated,
                                reject_unauth_destination
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = no
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000

Dann meine /etc/postfix/sasl_passwd

Code:
smtp.1und1.de username-nummer:password
Dann meine Fehlermeldung mailq

Code:
B9EC0D6938      605 Tue May 30 01:21:05  tblankertz@balnkertz-pm.de
(Authentication failed: cannot SASL authenticate to server smtp.1und1.de[212.227.15.130]: no mechanism available)
                                         tblankertz@blankertz-pm.de

Meine Fehlermeldung /var/log/mail

Code:
May 30 21:10:35 linux postfix/smtp[23920]: B9EC0D6938: to=<tblankertz@blankertrz-pm.de>, relay=smtp.1und1.de[212.227.15.130], delay=71370, status=deferred (Authentication failed: cannot SASL authenticate to server smtp.1und1.de[212.227.15.130]: no mechanism available)
 
OP
torbla

torbla

Member
JA habe ich

linux:~ # rcsaslauthd status
Checking for service saslauthd: running

chkconfig -l saslauthd
saslauthd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:ff 5:eek:n 6:eek:ff
 

crazyrolf

Advanced Hacker
Da fällt mir gerade nichts ein ................. sorry. :cry:

Vielleicht mal sasl saugen scr-code, compilieren und installieren.
 
Soll SMTP-AUTH sowohl im internen Netz als auch zur Übertragung der Mail an den Provider verwendet werden?

torbla schrieb:
Authentication failed: Cannot SASL Autheticate to server smtp1und1.de habe schon alles versucht. In meiner main.cf steht geanu die Anleitung von 1und1

relayhost = smtp.1und1.de
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

Die letzte Zeile steht so nicht in deiner geposteten main.cf, da steht "smtpd_sasl_security_options = noanonymous", und das bezieht sich auf das Entgegennehmen von Mails (smtpd -> smtp-daemon -> das Kerlchen, das lokal auf eintrudelnde Mails wartet).
torbla schrieb:
Habe die pakete

cyrus-sasl-saslauthd
cyrus-sasl-digestmd5
cyrus-sasl
Ich hab hier (opensuse 10.1) noch

cyrus-sasl-crammd5-2.1.21-18
cyrus-sasl-plain-2.1.21-18

Besonders das plain hört sich ja nicht uninteressant an...
Saslauthd wird IMHO nur gebraucht, wenn sich die einliefernden Clients per SASL-AUTH anmelden sollen. Zum Schicken braucht man es nicht (oder mein Postfix kann Wunder wirken...).

Ansonsten: Gibt /var/log/mail noch was her?
Funktioniert SMTP-AUTH direkt per Mailprogramm (Kmail, z.B.)?
Wie sind die Berechtigungen von /etc/postfix/sasl*?

Grüsse!!
 
OP
torbla

torbla

Member
Mhhhh sagt mal ist das eigentlich in cyrus normal das die user

user.norpau (\HasNoChildren) user.torbla (\HasNoChildren)

mit dem HasNoChildrin dargestellt werden?
 
OP
torbla

torbla

Member
Hallo youdonotexist,

danke für Deine Hilfe, da lag der fehler. Jetzt funktioniert es :). Obwohl ich jetzt nicht sagen kann ob es an dem smtpd oder die sals-plain lag. Danke
 
Status
Für weitere Antworten geschlossen.
Oben