Files
kumomta/docs/reference/kumo/reject.md
T
Wez Furlong bfe1d5f94b docs: add some basic reference info
The content here needs to be fleshed out some more, but this commit
is intended to get the skeleton in place.
2023-02-25 14:59:20 -07:00

335 B

kumo.reject(CODE, MESSAGE)

Calling kumo.reject will raise a lua error that will cause the current ESMTP event to respond with the SMTP error code and message that you specify.

kumo.on('smtp_server_mail_from', function(sender)
  kumo.reject(420, 'rejecting all mail, just because')
  -- this line is not reached
end)