Troubleshooting¶
Look for the symptom. Each section gives the most common causes, how to confirm them and what to do. If the problem persists, see at the end what to send to support.
Authentication failure¶
In SMTP¶
| Symptom | Likely cause | What to do |
|---|---|---|
535 5.7.8 Authentication failed | Wrong or incomplete key, or the key of a disabled credential | Copy the key again from the secret manager. Check for spaces and line breaks at the end of the value |
The server does not offer AUTH | The connection is not in TLS yet | Enable STARTTLS on port 587, or use implicit TLS on 465 |
The client tries CRAM-MD5 and fails | Mechanism not accepted | Configure PLAIN or LOGIN |
454 4.7.0 | Many authentication failures from the same IP address in a short time | Fix the credential in every system using that IP and wait a few minutes before trying |
451 4.3.0 on authentication | Temporary failure on our side | Try again |
The password is the server key. The username can be any text.
An isolated test, outside your application:
swaks --server smtp-out.frontengine.net --port 587 --tls \
--auth LOGIN --auth-user frontengine --auth-password "$FRONTENGINE_KEY" \
--quit-after AUTH
In the API¶
data.code | Cause | What to do |
|---|---|---|
AccessDenied | The X-Server-API-Key header did not arrive | Check the header name and whether a proxy removes it |
InvalidServerAPIKey | Wrong key or disabled credential | Check the environment variable in the environment where the application runs |
ServerSuspended | The server was suspended | Talk to [email protected] |
Error with HTTP 200
The API answers HTTP 200 for these errors. If your application only looks at the HTTP code, it will treat a refusal as success. Always check the status field.
In the SES-compatible interface¶
| Error | Cause | What to do |
|---|---|---|
UnrecognizedClientException / InvalidClientTokenId | The access key ID is not the identifier of a FrontEngine credential | Check that the SDK is not using the environment's AWS credentials |
InvalidSignatureException / SignatureDoesNotMatch | Wrong secret key, or a clock more than 15 minutes off | Check the key and sync the clock with NTP |
MissingAuthenticationTokenException | The request arrived unsigned | Check that the endpoint was set on the right client |
TLS errors¶
| Symptom | Likely cause | What to do |
|---|---|---|
wrong version number, unknown protocol, or the connection hangs at the start | TLS mode does not match the port | Port 587: start without TLS and use STARTTLS. Port 465: TLS from the start |
unsupported protocol, no protocols available, handshake failure | The client only offers TLS 1.0 or 1.1 | Update the client, the operating system or the library. The minimum is TLS 1.2 |
certificate verify failed, unable to get local issuer certificate | Outdated certificate authority list | Update the system's root certificate package (ca-certificates) |
certificate has expired or not yet valid | Your server's clock is wrong | Sync the clock |
hostname mismatch | The client is connecting by IP or by another name | Connect using exactly smtp-out.frontengine.net |
| Connection timeout | Outbound firewall or provider blocking the port | Try the other port. Allow outbound traffic to smtp-out.frontengine.net on ports 587 and 465 |
See what the server presents:
# STARTTLS
openssl s_client -starttls smtp -connect smtp-out.frontengine.net:587 -servername smtp-out.frontengine.net
# implicit TLS
openssl s_client -connect smtp-out.frontengine.net:465 -servername smtp-out.frontengine.net
Do not turn certificate verification off
Disabling verification makes the error go away and leaves your key exposed to anyone who intercepts the connection. Fix the cause.
Domain not verified or sender refused¶
| Symptom | Likely cause | What to do |
|---|---|---|
API: UnauthenticatedFromAddress | The from domain is not linked and verified for this server, or from is not a valid address | Check the domain and the address format |
SMTP: 553 5.7.1 Sender address not permitted for this account | The envelope sender (MAIL FROM) is on an unauthorized domain | Use an address on the verified domain |
SMTP: 553 5.7.1 From header address not permitted for this account | The From header is on an unauthorized domain | Same. In WordPress and other CMSs, force the sender in the SMTP plugin |
| The domain does not pass verification | The verification TXT was not found | Check the record's name and value, with no extra quotes and without the domain duplicated in the name |
| The message arrives without a DKIM signature | The DKIM key is not published yet. FrontEngine only signs when it finds the key in DNS | Publish the DKIM record and ask for a new check |
SPF invalid | The SPF record does not contain the FrontEngine include, or there are two v=spf1 records | Keep a single record with the include |
Return path invalid | The CNAME points at another target | The target must be exactly rp.frontengine.net |
DomainDNSError event | A record that was correct stopped being so | See in the event which check failed and fix DNS |
Check what is published:
dig +short TXT yourdomain.com
dig +short TXT <selector>._domainkey.yourdomain.com
dig +short CNAME frp.yourdomain.com
The records are in Set up a sending domain.
Held messages¶
A held message was accepted by FrontEngine and was not delivered. Its state is Held.
| Cause | How to recognize it | What to do |
|---|---|---|
| Recipient on the suppression list | MessageHeld event with the detail Recipient is on the suppression list | Confirm that the address is valid and ask for removal. See Recipient suppression |
| The server's send limit was reached | SendLimitApproaching and SendLimitExceeded events. There is no MessageHeld in this case | Talk to support about the limit and the release of the messages |
| Containment measure | You are contacted by our team | Answer the request. See Anti-Spam Policy for developers |
A held copy is not delivered on its own later. It has to be released by our team, or you send the message again once the cause is solved.
Delayed messages¶
The MessageDelayed event means a temporary failure. FrontEngine tries again by itself.
| Cause | What to do |
|---|---|
The destination server answered with a 4xx code (mailbox full, greylisting, rate limit) | Nothing. Read the event's output field for the reason |
| The destination provider is throttling your traffic | Slow down sending to that provider. See Deliverability practices |
| IP addresses being warmed up reached the day's ceiling | Delivery continues when the ceiling renews. See IP pools and dedicated IP |
Bounces¶
| Event | Meaning |
|---|---|
MessageDeliveryFailed | Permanent failure. FrontEngine stopped trying |
MessageBounced | The destination accepted the message and returned a failure notice later |
The output field carries the destination server's answer. The most common ones:
| Destination answer | Meaning | What to do |
|---|---|---|
550 5.1.1 (unknown user) | The address does not exist | Remove the address from your records |
550 5.1.10, 5.4.1 | Recipient refused or domain not receiving | Remove the address |
552 5.2.2 (mailbox full) | The recipient's mailbox is out of space | Try later. If it repeats for days, treat it as invalid |
550 5.7.1 mentioning policy, spam or reputation | Blocked on content or reputation | Review content and authentication. If it names the IP address, tell support |
550 5.7.26 (Gmail) or 550 5.7.515 (Microsoft) | The message did not pass the required authentication | Check the domain's SPF, DKIM and DMARC |
554 5.7.1 mentioning a blocklist | The sending IP or your domain is on a list | Send the full text to support |
| Nonexistent domain | Typo in the address | Validate the address at signup |
If many valid addresses fail at the same time at a single provider, the problem is not the list: it is reputation or authentication. Send examples to support.
Addresses with repeated failures go onto the suppression list. See Bounces and suppression.
Webhooks that do not arrive¶
Check in this order:
- Does the webhook exist and is it enabled? Webhooks are configured by our team. Confirm the URL and the selected events with support.
- Is the URL public? Destinations that resolve to private, local or loopback addresses are refused.
localhost,10.x,192.168.xand internal names do not work. - Is the certificate valid? On
https://, an expired, self-signed or wrongly named certificate makes delivery fail. - Does the endpoint answer
2xx? Any other answer counts as a failure. A301or302redirect is not followed. - Does the endpoint answer within 5 seconds? Beyond that the attempt fails. Store the event, answer and process afterwards.
- Is there a firewall or WAF in front? Rules that block non-browser requests, by country or by rate often stop webhooks.
- Have the attempts run out? There are 6 attempts, at intervals of 2, 3, 6, 10 and 15 minutes. After that the event is dropped and is not resent by itself.
- Does the expected event exist? Opens and clicks only produce events with tracking enabled. A copy held by the send limit produces no
MessageHeld. There is no complaint event.
| Symptom | Likely cause |
|---|---|
| Events arrive, but signature verification fails | Verification is being done over re-serialized JSON, not over the body bytes. Or the public key is outdated: fetch it again from https://api.frontengine.net/.well-known/jwks.json |
| The same event arrives more than once | Expected behavior when an earlier attempt failed or was slow. Discard repeats by uuid |
Test your endpoint from outside your network:
curl -i -X POST https://app.yourdomain.com/webhooks/frontengine \
-H "Content-Type: application/json" \
-d '{"event":"MessageSent","timestamp":0,"uuid":"test","payload":{}}'
A request without a valid signature should be refused by your endpoint. The test confirms that it is reachable and answers fast.
DNS propagation¶
After you create or change a record, each resolver only sees the change when its cache expires. The time depends on the previous record's TTL, and can range from minutes to a few hours.
| Situation | What to do |
|---|---|
| The record shows up for you and the check still fails | Wait for the TTL and ask support for a new check. Domains are also checked again every day |
| The record does not show up anywhere | Query the authoritative server directly. If it is not there, the change was not saved at the DNS provider |
The name was duplicated, such as track.yourdomain.com.yourdomain.com | Many DNS panels append the domain by themselves. Enter only the part before the domain |
| The long TXT value was cut | 2048-bit DKIM keys exceed 255 characters and must be split into quoted chunks. Most panels do this by themselves |
The CNAME is not accepted | A name with a CNAME cannot have other records. Remove existing TXT or A records on the same name |
| DNS is behind a proxy (for example, Cloudflare's "proxied" mode) | The return path and tracking CNAME records must be in "DNS only" mode |
Query the authoritative server directly, with no cache:
Before a planned change, lower the record's TTL a day ahead.
What to send to support¶
Write to [email protected] with:
- the name of the organization and of the server;
- the date and time of the problem, with the time zone;
- the
idreturned by the API, or theMessage-ID, of an affected message; - the sender's and the recipient's addresses;
- the complete API answer, or the complete SMTP conversation, including the error code and text;
- for webhooks: the endpoint URL and the
uuidof an event, if there is one.
Never send the key
Do not include the server key in the request, or in screenshots or log excerpts. If it was exposed, ask for it to be replaced.