Contents
Note
The adapter uses the libpcap (Linux) and WinPcap (Windows) libraries to tap into the IP packet stream.
Before using this adapter with realtime data, you must install and configure these
libraries on the system that will host the SMTP Reader adapter. Locate libpcap at http://www.tcpdump.org/ and
WinPcap at http://www.winpcap.org.
The SMTP reader input adapter reads Internet Protocol packets, either from the IP stack of a running system or from an archived capture file, and emits a tuple for each email message found in the TCP data stream. Dedicated tuple fields hold the source and destination addresses, the SMTP headers (From, To, Cc, Subject, etc.), and the body of the message. When reading IP traffic on a running system, a filter string can be configured to limit the IP traffic being read.
Note
This adapter is not provided in the StreamBase kit. It is available in a separate installation kit. Please contact StreamBase Systems if you are interested in the kit.
| Property | Description |
|---|---|
| Data Source | Select Realtime Data or Capture File to read SMTP traffic from the IP stack of a running system or from an achived capture file, respectively. |
| Capture File Name |
The fully-qualified name of the capture file holding the IP packets to
process. The capture file must be on a libpcap- or WinPcap-compatibile
format. The property is ignored when Data
Source is set to Realtime Data.
|
| TCP Port Number | The well-known TCP port number of SMTP server, which defaults to 25. |
| Capture Filter String | A libpcap- or WinPcap-compatible filter string that can be used to limit the IP traffic being read. |
| Maximum Attachments | The maximum number of attachment fields to place in the output schema. |
| Schema (schema) |
By default, the adapter generates the following output schema. The
adapter-specified lengths of any of the string fields can be overridden
through the adapter icon's Edit Schema tab.
|
Typechecking fails if the one or more of the required schema fields listed above is missing. Additional schema fields not listed about are ignored and set to Null in outgoing tuples.
A tuple is emitted only when a complete email message is detected in the TCP stream. If one or more IP packets are missing such that the TCP stream cannot be reconstructed, no tuple will be emitted for the corresponding email message.
When suspended, the adapter stops processing IP packets. Note that doing so may cause the libpcap or WinPcap libries to discard IP packets, resulting in lost tuples when the adapter is eventually resumed.
