phpbar.de logo

Mailinglisten-Archive

[php] mail bounce

[php] mail bounce

Tobias Nix php_(at)_phpcenter.de
Mon, 2 Jul 2001 10:07:21 +0200


> wenn ich mir dann im mailprogramm den header
> anschaue, sehe ich auch, das der return-path nicht
> überschrieben wurde und da was von apache steht.

antwort doch noch im manual gefunden:

RFC822 makes it plain that the header "Return-path" is
intended to be added to the message by the mail program
at the destination(POP3), not at the source(SMTP).
Adding it as a header to a mail() function will have no effect
as mail() is the source.

If you have PHP compiled into Apache, then PHP mail()
sends email to sendmail as the owner of the process which,
of course, is 'nobody'. So sendmail will use 'nobody' in the
"From" field of the sendmail generated portion of the header.
The solution is to follow the instructions in the sendmail configuation
to reverse-map outgoing mail to "somebody_(at)_yourserver".
Here is the URL to those instructions:
http://www.sendmail.org/virtual-hosting.html
Follow instructions 6 and 7 and you will have no further problems.


gruss,
tobias.




php::bar PHP Wiki   -   Listenarchive