Re: [sieve] On "reject" and :fcc Wed, 18 January 2017 00:12 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id DBCAD129408 for <>; Tue, 17 Jan 2017 16:12:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -5.101
X-Spam-Status: No, score=-5.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-3.199, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id pkMrZkYczr1q for <>; Tue, 17 Jan 2017 16:12:29 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id E337D127A90 for <>; Tue, 17 Jan 2017 16:12:28 -0800 (PST)
Received: from by (PMDF V6.1-1 #35243) id <> for; Tue, 17 Jan 2017 16:07:26 -0800 (PST)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Received: from by (PMDF V6.1-1 #35243) id <> (original mail from for; Tue, 17 Jan 2017 16:07:23 -0800 (PST)
Message-id: <>
Date: Tue, 17 Jan 2017 15:43:47 -0800 (PST)
In-reply-to: "Your message dated Wed, 18 Jan 2017 10:29:08 +1100" <>
References: <> <> <>
To: Bron Gondwana <>
Archived-At: <>
Cc:, Ned Freed <>
Subject: Re: [sieve] On "reject" and :fcc
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: SIEVE Working Group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 18 Jan 2017 00:12:30 -0000

> > Then keep a record of the rejection for the user, as opposed to keeping a copy
> > of the message that was rejected. Indeed, if you're going to keep track
> > of all rejections you have to allow for this in order to deal with
> > rejections that occur before the message transferred.

> OK, I see where the misunderstanding has come from. What I'm proposing is
> keeping a copy of the rejection. Basically the user wants a copy of every email
> sent on their behalf.

When a Sieve ereject/reject occurs prior to delivery, and circumstances require
the use of a message as opposed to an SMTP status code, use of a DSN is
required. RFC 5429, section 2.1.2:

   In this case, the server MUST accept the message and generate DSNs for
   all recipients that are refusing it. 

And DSNs are effectively required to contain at least a portion of
the rejected message. (There's an exception for DSNs generated by
gateways to foreign mail systems, but it clearly doesn't apply here.)

Like it or not, these DSNs are "messages sent on [the users] behalf", and
they absolutely do contain part or all of the rejected message.

> So as discovered above, we're talking past each other. I just want to keep a
> copy of the rejection that was sent out by sieve on the user's behalf.

And such messages can and often do contain part or all of the original
message, creating exactly the issue I've been talking about.