Send Mail via MailTrigger#
To send emails directly using MailTrigger (without a third-party SMTP), follow the steps below and ensure correct DNS setup.
A. Verify and Configure Domain#
Go to Domains, select your domain, and ensure it shows Verified (TXT DNS token correctly added).
Add the following records in your DNS provider:
SPF: Add
a:smtp.mailtrigger.appto your SPF record.DKIM: Enable DKIM in the MailTrigger domain settings and copy the generated TXT record into your DNS.
(Optional) DMARC: It is recommended to add:
v=DMARC1; p=none; rua=mailto:{your-email}
After confirming everything works, you may change
p=nonetoquarantineorreject.
B. Create RelaySMTP Action#
Navigate to Actions → Add Action.
Name:
RelaySMTP(or any descriptive name).Action Type: Select Relay Action.
Parameters:
timeout:30(default; adjust if needed)
Click Save, and test the Action using Test to confirm everything works.
C. Create a Route to Use RelaySMTP#
Go to Routes → Add Route.
Mailbox: Select the mailbox to send from (e.g.,
Bob@example.com).Name:
Route_SendViaMailTriggerFilter Option: Choose All (must match all conditions).
Select Rules:
Add a Rule: - Target:
Sender- Rule Type:Equals- Value:Bob@example.com
Pass to Next Route: Check True (allows subsequent routes to execute).
Execution Mechanism: Select Sequential.
Actions: Drag in the
RelaySMTPaction created earlier.Enabled: Check the box.
Click Save, then go to Test → Manual Input to simulate:
Sender:
Bob@example.comReceiver: any test email address you control
Subject/Body: any content
Click Run Test and verify success via Route Logs and recipient inbox.
Note
If your domain has no actual mailbox on another provider and no MX record pointing to MailTrigger, you can still send via this route, but you won’t be able to receive replies.
To receive replies, set up an MX record pointing to
smtp.mailtrigger.appand create a forwarding Route to an external mailbox.
Gmail SMTP Setup Guide#
Here’s how to set up Gmail to use MailTrigger’s RelaySMTP Action as an external SMTP provider:
Log in to Gmail, click the gear icon → See all settings.
Go to the Accounts and Import tab.
Under Send mail as, click Add another email address.
In the popup:
Name: Display name shown to recipients.
Email Address: Your MailTrigger mailbox (e.g.,
Bob@example.com).Check Treat as an alias if desired, then click Next Step.
SMTP settings:
SMTP Server:
smtp.mailtrigger.appUsername:
Bob@example.comPassword: Your mailbox password
Port:
587Secure Connection: TLS
Click Add Account.
Gmail will send a verification email to
Bob@example.com.Log in to MailTrigger UI, go to Route Logs to find the incoming message and extract the verification code.
Or, if you’ve set up forwarding, check your forwarding email inbox.
Enter the code in Gmail to complete the setup.
Once verified, you can select
Bob@example.comin the From dropdown when composing a new email in Gmail. Gmail will then send via MailTrigger’s RelaySMTP server.