[postfix-users] Postfix + smtp(sql plugin couldn't connect to any host )

Patrick Ben Koetter p at state-of-mind.de
Mi Okt 29 11:22:07 CET 2008


* Christian Frost <postfix-users at de.postfix.org>:
> > * Patrick Ben Koetter
> >
> > * Christian Frost <postfix-users at de.postfix.org>:
> > > Guten Abend Liste,
> > >
> > > Distribution: Debian Etch
> > > Es wird Ssycp verwendet.
> > > Postfix in Verbindung mit MySQL
> > >
> > > Problem Emails können zwar abgerufen aber nicht versand
> > > werden, folgende Fehlermeldungen erhalte ich:
> > >
> > > auth.log
> > >
> > > Oct 28 17:07:04 mx1 postfix/smtpd[2687]: sql plugin Parse the username test at schisse.de
> > > Oct 28 17:07:04 mx1 postfix/smtpd[2687]: sql plugin try and connect to a host
> > > Oct 28 17:07:04 mx1 postfix/smtpd[2687]: sql plugin trying to open db 'syscp' on host 'localhost'
> > > Oct 28 17:07:04 mx1 postfix/smtpd[2687]: sql plugin could not connect to host localhost
> >
> > Du hast MySQL so konfiguriert, dass es auf localhost eine TCP-Verbindung
> > entgegen nimmt? Debian dreht das recht weit zu ...
> 
> ich habe auf der Konsole folgendes ausprobiert:
> 
> mx1:~# mysql -u syscp -p -P 3306 -h localhost syscp
> 
> Verbindung ist möglich.

Nimm mal 127.0.0.1 in der smtpd.conf.

Das hier ist zwar nicht in direktem Zusammenhang, aber es zeigt das
wahrscheinliche Problem:

  "Es gilt zwischen localhost und 127.0.0.1 zu unterscheiden. Die
  MySQL-Client-Library, welche in fast allen Programmen zum Einsatz kommt, die
  auf MySQL Server zugreifen (z.B. der MySQL Console, aber auch in PHP),
  reagiert auf den Host localhost auf spezielle Weise. Soll eine Verbindung zum
  Host localhost per TCP aufgebaut werden, erzwingt die Library automatisch den
  Zugriff über UNIX Domain Sockets."
  <http://www.tsunamihost.ch/hosting/faq/mysql/zugriff_von_aussen.php>

p at rick



> 
> >
> >
> > >
> > > /etc/postfix/sasl/smtpd.conf
> > >
> > > pwcheck_method: auxprop
> > > auxprop_plugin: sql
> > > mech_list: plain login cram-md5 digest-md5
> > > sql_engine: mysql
> > > sql_hostnames: localhost
> > > sql_user: syscp
> > > sql_passwd: supergeheimeskennwort
> > > sql_database: syscp
> > > sql_select: select password from mail_users where username='%u@%r'
> > >
> > >
> > > Konfiguration habe ich mehrmals durchgeprüft auch statt localhost, 127.0.0.1 in der smtpd.conf eingetragen.
> > > Auf der Konsole kann ich mich mit dem User syscp auf der mysqldb syscp connecten unter angabe 127.0.0.1 oder localhost (geht beides).
> > > Falsches Kennwort kann ich ausschließen. Libs für SASL sind da.
> >
> > Kennworte sind cleartext, ja? Wenn sie gecrypted sind, wird
> > es nicht gehen.
> 
> Kennwörter stehen im cleartext in der Datenbank.
> 
> 
> >
> >
> > p at rick
> >
> > --
> > state of mind
> > Agentur für Kommunikation, Design und Softwareentwicklung
> >
> > Patrick Koetter            Tel: 089 45227227
> > Echinger Strasse 3         Fax: 089 45227226
> > 85386 Eching               Web: http://www.state-of-mind.de
> >
> > Amtsgericht München        Partnerschaftsregister PR 563
> > _______________________________________________
> > postfix-users mailing list
> > postfix-users at de.postfix.org
> > http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
> >
> 
> Mit freundlichen Grüßen
> 
> Christian Frost
> _______________________________________________
> postfix-users mailing list
> postfix-users at de.postfix.org
> http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users

-- 
state of mind
Agentur für Kommunikation, Design und Softwareentwicklung

Patrick Koetter            Tel: 089 45227227
Echinger Strasse 3         Fax: 089 45227226
85386 Eching               Web: http://www.state-of-mind.de

Amtsgericht München        Partnerschaftsregister PR 563


More information about the postfix-users mailing list