Send an email via an SMTP server.
lua
noit.module.smtp
optional
25
\d+
Specifies the TCP port to connect to.
optional
noit.local
.+
Specifies the EHLO parameter.
optional
.+
Specifies the envelope sender.
optional
.+
Specifies the envelope recipient, if blank issue quit.
optional
Subject: Testing
.+
Specifies the payload sent (on the wire). CR LF DOT CR LF is appended automatically.
optional
false
(?:true|false)
Specified if the client should attempt a STARTTLS upgrade
optional
.+
A path to a file containing all the certificate authorities that should be loaded to validate the remote certificate (for SSL checks).
optional
.+
A path to a file containing the client certificate that will be presented to the remote server (for SSL checks).
optional
.+
A path to a file containing key to be used in conjunction with the cilent certificate (for SSL checks).
optional
.+
A list of ciphers to be used in the SSL protocol (for SSL checks).
optional
off
(?:off|login|plain)
Specifies the type of SASL Authentication to use
optional
.+
The SASL Authentication username
optional
.+
The SASL Authentication password
optional
.+
The SASL Authorization Identity
Example 5.24. Send an email to test SMTP service.
The following example sends an email via 10.80.117.6 from test@omniti.com to devnull@omniti.com
<noit>
<modules>
<loader image="lua" name="lua">
<config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config>
</loader>
<module loader="lua" name="smtp" object="noit.module.smtp"/>
</modules>
<checks>
<check uuid="2d42adbc-7c7a-11dd-a48f-4f59e0b654d3" module="smtp" target="10.80.117.6">
<config>
<from>test@omniti.com</from>
<to>devnull@omniti.com</to>
</config>
</check>
</checks>
</noit>