1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
header_check:

if /^To:/
/To: +do_not_reply@foo\.example\.com/
    DISCARD
/To: +do_not_reply@example\.com/
    DISCARD
/To: +do_not_reply@bar\.example\.com/
    DISCARD
endif

if /^From:/
/From: +MAILDER-DAEMON@.*/
    DISCARD
endif

postcat /var/spool/postfix/deferred/0/xxxx

*** ENVELOPE RECORDS 0F16968846 ***
message_size:           37765             244               1               0
message_arrival_time: Wed Oct 19 21:27:03 2011
create_time: Wed Oct 19 21:27:03 2011
named_attribute: log_message_origin=local
named_attribute: trace_flags=0
sender:
original_recipient: do_not_reply@foo.example.com
recipient: do_not_reply@foo.example.com
*** MESSAGE CONTENTS 0F16968846 ***
Received: by smtp.example.com (Postfix)
        id 0F16968846; Wed, 19 Oct 2011 21:27:03 +0200 (CEST)
Date: Wed, 19 Oct 2011 21:27:03 +0200 (CEST)
From: MAILER-DAEMON@example.com (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: do_not_reply@foo.example.com
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="CE3A468FA2.1319052423/smtp.example.com"
Message-Id: <20111019192703.0F16968846@smtp.example.com>