Postfix, Courier & MySQL
Joerg Haverkamp
jhv at mac.com
Wed Jun 29 18:48:49 CEST 2005
Hallo,
ich habe auf meinem Server Postfix, Courier und MySQL nach der
Anleitung unter
http://postfixwiki.org/index.php?
title=Virtual_Users_and_Domains_with_Courier-IMAP_and_MySQL
installiert. Alle Pakete sind aus dem aktuellen sarge:
Postfix 2.1.5-9
Courier 0.47-4
MySQL 4.1.11a-4
Wenn ich alles gestartet habe, erhalte ich keinerlei Fehlermeldung,
sobald ein Mail ankommt, steht folgendes im Syslog:
Jun 29 18:37:02 h9804 postfix/trivial-rewrite[368]: warning: connect
to mysql server localhost: Can't connect to local MySQL server
through socket '/var/run/mysqld/mysqld.sock' (2)
Jun 29 18:37:02 h9804 postfix/trivial-rewrite[368]: fatal: mysql:/etc/
postfix/mysql_virtual_alias_maps.cf(0,100): table lookup problem
Jun 29 18:37:02 h9804 postfix/trivial-rewrite[369]: warning: connect
to mysql server localhost: Can't connect to local MySQL server
through socket '/var/run/mysqld/mysqld.sock' (2)
Jun 29 18:37:02 h9804 postfix/trivial-rewrite[369]: fatal: mysql:/etc/
postfix/mysql_virtual_alias_maps.cf(0,100): table lookup problem
Jun 29 18:37:02 h9804 postfix/trivial-rewrite[370]: warning: connect
to mysql server localhost: Can't connect to local MySQL server
through socket '/var/run/mysqld/mysqld.sock' (2)
Jun 29 18:37:02 h9804 postfix/trivial-rewrite[370]: fatal: mysql:/etc/
postfix/mysql_virtual_alias_maps.cf(0,100): table lookup problem
Jun 29 18:37:03 h9804 postfix/smtpd[32221]: warning: premature end-of-
input on private/rewrite socket while reading input attribute name
Jun 29 18:37:03 h9804 postfix/smtpd[32221]: warning: problem talking
to service rewrite: Success
Jun 29 18:37:03 h9804 postfix/smtpd[32181]: warning: premature end-of-
input on private/rewrite socket while reading input attribute name
Jun 29 18:37:03 h9804 postfix/smtpd[32181]: warning: problem talking
to service rewrite: Connection reset by peer
Jun 29 18:37:03 h9804 postfix/master[32158]: warning: process /usr/
lib/postfix/trivial-rewrite pid 368 exit status 1
Jun 29 18:37:03 h9804 postfix/master[32158]: warning: /usr/lib/
postfix/trivial-rewrite: bad command startup -- throttling
Jun 29 18:37:03 h9804 postfix/smtpd[32281]: warning: premature end-of-
input on private/rewrite socket while reading input attribute name
Jun 29 18:37:03 h9804 postfix/smtpd[32281]: warning: problem talking
to service rewrite: Success
Jun 29 18:37:03 h9804 postfix/smtpd[32422]: warning: premature end-of-
input on private/rewrite socket while reading input attribute name
Jun 29 18:37:03 h9804 postfix/smtpd[32422]: warning: problem talking
to service rewrite: Connection reset by peer
Jun 29 18:37:03 h9804 postfix/master[32158]: warning: process /usr/
lib/postfix/trivial-rewrite pid 369 exit status 1
Jun 29 18:37:03 h9804 postfix/smtpd[32578]: warning: premature end-of-
input on private/rewrite socket while reading input attribute name
Jun 29 18:37:03 h9804 postfix/smtpd[32578]: warning: problem talking
to service rewrite: Success
Jun 29 18:37:03 h9804 postfix/master[32158]: warning: process /usr/
lib/postfix/trivial-rewrite pid 370 exit status 1
Wie es scheint, ist der Zugriff auf den Socket nicht möglich.
Da ich die Datenbank und die Tabellen angelegt habe, funktioniert
MySQL ja.
Wieso kann Postfix nicht auf die Datenbank zugreifen? Liegt es an dem
chroot nach
/var/spool/postfix ? Und wenn ja, wie bekomme ich den Socket da rein?
Link?
Mit freundlichen Gruessen
Joerg Haverkamp
--
Wo dem Dativ am retten tut (Wem einem am finden tut, darf ihm behalten)
More information about the Linux
mailing list