SMTP configurations
An SMTP configuration holds the mail server that sends your emails. A campaign template with the Email delivery type uses one SMTP configuration. To send through an HTTP API instead, use an API sender.
Overview
Where: Emails > SMTP Configurations
The list shows each configuration's name, host, port and username. The row menu has Update, Copy, Update headers, Send test and Delete.
Deleting a configuration makes the templates that use it unusable and closes scheduled or active campaigns that use it right away, also when they have a later close time.
Create SMTP configuration
Click New configuration.
| Field | Description |
|---|---|
| Name | Name of the configuration, up to 127 characters |
| Host | Mail server hostname or IP address, for example smtp.example.test |
| Port | Server port. Port 465 connects with TLS from the start. Any other port,
such as 587 or 25, connects in plain text and upgrades with
STARTTLS. |
| HELO/EHLO Hostname | Optional hostname sent in the SMTP greeting. Leave empty to use the server's own hostname. |
| Username | Optional login name. With a username, Phishing Club logs in with CRAM-MD5 and falls back to PLAIN if the server rejects it. Without one, it sends without logging in, for example to a local relay. |
| Password | Optional password or app password for the username |
| TLS Certificate Validation | Required choice. Validate Certificates checks the server's certificate. Ignore TLS Errors accepts any certificate; use it only for servers with a self signed certificate you trust. |
| Public Sending IPs | Optional, under Show advanced options. The public IP addresses your
mail leaves the mail server from, one per line: IPv4 or IPv6 addresses or CIDR ranges
such as
203.0.113.0/24, at most 10. Hostnames are not accepted. A range is saved as
its network address. It is used only to fill in the Sending
IP of allow listing and never for sending
or any lookup. Phishing Club can not see the public IP of your mail server, so get it
from your mail server or SMTP provider. It is not part of a
Bait Box package, so installing or updating a package keeps
the value you set. |
A production install requires TLS: the server must support STARTTLS, or use port 465. Sending to a server without TLS fails.
Send test
Choose Send test in the row menu, enter a Mail From address and the Email address to send to, and click Send email. The test email has the subject "Configuration Test" and includes the custom headers with their values sent as written, since there is no recipient to fill in variables. To test a real email with its content, use Send test on the email.
Custom Headers
Choose Update headers in the row menu. Enter the header name under Key, without the trailing colon, and its Value, then click Add header. Added headers are listed in the same modal, where you can delete them. Every email sent through this configuration carries these headers.
Header values support the same template variables and functions
as the email content, so each recipient can get their own value. For example
X-PhishingClub-Report: {{.ReportURL}} adds a link for the
phishing report endpoint on the recipient's campaign domain.
Phishing Report Endpoint
The phishing report endpoint lets a recipient mark a phishing message as reported, for example through a mail add in or a report button, so the report is recorded in the campaign. For other ways to track reports, see Reporting.
The endpoint uses a random path that is generated once per install, so it can not be guessed
or fingerprinted. It is served on your campaign domains in the form
https://<campaign-domain>/<report-path>/report?rid=<rID>.
Setup
Campaigns can use different domains, so use the {{.ReportURL}} variable,
which holds the full report link on the recipient's campaign domain. Add a
custom header to the SMTP configuration used by the campaign,
for example X-PhishingClub-Report: {{.ReportURL}}. A report button or add in
then reads that header from the delivered email and calls the link, without having to know
which domain was used.
You can also send only the token, for example X-PhishingClub-RID: {{.rID}},
and let the reporter build the URL itself. The report path is the part before
/report in any {{.ReportURL}} link.
A report is recorded once per recipient; repeated calls are ignored. Reports for closed campaigns and for disabled recipients are not recorded. Reported recipients appear in the campaign results next to opens, clicks and submissions.