mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-22 12:28:16 +00:00
bfe1d5f94b
The content here needs to be fleshed out some more, but this commit is intended to get the skeleton in place.
335 B
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)