Sieve Ereject support in Archiveopteryx

The Ereject extension signals that a sieve script can reject incoming mail. Archiveopteryx supports it fully.

Ereject differs conceptually from reject in that the Sieve processor should reject the message while it is being received via SMTP or LMTP. Archiveopteryx supports both ereject and reject, and treats them equally in practice (it follows ereject's requirements for both commands).

if envelope :is :all "from" "" { ereject "You're a spammer, Bob, and I don't want spam"; }

Archiveopteryx's behaviour is based on the final draft for RFC 5429; the final RFC should be the same (except for possible wording changes).

The specification requires sending an MDN (message rejected by recipient), while Archiveopteryx sends a DSN (message rejected by mail system), due to internal constraints. (Archiveopteryx has forgotten whether the rejection is DSN-like or MDN-like by the time it's about to send the message.) We'll fix this at some point.

In case of questions, please write to

Relevant links

About this page

Last modified: 2010-11-19