On 06/15/2011 08:13 PM, Zhou, Yan wrote:
Hi there,

Sorry for the trivial question, I am a little confused what is a bounce
message and how not to get these internal Postfix messages.


RFC 5321, Section 6.1, Reliable delivery and (error) replies: http://tools.ietf.org/html/rfc5321#section-6.1

They are not "internal" messages as such; according to the RFC, postfix is required to return undeliverable mail to the sender.
So yes, postfix "generates" these messages, but it is required to do so.

Since undeliverable mail is not a desirable outcome, postfix allows you to notify a chosen recipient of these occurences via the bounce_notice_recipient and notify_classes settings in main.cf.

 From my server hub-dev-app01.dev.medplus.com,   I send a message to
hub-int-app01.dev.medplus.com.  (They both running Postfix 2.3.x).

Because my recipient address has a typo (correct domain but wrong
address), hub-dev-app01.dev is sending the message sender the following
message. This is correct behavior.

No, it is not.
If the recipient was misspelled, the server should have REJECTed the message.

Is the following an example of bounce message?  Our user is not
interested getting such messages, so I configured /etc/postfix/main.cf
to assign empty value to "notify_class".

notify_classes =

But why am I still getting these messages?


A (mandatory) bounce message is not the same as an (optional) notification of this event.


Thanks,
Yan


Received: by dir-dev-app01.dev.medplus.com (Postfix)
        id 7CACCC806D; Wed, 15 Jun 2011 18:02:59 +0000 (UTC)
Date: Wed, 15 Jun 2011 18:02:59 +0000 (UTC)
From: mailer-dae...@dir-dev-app01.dev.medplus.com (Mail Delivery System)


Note that the envelope (MAIL FROM) sender will be empty (<>), as per the RFC.
This is to prevent bounce loops between MTAs.


Subject: Undelivered Mail Returned to Sender

Crystal clear.

To: yz...@direct.dir-dev-app01.dev.medplus.com
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="30DADC8069.1308160979/dir-dev-app01.dev.medplus.com"
Message-Id:<20110615180259.7caccc8...@dir-dev-app01.dev.medplus.com>

This is a MIME-encapsulated message.

--30DADC8069.1308160979/dir-dev-app01.dev.medplus.com
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host dir-dev-app01.dev.medplus.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to<postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                    The mail system


This message, known as the bounce template, is fully configurable.
See http://www.postfix.org/bounce.5.html for details.


<non-ex...@direct.dir-int-app01.dev.medplus.com>: host
     dir-int-app01.dev.medplus.com[172.18.36.174] said: 550 5.1.1
     <non-ex...@direct.dir-int-app01.dev.medplus.com>: Recipient address
     rejected: User unknown in local recipient table (in reply to RCPT TO
     command)

--30DADC8069.1308160979/dir-dev-app01.dev.medplus.com
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; dir-dev-app01.dev.medplus.com
X-Postfix-Queue-ID: 30DADC8069
X-Postfix-Sender: rfc822; yz...@direct.dir-dev-app01.dev.medplus.com
Arrival-Date: Wed, 15 Jun 2011 18:02:59 +0000 (UTC)

Final-Recipient: rfc822; non-ex...@direct.dir-int-app01.dev.medplus.com
Original-Recipient:
rfc822;non-ex...@direct.dir-int-app01.dev.medplus.com
Action: failed
Status: 5.1.1
Remote-MTA: dns; dir-int-app01.dev.medplus.com
Diagnostic-Code: smtp; 550 5.1.1
     <non-ex...@direct.dir-int-app01.dev.medplus.com>: Recipient address
     rejected: User unknown in local recipient table


Postfix includes the reason the message was undeliverable; in this case, it was rejected by an upstream MTA.


Confidentiality Notice: The information contained in this electronic 
transmission is confidential and may be legally privileged. It is intended only 
for the addressee(s) named above. If you are not an intended recipient, be 
aware that any disclosure, copying, distribution or use of the information 
contained in this transmission is prohibited and may be unlawful. If you have 
received this transmission in error, please notify us by telephone (513) 
229-5500 or by email (postmas...@medplus.com). After replying, please erase it 
from your computer system.

You're posting to a public mailing list, which is archived and freely viewable online.


--
J.

Reply via email to