Fehler bei Emailversand

phpBB 3.0 hat sein "End of Life" erreicht. Eine Neu-Installation wird nicht mehr unterstützt.
Gesperrt
glumac
Mitglied
Beiträge: 2
Registriert: 28.06.2009 16:52

Fehler bei Emailversand

Beitrag von glumac »

Hallo!

Ich habe soeben als Kunde von Key Systems PhpBB3.0.5 auf meinem Webspace installiert. Email Versand via PHP-Mailer funktioniert überhaupt nicht. Versuche ich SMTP zum Laufen zu bringen, erhalte ich im Fehler-Protokoll des Boards die folgende Fehlermeldung:
E-Mail-Fehler
» EMAIL/SMTP
/forum/phpbb3/ucp.php

Probleme beim Mailversand in Zeile 1160. Antwort: 501 Syntax: HELO hostname
.
Backtrace

Connecting to mail03.dd24.net:25
LINE: 895 <- 220 mail03.dd24.net ESMTP Postfix

# EHLO
LINE: 1150 <- 501 Syntax: EHLO hostname

# HELO
LINE: 1160 <- 501 Syntax: HELO hostname
Hat jemand eine Idee, wie man das Problem beheben kann?
glumac
Mitglied
Beiträge: 2
Registriert: 28.06.2009 16:52

Re: Fehler bei Emailversand

Beitrag von glumac »

Habe nun notdürftig über ein Gmail Konto die SMTP Funktion zum Laufen gebracht. Allerdings kommt nach Versand eines Massenmail oder nach einer Benutzerregistrierung der folgende PHP-Fehler:
[phpBB Debug] PHP Notice: in file /includes/functions_messenger.php on line 1106: gethostbyaddr() [function.gethostbyaddr]: Address is not in a.b.c.d form

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/sorgentreff/forum/phpbb3/includes/functions.php:3247) in /htdocs/sorgentreff/forum/phpbb3/includes/functions.php on line 3826

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/sorgentreff/forum/phpbb3/includes/functions.php:3247) in /htdocs/sorgentreff/forum/phpbb3/includes/functions.php on line 3828

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/sorgentreff/forum/phpbb3/includes/functions.php:3247) in /htdocs/sorgentreff/forum/phpbb3/includes/functions.php on line 3829

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/sorgentreff/forum/phpbb3/includes/functions.php:3247) in /htdocs/sorgentreff/forum/phpbb3/includes/functions.php on line 3830
Gunter
Mitglied
Beiträge: 1
Registriert: 19.08.2009 21:46

Re: Fehler bei Emailversand

Beitrag von Gunter »

Hallo!

Hab den Fehler gefunden, imho. Für alle, die's interessiert:

Ich konnte reproduzieren, dass die Funktion gethostbyname() nicht korrekt funktioniert. Wahrscheinlich weil sie von php_uname('n') u.U. nur den Hostnamen -- im Fall des DD24 Webservers z.B. web03 statt web03.dd24.net -- erhält.
Das Problem taucht nicht auf, wenn statt gethostbyname(php_uname('n')) ein $_SERVER['SERVER_ADDR'] verwendet wird.
Besagte Zeile 1106 sieht dann so aus:

Code: Alles auswählen

$local_host = (function_exists('php_uname')) ? gethostbyaddr($_SERVER['SERVER_ADDR']) : $user->host;
Mit dieser Änderung werden bei mir wieder Emails verschickt.

Liebe Grüße,
Gunter
Gesperrt

Zurück zu „[3.0.x] Installation, Update und Konvertierung“