Skip to main content


reject, ec_reject — reject the message, returning an MDN to the sender


reject { message }

ec_reject { message } [ counter ]


This action will cause Momentum to bounce the current message, and stop processing further rules. The message parameter will be used to form the body of the bounce message that is sent back to the envelope sender of the message.

If this action is executed before a complete message has been received, Momentum will instead send back a 550 status response, using the message as the message portion.

The optional counter parameter to ec_reject is used to count the number of hits for this particular action; if omitted, the script filename and line number will be assumed. You can see the hit count via ec_console using the sieve stats command.

if envelope :domain :is "from" "" {
  reject "we don't accept mail from";

require "ec_reject";
if envelope :domain :is "from" "" {
  ec_reject "we don't accept mail from" "policy:bounce";

This is a terminal action; no further Sieve rules will be run for the current message in the current phase.

For an overview of Sieve actions see “Actions”.

See Also

Was this page helpful?