mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-09 20:12:13 +00:00
The content here needs to be fleshed out some more, but this commit is intended to get the skeleton in place.
13 lines
335 B
Markdown
13 lines
335 B
Markdown
# `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.
|
|
|
|
```lua
|
|
kumo.on('smtp_server_mail_from', function(sender)
|
|
kumo.reject(420, 'rejecting all mail, just because')
|
|
-- this line is not reached
|
|
end)
|
|
```
|