smtp_rcptto_proxy - SMTP Recipient-To Proxy
Last updated March 2020
**Configuration Change. ** This feature is available in Momentum 4.2 and later.
The smtp_rcptto_proxy
module allows validation of a Lua recipient by doing an SMTP call-forward. This can be useful on edge MTAs to discover whether a user is valid or not. It will create an SMTP session to the specified server and then replay the SMTP conversation up to and including RCPT TO to determine if the recipient would be accepted.
/*
* Syntax:
*
* require("msys.beta.rcptto_proxy");
*
* local res, err = msys.beta.rcptto_proxy.query({mailfrom = "foo@foo.com",
* rcptto = "bar@bar.com",
* host = "smtp.foo.com",
* port = 25,
* timeout = 60 -- optional, 60 default
* });
*
* -- res is true if everything succeeded, otherwise false and err is
* -- set to an appropriate error string
...
Note
No information is provided if the RCPT TO fails; the system just returns "fail."
Was this page helpful?