infrastructure capa

infrastructure-smtp

Generic MailSender over raw SMTP (RFC 5321/5322) — Postfix relay, SMTP AUTH, SES SMTP interface, selected by config, not per-provider code

Generic MailSender over raw SMTP (RFC 5321/5322) — Postfix relay, SMTP AUTH, SES SMTP interface, selected by config, not per-provider code

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/smtp
Edition2021
Targetsinfrastructure_smtp, smtp_send
Public items0 across 0 modules
Tests27

What it is for

# infrastructure-smtp

Generic foundation_mail_message::MailSender implementation over raw SMTP (RFC 5321/5322), covering any backend reachable by host/port/TLS-mode/credentials: a local Postfix relay, an SMTP-AUTH account like mail.southcitycomputer.com's send side, or Amazon SES's SMTP interface. New code (Sprint 3.45 crate 4, see docs/userstories/sprint-3.45-mail-manager-harvest.md) — no rust-gmail-manager source, since that tool's sending/*.rs was Gmail-API-send-specific, not raw SMTP.

Uses lettre (already vendored in this workspace, at this exact version/feature set, by infrastructure-communication::smtp) rather than hand-rolling the SMTP protocol.

Implements MailSender only — never MailReader — per AC-capability-boundary: SMTP is structurally send-only, so this crate never fake-implements a read method it cannot perform. MailReader for mail.southcitycomputer.com's read side is infrastructure-imap (a separate crate), paired under one logical account at the tools-mail-manager config layer, not here.

Security (Gate 1.5.6)

SmtpConfig/SmtpCredentials's Debug impls redact password (see config.rs), and this crate never formats a config or credentials value into a log line.

this crate makes (in SmtpSender::send) carries only a recipient count — never an address, subject, or body.

Capabilities

No public items.

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

No public items.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
SmtpSendersender::SmtpSender
{SmtpConfig,SmtpCredentials,TlsMode}config::{SmtpConfig,SmtpCredentials,TlsMode}

Boundary

Reaches into foundation.

Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)infrastructure
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/infrastructure/smtp
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_infrastructure["infrastructure"] --> n_foundation["foundation"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-mail-message`foundationnoalways
`foundation-smtp-transport`foundationnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
async-trait^0.1noalways
lettre^0.11tokio1-native-tlsnoalways
serde^1derivenoalways
tracing^0.1noalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
serde_json^1noalways
tokio^1fullnoalways
tokio-test^0.4noalways

Build. None.

Depended on by. 1 workspace crate.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_tools_mail_manager["tools-mail-manager"] -->|uses| SELF
  SELF["infrastructure-smtp"]
  SELF -->|runtime| n_foundation_mail_message["foundation-mail-message"]
  SELF -->|runtime| n_foundation_smtp_transport["foundation-smtp-transport"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libinfrastructure_smtp`src/lib.rs`
testsmtp_send`tests/smtp_send.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

1 workspace crate depends on this one: tools-mail-manager.

Verification

KindCount
Unit tests20
Integration tests7
Examples0
Doctests0

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files4
Source lines734
Code lines495
Public API items0
Public modules0
Tests27
Examples0
Cargo features0
Direct runtime dependencies6
Workspace reverse dependencies1
pie showData
    title Rust source composition
    "Code" : 495
    "Blank or comment" : 239

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las infrastructure · Manual