[PHP-users 12173] Re: メールの送信について

Teraoka Yoshinori php-users@php.gr.jp
Wed, 11 Dec 2002 13:39:30 +0900 (JST)


寺岡です。

From: "横山俊之" <p9@free-zone.com>
Subject: [PHP-users 12161] Re: メールの送信について
Date: Tue, 10 Dec 2002 20:59:22 +0900

> ちなみにヘッダーを生成するときに、
> Return-Path:を指定してもあっけなく無視されてしまいました。

Return-Path: の問題は何度か出ていますが

[RFC 2821]
4.4 Trace Information

(snip)

   When the delivery SMTP server makes the "final delivery" of a
   message, it inserts a return-path line at the beginning of the mail
   data.  This use of return-path is required; mail systems MUST support
   it.  The return-path line preserves the information in the <reverse-
   path> from the MAIL command.  Here, final delivery means the message
   has left the SMTP environment.  Normally, this would mean it had been
   delivered to the destination user or an associated mail drop, but in
   some cases it may be further processed and transmitted by another
   mail system.

(snip)

6. Problem Detection and Handling

6.1 Reliable Delivery and Replies by Email

   When the receiver-SMTP accepts a piece of mail (by sending a "250 OK"
   message in response to DATA), it is accepting responsibility for
   delivering or relaying the message.  It must take this responsibility
   seriously.  It MUST NOT lose the message for frivolous reasons, such
   as because the host later crashes or because of a predictable
   resource shortage.

   If there is a delivery failure after acceptance of a message, the
   receiver-SMTP MUST formulate and mail a notification message.  This
   notification MUST be sent using a null ("<>") reverse path in the
   envelope.  The recipient of this notification MUST be the address
   from the envelope return path (or the Return-Path: line).  However,
   if this address is null ("<>"), the receiver-SMTP MUST NOT send a
   notification.  Obviously, nothing in this section can or should
   prohibit local decisions (i.e., as part of the same system
   environment as the receiver-SMTP) to log or otherwise transmit
   information about null address events locally if that is desired.  If
   the address is an explicit source route, it MUST be stripped down to
   its final hop.


という事です。
envelope-from を正しく設定しましょう。
必要な場合は sendmail の trusted users の設定も。

---
Teraoka Yoshinori yteraoka@dti.ad.jp