5.30. smtp

Send an email via an SMTP server.

loader

lua

object

noit.module.smtp

5.30.1. Module Configuration

5.30.2. Check Configuration

port
required

optional

default

25

allowed

\d+

Specifies the TCP port to connect to.

ehlo
required

optional

default

noit.local

allowed

.+

Specifies the EHLO parameter.

from
required

optional

default

allowed

.+

Specifies the envelope sender.

to
required

optional

allowed

.+

Specifies the envelope recipient, if blank issue quit.

payload
required

optional

default

Subject: Testing

allowed

.+

Specifies the payload sent (on the wire). CR LF DOT CR LF is appended automatically.

starttls
required

optional

default

false

allowed

(?:true|false)

Specified if the client should attempt a STARTTLS upgrade

ca_chain
required

optional

allowed

.+

A path to a file containing all the certificate authorities that should be loaded to validate the remote certificate (for SSL checks).

certificate_file
required

optional

allowed

.+

A path to a file containing the client certificate that will be presented to the remote server (for SSL checks).

key_file
required

optional

allowed

.+

A path to a file containing key to be used in conjunction with the cilent certificate (for SSL checks).

ciphers
required

optional

allowed

.+

A list of ciphers to be used in the SSL protocol (for SSL checks).

sasl_authentication
required

optional

default

off

allowed

(?:off|login|plain)

Specifies the type of SASL Authentication to use

sasl_user
required

optional

default

allowed

.+

The SASL Authentication username

sasl_password
required

optional

default

allowed

.+

The SASL Authentication password

sasl_auth_id
required

optional

default

allowed

.+

The SASL Authorization Identity

Example 5.31. 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>