vorab... ich habe versucht mein Problem selber zu lösen, habe gelesen und gegoogeld.
Ich habe auch viele Infos. gefunden, aber entweder waren Sie nich so ganz richtig, oder es waren unvollständige Angaben. Natürlich auch sowas wie
.warum hast Du nicht das Man gelesen
Also mein Problem: sendmail
ich habe opensuse 11.3
xampp Vers.: 1.7.3a
über yast: E-Mail Server, mit den Werten Standard, Permanent, Ausgehende Mail -der Server benutzt &tls = nein-, und Authentifizierung eingerichtet.
In der php.ini:
- Code: Select all
.
.
.
[mail function]
; For Win32 only.
; http://php.net/smtp
; SMTP = localhost
; http://php.net/smtp-port
;smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =
[b]sendmail_path = /usr/sbin/sendmail -t -i[/b]
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On
; Log all mail() calls including the full path of the script, line #, to address and headers
; mail.log =
.
.
.
eingestellt.
Mein Job zum testen:
- Code: Select all
<?
// mehrere Empfänger
echo "los<br>";
$empfaenger = 'horstschulz@arcor.de';
$betreff = 'Der Betreff';
$nachricht = 'Hallo das ist ein Test';
$header = 'From: anzeiger@arcor.de' . "\r\n" .
'Reply-To: anzeiger@arcor.de' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($empfaenger, $betreff, $nachricht, $header);
echo "ende";
?>
Das Ergebnis:
- Code: Select all
The mail system
<horstschulz@arcor.de>: host mail.arcor.de[151.189.21.116] said: 550 5.1.8
<nobody@horst-s.deinste>: Sender address rejected: Domain not found (in
reply to RCPT TO command)
--BEE7F23F37.1289848311/horst-s.deinste
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; horst-s.deinste
X-Postfix-Queue-ID: BEE7F23F37
X-Postfix-Sender: rfc822; nobody@horst-s.deinste
Arrival-Date: Mon, 15 Nov 2010 20:11:50 +0100 (CET)
Final-Recipient: rfc822; horstschulz@arcor.de
Action: failed
Status: 5.1.8
Remote-MTA: dns; mail.arcor.de
Diagnostic-Code: smtp; 550 5.1.8 <nobody@horst-s.deinste>: Sender address
rejected: Domain not found
--BEE7F23F37.1289848311/horst-s.deinste
Content-Description: Undelivered Message
Content-Type: message/rfc822
Return-Path: <nobody@horst-s.deinste>
Received: by horst-s.deinste (Postfix, from userid 65534)
id BEE7F23F37; Mon, 15 Nov 2010 20:11:50 +0100 (CET)
To: horstschulz@arcor.de
Subject: Der Betreff
X-PHP-Originating-Script: 1000:test.php^M
From: anzeiger@arcor.de^M
Reply-To: anzeiger@arcor.de^M
X-Mailer: PHP/5.3.1
Message-Id: <20101115191150.BEE7F23F37@horst-s.deinste>
Date: Mon, 15 Nov 2010 20:11:50 +0100 (CET)
Hallo das ist ein Test
Was mache ich falsch, wo habe ich was vergessen. Ich bekomme sendmail nicht ans hoppeln!
Ich hoffe es wird mir geholfen!