smtp-server
Node.JS module for creating SMTP and LMTP server instances on the fly.
See smtp-server homepage for documentation and terms.
Create custom SMTP servers on the fly
Node.JS module for creating SMTP and LMTP server instances on the fly.
See smtp-server homepage for documentation and terms.
onSecure
MIT
to MIT-0
)authRequiredMessage
secured
to indicate an TLS server where TLS is handled upstreamneedsUpgrade
to upgrade sockets to TLS immediately after connection is established. Works with secure: truesecure
state in sessionserver.onConnect(err)
did not close the connectionserver.on('connect', data)
had missing data
connect
methodconnect
to pass already established sockets to the serverremotePort
tlsOptions
propertydisableReverseLookup
to skip reverse resolving client hostname on connectionsession.transmissionType
that identifies the current transmission (SMTP, ESMTP, ESMTPA etc.)lmtp
option to true
in order to use ithidePIPELINING
, hide8BITMIME
and hideSMTPUTF8
connection._parser
exists before trying to use it in the DATA handleronClose
allowInsecureAuth
useXClient
optionuseProxy
optionsniOptions
optional server optionserver.close()
has been called. Default delay to wait is 30 sec. Can be changed with closeTimeout
optionhideSTARTTLS
option that hides STARTTLS while still allowing to use it (useful for integration test scenarios but not for production use)logger
option behavior - if the value is false
then no logging is used. If the value is missing, then output is logged to console