Ich hab nach diesem Tut http://rikman.mtb-news.de/rikwik/Postfi ... rver#h51-2 Postfix etc. installiert. Allerdings will das Mails verschicken noch nicht so recht.
Egal, wie ich es mache (telnet, mail (PHP und über SSH)), das geht nicht.
Folgendes erscheint in der mail.info
Jan 26 17:36:25 h1179552 postfix/cleanup[7602]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jan 26 17:36:25 h1179552 postfix/cleanup[7602]: warning: problem talking to service rewrite: Connection reset by peer
Jan 26 17:36:25 h1179552 postfix/master[5791]: warning: process /usr/lib/postfix/trivial-rewrite pid 7822 exit status 1
Jan 26 17:36:25 h1179552 postfix/smtpd[5835]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jan 26 17:36:25 h1179552 postfix/smtpd[5835]: warning: problem talking to service rewrite: Success
Jan 26 17:36:25 h1179552 postfix/smtpd[7505]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jan 26 17:36:25 h1179552 postfix/smtpd[7505]: warning: problem talking to service rewrite: Success
Jan 26 17:36:25 h1179552 postfix/master[5791]: warning: process /usr/lib/postfix/trivial-rewrite pid 7823 exit status 1
Jan 26 17:36:25 h1179552 postfix/master[5791]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
und das hier in der mail.err:
Jan 26 17:37:27 h1179552 postfix/trivial-rewrite[7829]: fatal: mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf(0,100): table lookup problem
Was kann das sein? Und wie kann ich es beheben? Thx schon mal im Vorraus, und auch, weil ihr mir schon öfters weitergeholfen habt :D
Läuft Postfix im Chroot? Läuft MySQL? Ist die Datenbank korrekt eingerichtet? Darf/Kann Postfix auf die Datenbank und den MySQL-Socket zugreifen? Passen die mysql_*.cf zum Rest der Konfiguration? etc, etc...
„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.
Postfix läuft im CHMOD, daher habe ich folgendes im init Script ergänzt:
case "$1" in
[...]
start)
[...]
umask $oldumask
if [ -x /var/spool/postfix/var/run/mysqld/mysqld.sock ] ; then
rm /var/spool/postfix/var/run/mysqld/mysqld.sock
fi
ln /var/run/mysqld/mysqld.sock /var/spool/postfix/var/run/mysqld/mysqld.sock
[...]
Wie im Tut.
MySQL läuft
Eigentlich darf Postfix schon drauf zugreifen. Bei den anderen Dateien gibt es ja auch keine Fehler.
Jup, die passt.
Und es ist auch immer nur ein Fehler in mysql-virtual_mailbox_domains.cf. Nie in den anderen Dateien.
„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.
Jan 27 01:34:38 h1179552 postfix/trivial-rewrite[7187]: fatal: mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf(0,100): table lookup problem
Jan 27 01:34:38 h1179552 postfix/trivial-rewrite[7190]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111)
Jan 27 01:34:38 h1179552 postfix/trivial-rewrite[7190]: fatal: mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf(0,100): table lookup problem
Jan 27 01:34:38 h1179552 postfix/trivial-rewrite[7191]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111)
Jan 27 01:34:38 h1179552 postfix/trivial-rewrite[7191]: fatal: mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf(0,100): table lookup problem
Aber wieso geht das bei den anderen Dateien, aber nicht bei der?
Omg, ich bin dumm. Das ist der Grund, wieso ich keine Mails empfangen kann. Das kommt da noch hinzu. Ich hab mal ne Testmail an mich geschickt und seitdem versucht der alle 1 min die Mail zu speichern laut Logs.
Das hier ist der Fehler, der in den Logs steht, nachdem ich das php Script asugeführt habe:
Jan 27 02:11:27 h1179552 postfix/smtpd[11582]: rewrite stream disconnect
Jan 27 02:11:27 h1179552 postfix/smtpd[11582]: connect to subsystem private/rewrite
Jan 27 02:11:27 h1179552 postfix/smtpd[11582]: send attr request = resolve
Jan 27 02:11:27 h1179552 postfix/smtpd[11582]: send attr address = mail@yourdomain.com
Jan 27 02:11:27 h1179552 postfix/smtpd[11582]: private/rewrite socket: wanted attribute: transport