Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or direc

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
jakob2002
Posts: 34
Joined: 2004-01-01 13:38
 

Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or direc

Post by jakob2002 »

Hallo,

Irgendwie will mein Postfix keine Mails versenden.
saslauthd läuft, und Authentifizierung mit testsaslauthd klappt auch.
Wenn ich aber mit Postfix versenden will, kann er sich nicht authentifizieren. Folgendes erscheint im Log:
Jan 5 00:24:56 h1151569 postfix/smtpd[13060]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Jan 5 00:24:56 h1151569 postfix/smtpd[13060]: warning: manz-590cd2a0.pool.einsundeins.de[xxx.xxx.xxx.xxx]: SASL LOGIN authentication failed
Postfix ist in der Gruppe von SASL.

postconf -n:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
maps_rbl_domains = relays.ordb.org
message_size_limit = 0
mydestination = xxxxxx.de, localhost
myhostname = xxxxxx.de
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_maps_rbl, check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
/etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
System ist Debian Sarge.

Ist bestimmt nur irgendein kleiner Fehler, den ich in der späten Stunde übersehen habe. Ich hoffe ich habe keine Infos vergessen.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by Roger Wilco »

Dein Postfix (bzw. smtpd) läuft wahrscheinlich in einer chroot-Umgebung, in der kein Zugriff auf den Socket von saslauthd möglich ist. Schau in deiner master.cf nach.
jakob2002
Posts: 34
Joined: 2004-01-01 13:38
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by jakob2002 »

Hm, tatsächlich. Ich habe gedacht wenn da ein "-" steht ist es keine chroot-Umgebung, aber scheinbar doch. Ich habe jetzt vorerst "n" eingestellt und jetzt macht er das.
Allerdings habe ich noch ein anderes Problem mit Postfix: Wenn ich jetzt an eine eMail-Adresse auf diesen Server eine eMail schicke, dann kommt sie von Postfix zurück mit dem Hinweis: User unknown in virtual alias table.
Die Logs sagen auch nicht mehr dazu.
Allerdings werden die alias-table von Confixx korrekt erzeugt. Wo liegt denn da das Problem?
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by Roger Wilco »

jakob2002 wrote:Allerdings werden die alias-table von Confixx korrekt erzeugt. Wo liegt denn da das Problem?
Du hast die entsprechende Datei (zumindest in der geposteten Konfiguration) nicht eingebunden. /etc/aliases ist IMHO nicht die Datei, die Confixx generiert.
jakob2002
Posts: 34
Joined: 2004-01-01 13:38
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by jakob2002 »

Confixx erstellt in der main.cf den folgenden Eintrag:
virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
Allerdings wird dieser seltsamerweise nicht bei postconf -n angezeigt.

Fehlermeldungen gibt es auch nicht....
compositiv
Posts: 193
Joined: 2003-01-22 14:58
Location: Hamburg
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by compositiv »

Sind die Confixx-Dateien in den virtual_maps eingetragen?
jakob2002
Posts: 34
Joined: 2004-01-01 13:38
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by jakob2002 »

Compositiv wrote:Sind die Confixx-Dateien in den virtual_maps eingetragen?
Habe nicht verstanden was du meinst ... Also die Pfade zu den Confixx Dateien, die in virtual_maps eingetragen sind, sind korrekt, und die Dateien werden von Confixx auch korrekt angelegt.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by Roger Wilco »

Dann binde die Datei in deine main.cf ein. Wenn der Eintrag vorhanden wäre, würde er in `postconf -n` aufgeführt. Vielleicht hast du ihn auskommentiert?
jakob2002
Posts: 34
Joined: 2004-01-01 13:38
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by jakob2002 »

Die Zeile ist definitiv in der main.cf vorhanden und nicht auskommentiert!!!
Das kann also nicht der Grund sein ...
Auf einem anderen Server ist der Eintrag auch drinnen, und da funktioniert es auch korrekt, obwohl postconf -n das nicht anzeigt. Warum das allerdings nicht angezeigt wird ist mir rätselhaft ....
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by Roger Wilco »

Poste deine main.cf (in CODE-Tags) und die Inhalte von /etc/postfix/confixx_virtualUsers und /etc/postfix/confixx_localDomains.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11190
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by Joe User »

Vermutlich ist Dein Postfix unzureichend gepatched, was liefert denn ein:

Code: Select all

postconf -d
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
jakob2002
Posts: 34
Joined: 2004-01-01 13:38
 

Re: Postfix-SASL: SASL authentication failure: cannot connect to saslauthd server: No such file or d

Post by jakob2002 »

Ahhh ... habe das Problem gefunden!
Der Eintrag in myhostname war falsch. Er muss scheinbar mit dem Hostname des Systems identisch sein.

Jetzt funktioniert es!