Skip to content

Sending emails over SMTP

Send email over SMTP is a built-in step that delivers mail with the SMTP protocol. Use it when you authenticate to your own SMTP server (client-to-server), or — when Mindflow support has enabled it — when you deliver by MX lookup without a credential (server-to-server). Optional emailtest subdomains help security teams exercise SPF, DKIM, and DMARC filters.

  • Mail must leave from your domain through your SMTP provider (username, password, host, and port).
  • You assess an email gateway with controlled SPF/DKIM/DMARC configurations (on-demand feature).
  • Prefer Send emails when Mindflow-hosted mail is enough and you do not need your own SMTP server.

Before you begin, confirm you can create credentials in the environment. For server-to-server or emailtest domains, contact Mindflow support — those paths are restricted and must stay within approved use.

The step lives under Built in in Add a step.

  1. Open Add a step. In the designer, choose Add a step, then under Built in select Send email over SMTP.

    Add a step Built in section with Send email over SMTP highlighted

  2. Confirm the step on the canvas. The flow can combine SMTP steps with other built-in or integration steps.

    Example flow using Send email over SMTP with several DKIM SPF and DMARC related steps

For client-to-server delivery, create an SMTP Plain credential for Send email over SMTP. Host and port come from the credential Address URL (common ports: 587 with STARTTLS, 465 for SMTPS, 25 for some server paths).

  1. Open Environments. Open the environment that will run the flow, then choose Add credential.

  2. Search for the service. Choose Send email over SMTP as the credential service.

    Searching for Send email over SMTP when creating a credential

  3. Fill the SMTP Plain fields. Set Credential name, keep URL as Custom, then fill Address, User name, and Password.

    Create a credential for Send email over SMTP with Custom URL smtps://server.example.com and username

Mindflow authenticates to your SMTP server with the credential, then sends the message fields from Input.

  1. Open Settings on the SMTP step. Select the SMTP Plain credential you created.

    Send email over SMTP Settings with an SMTP credential selected

  2. Fill Input. Set a full From address on your domain, recipients (To, optional Cc / Bcc), Subject, Text and/or HTML, and optional DKIM fields when you sign with your own key.

Send without a credential (server-to-server)

Section titled “Send without a credential (server-to-server)”

With no credential on the step, Mindflow resolves MX records for the first To domain and delivers on the mail exchange path. This mode is restricted: Mindflow support must enable it, approve recipient domains, and you must use allowed From domains. Use it only for legitimate gateway assessment — not for phishing or unsolicited mail.

  1. Leave Credential empty. On the step Settings, do not select an SMTP credential.

    Send email over SMTP Settings with Credential left empty for server-to-server delivery

  2. Use approved From and To domains. Set From and To only to domains Mindflow has authorized for your tenant.

    Send email over SMTP Input with From and To constrained to approved domains

Test email gateways with emailtest subdomains

Section titled “Test email gateways with emailtest subdomains”

When Mindflow enables the email-gateway lab for your tenant, you can vary SPF, DKIM, and DMARC by choosing an emailtest subdomain in From:

<username>@<configuration>.emailtest-<your-tenant>.mindflow.dev

Example: support@valid.emailtest-acme123.mindflow.dev.

Emailtest subdomain configurations
Configuration (subdomain)DescriptionSPFDKIMDMARC
validValid SPF, DKIM, and DMARCv=spf1 ip4:[Mindflow_IP] -all2048-bit key, random selectorp=reject, sp=reject, pct=100
no-spfMissing SPFNoneYesYes
no-dkimMissing DKIMYesNoneYes
no-dmarcMissing DMARCYesYesNone
no-spf-no-dmarc-no-dkimMissing SPF, DKIM, and DMARCNoneNoneNone
only-spfSPF onlyv=spf1 ip4:[Mindflow_IP] -allNoneNone
only-dkimDKIM onlyNoneYesNone
only-dmarcDMARC onlyNoneNoneYes
weak-spf-allow-allPermissive +allv=spf1 +allYesYes
weak-spf-neutralNeutral ?allv=spf1 ?allYesYes
weak-spf-softfailSoft fail ~allv=spf1 ~allYesYes
weak-spf-includeMany SPF includesOutlook/Zendesk/Google/SendGrid/Amazon SES includesYesYes
weak-spf-invalidInvalid SPF syntaxInvalid entry with Mindflow IPYesYes
weak-dmarc-noneWeak DMARC noneYesYesp=none, sp=none, pct=10
weak-dmarc-quarantineQuarantine with low pctYesYesp=quarantine, sp=none, pct=1
weak-dmarc-no-reportsReject without reportsYesYesp=reject, no reports
weak-dmarc-mismatchedSubdomain policy mismatchYesYesp=reject, sp=none, pct=100
weak-dkim512-bit DKIMYes512-bit keyYes
weak-dkim-selectorPredictable default selectorYes2048-bit, defaultYes
weak-dkim-hashSHA1 DKIM hashYesSHA1Yes
weak-hg-zero-width-joinerZero-width joiner in domainYesYesYes
weak-hg-cyrillic-mixMixed Latin/Cyrillic domainYesYesYes
weak-spf-allow-all-no-dmarc-no-dkim+all without DKIM/DMARCv=spf1 +allNoneNone
weak-spf-neutral-no-dmarc-no-dkim?all without DKIM/DMARCv=spf1 ?allNoneNone
weak-spf-softfail-no-dmarc-no-dkim~all without DKIM/DMARCv=spf1 ~allNoneNone
weak-spf-include-no-dmarc-no-dkimHeavy includes without DKIM/DMARCMany includesNoneNone
weak-spf-invalid-no-dmarc-no-dkimInvalid SPF without DKIM/DMARCInvalid entryNoneNone
weak-dkim-hash-no-dmarc-no-spfSHA1 DKIM without SPF/DMARCNoneSHA1None
weak-dkim-low-key-size-no-dmarc-no-spf512-bit DKIM without SPF/DMARCNone512-bitNone
weak-dkim-predictable-selector-no-dmarc-no-spfdefault selector without SPF/DMARCNonedefaultNone

Configurations whose names start with weak-hg include special Unicode characters — keep them when you copy the subdomain.

For a JSON list of configuration names you can map in a flow:

Emailtest configurations
[
"valid",
"no-spf",
"no-dmarc",
"no-dkim",
"no-spf-no-dmarc-no-dkim",
"only-spf",
"only-dmarc",
"only-dkim",
"weak-spf-allow-all",
"weak-spf-neutral",
"weak-spf-softfail",
"weak-spf-include",
"weak-spf-invalid",
"weak-dmarc-none",
"weak-dmarc-quarantine",
"weak-dmarc-no-reports",
"weak-dmarc-mismatched",
"weak-dkim",
"weak-dkim-selector",
"weak-dkim-hash",
"weak-hg-zero-width-joiner",
"weak-hg-cyrillic-mix",
"weak-spf-allow-all-no-dmarc-no-dkim",
"weak-spf-neutral-no-dmarc-no-dkim",
"weak-spf-softfail-no-dmarc-no-dkim",
"weak-spf-include-no-dmarc-no-dkim",
"weak-spf-invalid-no-dmarc-no-dkim",
"weak-dkim-hash-no-dmarc-no-spf",
"weak-dkim-low-key-size-no-dmarc-no-spf",
"weak-dkim-predictable-selector-no-dmarc-no-spf"
]

To inspect published DNS for your tenant (replace <tenant>):

dig
dig +short TXT emailtest-<tenant>.mindflow.dev

An operations team creates an SMTP Plain credential named Corporate SMTP for smtps://mail.example.com, binds it on Send email over SMTP, and sends From noreply@example.com with a ticket summary in Text. Separately, a security engineer — after support enables the lab — loops From addresses across valid and no-spf emailtest subdomains to confirm the gateway quarantines unauthenticated mail.

  • Client-to-server needs an SMTP Plain credential. Server-to-server leaves Credential empty and requires Mindflow approval for domains and use.
  • Common ports: 587 (STARTTLS), 465 (SMTPS), 25 (often server-to-server).
  • Emailtest hosts use emailtest-<tenant>.mindflow.dev, not a public open relay for arbitrary domains.
  • Unauthorized phishing or bulk abuse is prohibited.

Send emails · Credentials · Reach out to services