• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

PHP zu Postfix

Status
Für weitere Antworten geschlossen.
Für mein Mediawiki möchte ich gerne mail über PHP einrichten. Ich kann über die Konsole via
mail jemand@ort.land
eine Mail verschicken. (Über ein Konto bei web.de)

Aber weder testmail von diesem Skript:

<?php
if (@mail("thomas@domain.de","testphp","erfolgreich","From:nospam@web.de")) {
echo('<p>Die Email wurde erfolgreich versendet.</p>');
} else {
echo('<p>Die Email konnte nicht versendet werden.</p>');
}
?>
noch die Wikimails (inkl. Notification) kommen an.

php.ini:
[mail function]
; For Win32 only.
#SMTP = localhost
#smtp_port = 25

; For Win32 only.
sendmail_from="absenderadresse"

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path="/usr/sbin/sendmail"

mail.err:
Feb 13 16:30:25 agip-cvjm postfix/sendmail[27563]: fatal: Recipient addresses must be specified on the command line or via the -t option

ansonsten: OpenSuse10, T-DSL mit dynamischer DNS
 
Ja, und wo ist die Zeile mit der -t Option?
Bisher sehe ich da noch nix.

Und wieso sind die Win32-Zeilen nicht auskomentiert?

Ich kann da noch nichts erkennen (Mag auch an mir liegen ;) )
 
Ich habe es mit allen möglichen Optionen und Kombinationen ausprobiert:
-t -i -f:absender
Wobei ich nicht weiß, wozu -t und -i gut sind und ob der Syntax von -f mit dem Doppelpunkt stimmt.
Aber daran liegt es bestimmt nicht!
 
-i When reading a message from standard input, don▒t treat a line with only a . character as the end of input.

-t Extract recipients from message headers. These are added to any recipients specified on the command line.

also:

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path="/usr/sbin/sendmail -t -i"
 
Argh!
Nachdem man Änderungen an php.ini vornimmt, muss apache wieder gestartet werden!!!!!

Ich habe jetzt den Server einfach noch einmal gestartet. Wie kann ich nur apache neu starten?

Es war also wohl doch "-t -i"
 
Status
Für weitere Antworten geschlossen.
Oben